Compiler projects using llvm
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -o - %s -mtriple=thumbv7-unknown-linux-gnu -verify-machineinstrs -run-pass=arm-pseudo | FileCheck %s
---
name: func
tracksRegLiveness: true
body: |
  bb.0:
    liveins: $r0_r1, $r4_r5, $r3, $lr
    ; CHECK-LABEL: name: func
    ; CHECK: successors: %bb.1(0x80000000)
    ; CHECK-NEXT: liveins: $r0_r1, $r4_r5, $r3, $lr
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: .1:
    ; CHECK-NEXT: successors: %bb.3(0x40000000), %bb.2(0x40000000)
    ; CHECK-NEXT: liveins: $r4, $r5, $r3
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: $r0, $r1 = t2LDREXD $r3, 14 /* CC::al */, $noreg
    ; CHECK-NEXT: tCMPhir killed $r0, $r4, 14 /* CC::al */, $noreg, implicit-def $cpsr
    ; CHECK-NEXT: tCMPhir killed $r1, $r5, 0 /* CC::eq */, killed $cpsr, implicit-def $cpsr
    ; CHECK-NEXT: tBcc %bb.3, 1 /* CC::ne */, killed $cpsr
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: .2:
    ; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.3(0x40000000)
    ; CHECK-NEXT: liveins: $r4, $r5, $r3
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: early-clobber $r2 = t2STREXD $r4, $r5, $r3, 14 /* CC::al */, $noreg
    ; CHECK-NEXT: t2CMPri killed $r2, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
    ; CHECK-NEXT: tBcc %bb.1, 1 /* CC::ne */, killed $cpsr
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: .3:
    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))
...
---
name: func2
tracksRegLiveness: true
body: |
  bb.0:
    liveins: $r1, $r2, $r3, $r12, $lr
    ; CHECK-LABEL: name: func2
    ; CHECK: successors: %bb.1(0x80000000)
    ; CHECK-NEXT: liveins: $r1, $r2, $r3, $r12, $lr
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: .1:
    ; CHECK-NEXT: successors: %bb.3(0x40000000), %bb.2(0x40000000)
    ; CHECK-NEXT: liveins: $lr, $r3, $r12
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: $r1 = t2LDREX $r3, 0, 14 /* CC::al */, $noreg
    ; CHECK-NEXT: tCMPhir killed $r1, $r12, 14 /* CC::al */, $noreg, implicit-def $cpsr
    ; CHECK-NEXT: tBcc %bb.3, 1 /* CC::ne */, killed $cpsr
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: .2:
    ; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.3(0x40000000)
    ; CHECK-NEXT: liveins: $lr, $r3, $r12
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: early-clobber $r2 = t2STREX $lr, $r3, 0, 14 /* CC::al */, $noreg
    ; CHECK-NEXT: t2CMPri killed $r2, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
    ; CHECK-NEXT: tBcc %bb.1, 1 /* CC::ne */, killed $cpsr
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: .3:
    dead early-clobber renamable $r1, dead early-clobber renamable $r2 = tCMP_SWAP_32 killed renamable $r3, killed renamable $r12, killed renamable $lr
...