X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FARM%2Finsn-sched1.ll;h=2749a8e7cd2f3ab85d483c3bebf4e546f41a0d39;hb=5a70dd1d8286faa4713b60da7621094d892e2ffc;hp=7145351da079ec38f5b9445a5299f26cdde68814;hpb=c795466254dd4d860da84ec5c15d239bafcb6eeb;p=oota-llvm.git diff --git a/test/CodeGen/ARM/insn-sched1.ll b/test/CodeGen/ARM/insn-sched1.ll index 7145351da07..2749a8e7cd2 100644 --- a/test/CodeGen/ARM/insn-sched1.ll +++ b/test/CodeGen/ARM/insn-sched1.ll @@ -1,10 +1,16 @@ -; 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 3 +; RUN: llc -mtriple=arm-eabi -mattr=+v6 %s -o /dev/null +; RUN: llc -mtriple=arm-apple-ios -mattr=+v6 %s -o - | FileCheck %s -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) + +; CHECK: mov +; CHECK: mov +; CHECK: mov +; CHECK-NOT: mov +