• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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) "no-frame-pointer-elim"="true" {
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