1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple thumbv6m-arm-none-eabi -run-pass regallocbasic %s -o - | FileCheck %s
3 # RUN: llc -mtriple thumbv6m-arm-none-eabi -run-pass greedy %s -o - | FileCheck %s
4 # RUN: llc -mtriple thumbv6m-arm-none-eabi -run-pass regallocfast %s -o - | FileCheck %s --check-prefix=FAST
10 tracksRegLiveness: true
12 - { id: 0, class: tgpr }
13 - { id: 1, class: hgpr }
14 - { id: 2, class: tgpr }
16 - { reg: '$r0', virtual-reg: '%0' }
22 - { id: 0, size: 4, alignment: 4, local-offset: -4 }
23 machineFunctionInfo: {}
28 ; CHECK-LABEL: name: constraint_h
30 ; CHECK: [[COPY:%[0-9]+]]:tgpr = COPY $r0
31 ; CHECK: tSTRspi [[COPY]], %stack.0, 0, 14 /* CC::al */, $noreg
32 ; CHECK: [[tLDRspi:%[0-9]+]]:tgpr = tLDRspi %stack.0, 0, 14 /* CC::al */, $noreg
33 ; CHECK: [[COPY1:%[0-9]+]]:hgpr = COPY [[tLDRspi]]
34 ; CHECK: INLINEASM &"mov r12, $0", 1 /* sideeffect attdialect */, 1048585 /* reguse:GPRnoip_and_GPRnopc */, %1, 12 /* clobber */, implicit-def early-clobber $r12
35 ; CHECK: tBX_RET 14 /* CC::al */, $noreg
36 ; FAST-LABEL: name: constraint_h
38 ; FAST: tSTRspi killed renamable $r0, %stack.0, 0, 14 /* CC::al */, $noreg
39 ; FAST: renamable $r0 = tLDRspi %stack.0, 0, 14 /* CC::al */, $noreg
40 ; FAST: renamable $r8 = COPY killed renamable $r0
41 ; FAST: INLINEASM &"mov r12, $0", 1 /* sideeffect attdialect */, 1048585 /* reguse:GPRnoip_and_GPRnopc */, killed renamable $r8, 12 /* clobber */, implicit-def dead early-clobber $r12
42 ; FAST: tBX_RET 14 /* CC::al */, $noreg
44 tSTRspi %0, %stack.0, 0, 14 /* CC::al */, $noreg
45 %2:tgpr = tLDRspi %stack.0, 0, 14 /* CC::al */, $noreg
47 INLINEASM &"mov r12, $0", 1 /* sideeffect attdialect */, 1048585 /* reguse:hGPR */, %1, 12 /* clobber */, implicit-def early-clobber $r12
48 tBX_RET 14 /* CC::al */, $noreg