1 # RUN: llc -O0 -mtriple thumb-- -mattr=+v6t2 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
3 define void @test_movi() { ret void }
4 define void @test_movi16() { ret void }
5 define void @test_movi32() { ret void }
9 # CHECK-LABEL: name: test_movi
13 # CHECK: selected: true
15 - { id: 0, class: gprb }
18 %0(s32) = G_CONSTANT i32 786444 ; 0x000c000c
19 ; CHECK: [[VREGRES:%[0-9]+]]:rgpr = t2MOVi 786444, 14, $noreg, $noreg
22 ; CHECK: $r0 = COPY [[VREGRES]]
24 BX_RET 14, $noreg, implicit $r0
25 ; CHECK: BX_RET 14, $noreg, implicit $r0
29 # CHECK-LABEL: name: test_movi16
33 # CHECK: selected: true
35 - { id: 0, class: gprb }
38 %0(s32) = G_CONSTANT i32 65533
39 ; CHECK: [[VREGRES:%[0-9]+]]:rgpr = t2MOVi16 65533, 14, $noreg
42 ; CHECK: $r0 = COPY [[VREGRES]]
44 BX_RET 14, $noreg, implicit $r0
45 ; CHECK: BX_RET 14, $noreg, implicit $r0
49 # CHECK-LABEL: name: test_movi32
53 # CHECK: selected: true
55 - { id: 0, class: gprb }
58 %0(s32) = G_CONSTANT i32 185470479 ; 0x0b0e0e0f
59 ; CHECK: [[VREGY:%[0-9]+]]:rgpr = t2MOVi32imm 185470479
62 ; CHECK: $r0 = COPY [[VREGRES]]
64 BX_RET 14, $noreg, implicit $r0
65 ; CHECK: BX_RET 14, $noreg, implicit $r0