diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-03-02 18:35:57 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-03-02 18:35:57 +0000 |
commit | f608812bdef3f4c09857beb2ca20269387fe61c7 (patch) | |
tree | 61d0dc36427f1c95906a9a9b29522e4c4a1f2aa4 | |
parent | ddedde9aa077434c80fabc837b9dc9c22e4f6979 (diff) | |
download | bcm5719-llvm-f608812bdef3f4c09857beb2ca20269387fe61c7.tar.gz bcm5719-llvm-f608812bdef3f4c09857beb2ca20269387fe61c7.zip |
[Hexagon] Handle VACOPY in isel lowering
llvm-svn: 326599
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonISelLowering.cpp | 1 | ||||
-rw-r--r-- | llvm/test/CodeGen/Hexagon/isel-vacopy.ll | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp index 034034d82d5..b7bc2627596 100644 --- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp +++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp @@ -1307,6 +1307,7 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM, 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); diff --git a/llvm/test/CodeGen/Hexagon/isel-vacopy.ll b/llvm/test/CodeGen/Hexagon/isel-vacopy.ll new file mode 100644 index 00000000000..0138e424696 --- /dev/null +++ b/llvm/test/CodeGen/Hexagon/isel-vacopy.ll @@ -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 } |