1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/CodeGen/ARM/insn-sched1.ll

12 lines
343 B
LLVM
Raw Normal View History

; RUN: llc < %s -march=arm -mattr=+v6
; RUN: llc < %s -mtriple=arm-apple-darwin -mattr=+v6 |\
; RUN: grep mov | count 3
2008-02-17 21:02:20 +01:00
define i32 @test(i32 %x) {
%tmp = trunc i32 %x to i16 ; <i16> [#uses=1]
%tmp2 = call i32 @f( i32 1, i16 %tmp ) ; <i32> [#uses=1]
2008-02-17 21:02:20 +01:00
ret i32 %tmp2
}
2008-02-17 21:02:20 +01:00
declare i32 @f(i32, i16)