[llvm] r326599 - [Hexagon] Handle VACOPY in isel lowering
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 2 10:35:57 PST 2018
Author: kparzysz
Date: Fri Mar 2 10:35:57 2018
New Revision: 326599
URL: http://llvm.org/viewvc/llvm-project?rev=326599&view=rev
Log:
[Hexagon] Handle VACOPY in isel lowering
Added:
llvm/trunk/test/CodeGen/Hexagon/isel-vacopy.ll
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp?rev=326599&r1=326598&r2=326599&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp Fri Mar 2 10:35:57 2018
@@ -1307,6 +1307,7 @@ HexagonTargetLowering::HexagonTargetLowe
setOperationAction(ISD::VASTART, MVT::Other, Custom);
setOperationAction(ISD::VAEND, MVT::Other, Expand);
setOperationAction(ISD::VAARG, MVT::Other, Expand);
+ setOperationAction(ISD::VACOPY, MVT::Other, Expand);
setOperationAction(ISD::STACKSAVE, MVT::Other, Expand);
setOperationAction(ISD::STACKRESTORE, MVT::Other, Expand);
Added: llvm/trunk/test/CodeGen/Hexagon/isel-vacopy.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Hexagon/isel-vacopy.ll?rev=326599&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Hexagon/isel-vacopy.ll (added)
+++ llvm/trunk/test/CodeGen/Hexagon/isel-vacopy.ll Fri Mar 2 10:35:57 2018
@@ -0,0 +1,18 @@
+; RUN: llc -march=hexagon < %s | FileCheck %s
+
+; Check for successful compilation
+; CHECK: jumpr r31
+
+target triple = "hexagon"
+
+; Function Attrs: nounwind
+define hidden fastcc void @f0() unnamed_addr #0 {
+b0:
+ call void @llvm.va_copy(i8* nonnull undef, i8* nonnull undef)
+ ret void
+}
+
+; Function Attrs: nounwind
+declare void @llvm.va_copy(i8*, i8*) #0
+
+attributes #0 = { nounwind }
More information about the llvm-commits
mailing list