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
5 # RUN: llc -mtriple thumbv6m-arm-none-eabi -passes=regallocfast %s -o - | FileCheck %s --check-prefix=FAST
11 tracksRegLiveness: true
13 - { id: 0, class: tgpr }
14 - { id: 1, class: hgpr }
15 - { id: 2, class: tgpr }
17 - { reg: '$r0', virtual-reg: '%0' }
23 - { id: 0, size: 4, alignment: 4, local-offset: -4 }
24 machineFunctionInfo: {}
29 ; CHECK-LABEL: name: constraint_h
31 ; CHECK: [[COPY:%[0-9]+]]:tgpr = COPY $r0
32 ; CHECK: tSTRspi [[COPY]], %stack.0, 0, 14 /* CC::al */, $noreg
33 ; CHECK: [[tLDRspi:%[0-9]+]]:tgpr = tLDRspi %stack.0, 0, 14 /* CC::al */, $noreg
34 ; CHECK: [[COPY1:%[0-9]+]]:hgpr = COPY [[tLDRspi]]
35 ; CHECK: INLINEASM &"mov r12, $0", 1 /* sideeffect attdialect */, 1048585 /* reguse:GPRnoip_and_GPRnopc */, %1, 12 /* clobber */, implicit-def early-clobber $r12
36 ; CHECK: tBX_RET 14 /* CC::al */, $noreg
37 ; FAST-LABEL: name: constraint_h
39 ; FAST: tSTRspi killed renamable $r0, %stack.0, 0, 14 /* CC::al */, $noreg
40 ; FAST: renamable $r0 = tLDRspi %stack.0, 0, 14 /* CC::al */, $noreg
41 ; FAST: renamable $r8 = COPY killed renamable $r0
42 ; FAST: INLINEASM &"mov r12, $0", 1 /* sideeffect attdialect */, 1048585 /* reguse:GPRnoip_and_GPRnopc */, killed renamable $r8, 12 /* clobber */, implicit-def dead early-clobber $r12
43 ; FAST: tBX_RET 14 /* CC::al */, $noreg
45 tSTRspi %0, %stack.0, 0, 14 /* CC::al */, $noreg
46 %2:tgpr = tLDRspi %stack.0, 0, 14 /* CC::al */, $noreg
48 INLINEASM &"mov r12, $0", 1 /* sideeffect attdialect */, 1048585 /* reguse:hGPR */, %1, 12 /* clobber */, implicit-def early-clobber $r12
49 tBX_RET 14 /* CC::al */, $noreg