X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FARM%2Finsn-sched1.ll;h=d188fae70340a5ff06a67ee22444fec6e64c77c3;hb=8b2b8a18354546d534b72f912153a3252ab4b857;hp=5c9a28a1d714bf625a64ce0428895d073064b5e8;hpb=8a67cdc5eb486d5996adec0e745d37da9ef5a1bb;p=oota-llvm.git diff --git a/test/CodeGen/ARM/insn-sched1.ll b/test/CodeGen/ARM/insn-sched1.ll index 5c9a28a1d71..d188fae7034 100644 --- a/test/CodeGen/ARM/insn-sched1.ll +++ b/test/CodeGen/ARM/insn-sched1.ll @@ -1,10 +1,11 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 && -; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -mattr=+v6 | grep mov | wc -l | grep 2 +; RUN: llc < %s -march=arm -mattr=+v6 +; RUN: llc < %s -mtriple=arm-apple-ios -mattr=+v6 |\ +; RUN: grep mov | count 3 -int %test(int %x) { - %tmp = cast int %x to short - %tmp2 = tail call int %f( int 1, short %tmp ) - ret int %tmp2 +define i32 @test(i32 %x) { + %tmp = trunc i32 %x to i16 ; [#uses=1] + %tmp2 = call i32 @f( i32 1, i16 %tmp ) ; [#uses=1] + ret i32 %tmp2 } -declare int %f(int, short) +declare i32 @f(i32, i16)