2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -march=arm -mattr=+v6
|
|
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin -mattr=+v6 |\
|
2009-11-22 07:34:09 +08:00
|
|
|
; RUN: grep mov | count 3
|
2007-01-19 17:20:23 +08:00
|
|
|
|
2008-02-18 04:02:20 +08:00
|
|
|
define i32 @test(i32 %x) {
|
|
|
|
%tmp = trunc i32 %x to i16 ; <i16> [#uses=1]
|
2010-06-04 09:01:24 +08:00
|
|
|
%tmp2 = call i32 @f( i32 1, i16 %tmp ) ; <i32> [#uses=1]
|
2008-02-18 04:02:20 +08:00
|
|
|
ret i32 %tmp2
|
2007-01-19 17:20:23 +08:00
|
|
|
}
|
|
|
|
|
2008-02-18 04:02:20 +08:00
|
|
|
declare i32 @f(i32, i16)
|