summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-03-02 18:35:57 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-03-02 18:35:57 +0000
commitf608812bdef3f4c09857beb2ca20269387fe61c7 (patch)
tree61d0dc36427f1c95906a9a9b29522e4c4a1f2aa4 /llvm/test/CodeGen
parentddedde9aa077434c80fabc837b9dc9c22e4f6979 (diff)
downloadbcm5719-llvm-f608812bdef3f4c09857beb2ca20269387fe61c7.tar.gz
bcm5719-llvm-f608812bdef3f4c09857beb2ca20269387fe61c7.zip
[Hexagon] Handle VACOPY in isel lowering
llvm-svn: 326599
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/Hexagon/isel-vacopy.ll18
1 files changed, 18 insertions, 0 deletions
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 }
OpenPOWER on IntegriCloud