aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/AArch64/tailcall-fastisel.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AArch64/tailcall-fastisel.ll')
-rw-r--r--test/CodeGen/AArch64/tailcall-fastisel.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/tailcall-fastisel.ll b/test/CodeGen/AArch64/tailcall-fastisel.ll
new file mode 100644
index 0000000..3ba6391
--- /dev/null
+++ b/test/CodeGen/AArch64/tailcall-fastisel.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -mtriple=arm64-apple-darwin -O0 | FileCheck %s
+
+; CHECK: b _foo0
+
+define i32 @foo1() {
+entry:
+ %call = tail call i32 @foo0()
+ ret i32 %call
+}
+
+declare i32 @foo0()