1 # RUN: llc -run-pass=arm-pseudo -verify-machineinstrs %s -o - | FileCheck %s
3 target triple = "armv7---gnueabi"
5 define i32 @test1(i32 %x) {
9 define i32 @test2(i32 %x) {
13 define i32 @test3(i32 %x) {
21 tracksRegLiveness: true
23 - { reg: '$r0', virtual-reg: '' }
28 $r1 = MOVi 2, 14, $noreg, $noreg
29 CMPri killed $r0, 0, 14, $noreg, implicit-def $cpsr
30 $r1 = MOVCCi16 killed $r1, 500, 0, killed $cpsr
31 $r0 = MOVr killed $r1, 14, $noreg, $noreg
32 BX_RET 14, $noreg, implicit $r0
38 tracksRegLiveness: true
40 - { reg: '$r0', virtual-reg: '' }
45 $r1 = MOVi 2, 14, $noreg, $noreg
46 CMPri killed $r0, 0, 14, $noreg, implicit-def $cpsr
47 $r1 = MOVCCi32imm killed $r1, 500500500, 0, killed $cpsr
48 $r0 = MOVr killed $r1, 14, $noreg, $noreg
49 BX_RET 14, $noreg, implicit $r0
55 tracksRegLiveness: true
57 - { reg: '$r0', virtual-reg: '' }
58 - { reg: '$r1', virtual-reg: '' }
63 CMPri $r1, 500, 14, $noreg, implicit-def $cpsr
64 $r0 = MOVCCr killed $r0, killed $r1, 12, killed $cpsr
65 BX_RET 14, $noreg, implicit $r0
69 # CHECK-LABEL: name: test1
70 # CHECK: $r1 = MOVi16 500, 0, killed $cpsr, implicit killed $r1
71 # CHECK-LABEL: name: test2
72 # CHECK: $r1 = MOVi16 2068, 0, $cpsr, implicit killed $r1
73 # CHECK: $r1 = MOVTi16 $r1, 7637, 0, $cpsr
74 # CHECK-LABEL: name: test3
75 # CHECK: $r0 = MOVr killed $r1, 12, killed $cpsr, $noreg, implicit killed $r0