52 lines · plain
1# RUN: llc -O0 -mtriple thumb-- -mattr=+v6t2 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s2--- |3 define void @test_inttoptr_s32() { ret void }4 define void @test_ptrtoint_s32() { ret void }5...6---7name: test_inttoptr_s328# CHECK-LABEL: name: test_inttoptr_s329legalized: true10regBankSelected: true11selected: false12# CHECK: selected: true13registers:14 - { id: 0, class: gprb }15 - { id: 1, class: gprb }16body: |17 bb.0:18 liveins: $r019 20 %0(s32) = COPY $r021 %1(p0) = G_INTTOPTR %0(s32)22 ; CHECK: [[INT:%[0-9]+]]:gpr = COPY $r023 24 $r0 = COPY %1(p0)25 ; CHECK: $r0 = COPY [[INT]]26 27 BX_RET 14, $noreg, implicit $r028...29---30name: test_ptrtoint_s3231# CHECK-LABEL: name: test_ptrtoint_s3232legalized: true33regBankSelected: true34selected: false35# CHECK: selected: true36registers:37 - { id: 0, class: gprb }38 - { id: 1, class: gprb }39body: |40 bb.0:41 liveins: $r042 43 %0(p0) = COPY $r044 %1(s32) = G_PTRTOINT %0(p0)45 ; CHECK: [[PTR:%[0-9]+]]:gpr = COPY $r046 47 $r0 = COPY %1(s32)48 ; CHECK: $r0 = COPY [[PTR]]49 50 BX_RET 14, $noreg, implicit $r051...52