1 # RUN: llc -O0 -mtriple thumb-- -mattr=+v6t2 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
3 define void @test_inttoptr_s32() { ret void }
4 define void @test_ptrtoint_s32() { ret void }
7 name: test_inttoptr_s32
8 # CHECK-LABEL: name: test_inttoptr_s32
12 # CHECK: selected: true
14 - { id: 0, class: gprb }
15 - { id: 1, class: gprb }
21 %1(p0) = G_INTTOPTR %0(s32)
22 ; CHECK: [[INT:%[0-9]+]]:gpr = COPY $r0
25 ; CHECK: $r0 = COPY [[INT]]
27 BX_RET 14, $noreg, implicit $r0
30 name: test_ptrtoint_s32
31 # CHECK-LABEL: name: test_ptrtoint_s32
35 # CHECK: selected: true
37 - { id: 0, class: gprb }
38 - { id: 1, class: gprb }
44 %1(s32) = G_PTRTOINT %0(p0)
45 ; CHECK: [[PTR:%[0-9]+]]:gpr = COPY $r0
48 ; CHECK: $r0 = COPY [[PTR]]
50 BX_RET 14, $noreg, implicit $r0