aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/thumb-stub.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/thumb-stub.ll')
-rw-r--r--test/CodeGen/ARM/thumb-stub.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/thumb-stub.ll b/test/CodeGen/ARM/thumb-stub.ll
new file mode 100644
index 000000000000..68001b6c0eec
--- /dev/null
+++ b/test/CodeGen/ARM/thumb-stub.ll
@@ -0,0 +1,10 @@
+; RUN: llc -relocation-model=pic -mtriple=thumb-apple-darwin < %s | FileCheck %s
+
+declare hidden void @f()
+
+; CHECK: bl _f
+
+define void @g() {
+ call void @f()
+ ret void
+}