xref: /llvm-project/llvm/test/CodeGen/ARM/insn-sched1.ll (revision 502a77f125f43ffde57af34d3fd1b900248a91cd)
1; RUN: llc -mtriple=arm-eabi -mattr=+v6 %s -o /dev/null
2; RUN: llc -mtriple=arm-apple-ios -mattr=+v6 %s -o - | FileCheck %s
3
4define i32 @test(i32 %x) "frame-pointer"="all" {
5        %tmp = trunc i32 %x to i16              ; <i16> [#uses=1]
6        %tmp2 = call i32 @f( i32 1, i16 %tmp )             ; <i32> [#uses=1]
7        ret i32 %tmp2
8}
9
10declare i32 @f(i32, i16)
11
12; CHECK: mov
13; CHECK: mov
14; CHECK: mov
15; CHECK-NOT: mov
16
17