1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple thumb-- -mattr=+v6t2 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
4 define void @test_movi() { ret void }
5 define void @test_movi16() { ret void }
6 define void @test_movi32() { ret void }
14 - { id: 0, class: gprb }
17 ; CHECK-LABEL: name: test_movi
18 ; CHECK: [[t2MOVi:%[0-9]+]]:rgpr = t2MOVi 786444, 14 /* CC::al */, $noreg, $noreg
19 ; CHECK: $r0 = COPY [[t2MOVi]]
20 ; CHECK: BX_RET 14 /* CC::al */, $noreg, implicit $r0
21 %0(s32) = G_CONSTANT i32 786444 ; 0x000c000c
25 BX_RET 14, $noreg, implicit $r0
33 - { id: 0, class: gprb }
36 ; CHECK-LABEL: name: test_movi16
37 ; CHECK: [[t2MOVi16_:%[0-9]+]]:rgpr = t2MOVi16 65533, 14 /* CC::al */, $noreg
38 ; CHECK: $r0 = COPY [[t2MOVi16_]]
39 ; CHECK: BX_RET 14 /* CC::al */, $noreg, implicit $r0
40 %0(s32) = G_CONSTANT i32 65533
44 BX_RET 14, $noreg, implicit $r0
52 - { id: 0, class: gprb }
55 ; CHECK-LABEL: name: test_movi32
56 ; CHECK: [[t2MOVi32imm:%[0-9]+]]:rgpr = t2MOVi32imm 185470479
57 ; CHECK: $r0 = COPY [[t2MOVi32imm]]
58 ; CHECK: BX_RET 14 /* CC::al */, $noreg, implicit $r0
59 %0(s32) = G_CONSTANT i32 185470479 ; 0x0b0e0e0f
63 BX_RET 14, $noreg, implicit $r0