summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/insn-sched1.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/insn-sched1.ll')
-rw-r--r--test/CodeGen/ARM/insn-sched1.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/insn-sched1.ll b/test/CodeGen/ARM/insn-sched1.ll
new file mode 100644
index 000000000000..f20344301e99
--- /dev/null
+++ b/test/CodeGen/ARM/insn-sched1.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=arm -mattr=+v6
+; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -mattr=+v6 |\
+; RUN: grep mov | count 3
+
+define i32 @test(i32 %x) {
+ %tmp = trunc i32 %x to i16 ; <i16> [#uses=1]
+ %tmp2 = tail call i32 @f( i32 1, i16 %tmp ) ; <i32> [#uses=1]
+ ret i32 %tmp2
+}
+
+declare i32 @f(i32, i16)