aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Hexagon/simpletailcall.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Hexagon/simpletailcall.ll')
-rw-r--r--test/CodeGen/Hexagon/simpletailcall.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/Hexagon/simpletailcall.ll b/test/CodeGen/Hexagon/simpletailcall.ll
new file mode 100644
index 0000000..2876404
--- /dev/null
+++ b/test/CodeGen/Hexagon/simpletailcall.ll
@@ -0,0 +1,14 @@
+; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
+; CHECK: foo_empty
+; CHECK-NOT: allocframe
+; CHECK-NOT: memd(r29
+; CHECK: jump bar_empty
+
+define void @foo_empty(i32 %h) nounwind {
+entry:
+ %add = add nsw i32 %h, 3
+ %call = tail call i32 bitcast (i32 (...)* @bar_empty to i32 (i32)*)(i32 %add) nounwind
+ ret void
+}
+
+declare i32 @bar_empty(...)