1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/CodeGen/ARM/cmpxchg.mir
2018-11-02 18:22:15 +00:00

25 lines
1.0 KiB
YAML

# RUN: llc -o - %s -mtriple=armv7-unknown-linux-gnu -verify-machineinstrs -run-pass=arm-pseudo | FileCheck %s
---
# CHECK-LABEL: name: func
name: func
tracksRegLiveness: true
body: |
bb.0:
liveins: $r0_r1, $r4_r5, $r3, $lr
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 8)
; CHECK: bb.0:
; CHECK: liveins: $r0_r1, $r4_r5, $r3, $lr
; CHECK: bb.1:
; CHEKC: liveins: $r4_r5, $r3
; CHECK: $r0_r1 = LDREXD $r3, 14, $noreg
; CHECK: CMPrr killed $r0, $r4, 14, $noreg, implicit-def $cpsr
; CHECK: CMPrr killed $r1, $r5, 0, killed $cpsr, implicit-def $cpsr
; CHECK: Bcc %bb.3, 1, killed $cpsr
; CHECK: bb.2:
; CHECK: liveins: $r4_r5, $r3
; CHECK: early-clobber $r2 = STREXD $r4_r5, $r3, 14, $noreg
; CHECK: CMPri killed $r2, 0, 14, $noreg, implicit-def $cpsr
; CHECK: Bcc %bb.1, 1, killed $cpsr
; CHECK: bb.3:
...