llvm-project/llvm/test/CodeGen/ARM/insn-sched1.ll

17 lines
434 B
LLVM
Raw Normal View History

; RUN: llc -mtriple=arm-eabi -mattr=+v6 %s -o /dev/null
; RUN: llc -mtriple=arm-apple-ios -mattr=+v6 %s -o - | FileCheck %s
2016-08-23 17:19:22 +08:00
define i32 @test(i32 %x) "no-frame-pointer-elim"="true" {
2008-02-18 04:02:20 +08:00
%tmp = trunc i32 %x to i16 ; <i16> [#uses=1]
%tmp2 = call i32 @f( i32 1, i16 %tmp ) ; <i32> [#uses=1]
2008-02-18 04:02:20 +08:00
ret i32 %tmp2
}
2008-02-18 04:02:20 +08:00
declare i32 @f(i32, i16)
; CHECK: mov
; CHECK: mov
; CHECK: mov
; CHECK-NOT: mov