1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -o - %s -mtriple=armv7-unknown-linux-gnu -verify-machineinstrs -run-pass=arm-pseudo | FileCheck %s
5 tracksRegLiveness: true
8 liveins: $r0_r1, $r4_r5, $r3, $lr
9 ; CHECK-LABEL: name: func
10 ; CHECK: successors: %bb.1(0x80000000)
11 ; CHECK-NEXT: liveins: $r0_r1, $r4_r5, $r3, $lr
15 ; CHECK-NEXT: successors: %bb.3(0x40000000), %bb.2(0x40000000)
16 ; CHECK-NEXT: liveins: $r4_r5, $r3
18 ; CHECK-NEXT: $r0_r1 = LDREXD $r3, 14 /* CC::al */, $noreg
19 ; CHECK-NEXT: CMPrr killed $r0, $r4, 14 /* CC::al */, $noreg, implicit-def $cpsr
20 ; CHECK-NEXT: CMPrr killed $r1, $r5, 0 /* CC::eq */, killed $cpsr, implicit-def $cpsr
21 ; CHECK-NEXT: Bcc %bb.3, 1 /* CC::ne */, killed $cpsr
24 ; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.3(0x40000000)
25 ; CHECK-NEXT: liveins: $r4_r5, $r3
27 ; CHECK-NEXT: early-clobber $r2 = STREXD $r4_r5, $r3, 14 /* CC::al */, $noreg
28 ; CHECK-NEXT: CMPri killed $r2, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
29 ; CHECK-NEXT: Bcc %bb.1, 1 /* CC::ne */, killed $cpsr
32 dead early-clobber renamable $r0_r1, dead early-clobber renamable $r2 = CMP_SWAP_64 killed renamable $r3, killed renamable $r4_r5, renamable $r4_r5 :: (volatile load store monotonic monotonic (s64))
36 tracksRegLiveness: true
39 liveins: $r1, $r2, $r3, $r12, $lr
40 ; CHECK-LABEL: name: func2
41 ; CHECK: successors: %bb.1(0x80000000)
42 ; CHECK-NEXT: liveins: $r1, $r2, $r3, $r12, $lr
46 ; CHECK-NEXT: successors: %bb.3(0x40000000), %bb.2(0x40000000)
47 ; CHECK-NEXT: liveins: $lr, $r3, $r12
49 ; CHECK-NEXT: $r1 = LDREX $r3, 14 /* CC::al */, $noreg
50 ; CHECK-NEXT: CMPrr killed $r1, $r12, 14 /* CC::al */, $noreg, implicit-def $cpsr
51 ; CHECK-NEXT: Bcc %bb.3, 1 /* CC::ne */, killed $cpsr
54 ; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.3(0x40000000)
55 ; CHECK-NEXT: liveins: $lr, $r3, $r12
57 ; CHECK-NEXT: early-clobber $r2 = STREX $lr, $r3, 14 /* CC::al */, $noreg
58 ; CHECK-NEXT: CMPri killed $r2, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
59 ; CHECK-NEXT: Bcc %bb.1, 1 /* CC::ne */, killed $cpsr
62 dead early-clobber renamable $r1, dead early-clobber renamable $r2 = CMP_SWAP_32 killed renamable $r3, killed renamable $r12, killed renamable $lr