1 # RUN: llc -mtriple arm-- -run-pass=legalizer %s -o - | FileCheck %s
2 # RUN: llc -mtriple thumb-- -mattr=+v6t2 -run-pass=legalizer %s -o - | FileCheck %s
4 define void @test_inttoptr_s32() { ret void }
5 define void @test_ptrtoint_s32() { ret void }
8 name: test_inttoptr_s32
9 # CHECK-LABEL: name: test_inttoptr_s32
11 # CHECK: legalized: true
12 regBankSelected: false
14 tracksRegLiveness: true
23 %1(p0) = G_INTTOPTR %0(s32)
24 ; G_INTTOPTR with s32 is legal, so we should find it unchanged in the output
25 ; CHECK: {{%[0-9]+}}:_(p0) = G_INTTOPTR {{%[0-9]+}}
27 BX_RET 14, $noreg, implicit $r0
30 name: test_ptrtoint_s32
31 # CHECK-LABEL: name: test_ptrtoint_s32
33 # CHECK: legalized: true
34 regBankSelected: false
36 tracksRegLiveness: true
45 %1(s32) = G_PTRTOINT %0(p0)
46 ; G_PTRTOINT with s32 is legal, so we should find it unchanged in the output
47 ; CHECK: {{%[0-9]+}}:_(s32) = G_PTRTOINT {{%[0-9]+}}
49 BX_RET 14, $noreg, implicit $r0