summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/XCore/call.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/XCore/call.ll')
-rw-r--r--llvm/test/CodeGen/XCore/call.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/XCore/call.ll b/llvm/test/CodeGen/XCore/call.ll
new file mode 100644
index 00000000000..06a12f14440
--- /dev/null
+++ b/llvm/test/CodeGen/XCore/call.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -march=xcore | FileCheck %s
+
+; CHECK-LABEL: bl_imm:
+; CHECK: ldw [[R0:r[0-9]+]], cp
+; CHECK: bla [[R0]]
+define void @bl_imm() nounwind {
+entry:
+ tail call void inttoptr (i64 65536 to void ()*)() nounwind
+ ret void
+}
OpenPOWER on IntegriCloud