2014-11-24 09:08:18 +00:00
|
|
|
; RUN: llc -mtriple=arm-eabi -mattr=+v6 %s -o /dev/null
|
|
|
|
; RUN: llc -mtriple=arm-apple-ios -mattr=+v6 %s -o - | FileCheck %s
|
2009-06-02 17:52:33 +00:00
|
|
|
|
|
|
|
define i32 @test(i32 %x) {
|
|
|
|
%tmp = trunc i32 %x to i16 ; <i16> [#uses=1]
|
2010-07-13 17:19:57 +00:00
|
|
|
%tmp2 = call i32 @f( i32 1, i16 %tmp ) ; <i32> [#uses=1]
|
2009-06-02 17:52:33 +00:00
|
|
|
ret i32 %tmp2
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @f(i32, i16)
|
2014-11-24 09:08:18 +00:00
|
|
|
|
|
|
|
; CHECK: mov
|
|
|
|
; CHECK: mov
|
|
|
|
; CHECK: mov
|
|
|
|
; CHECK-NOT: mov
|
|
|
|
|