File: cmpxchg.mir

package info (click to toggle)
llvm-toolchain-9 1%3A9.0.1-16.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 882,388 kB
  • sloc: cpp: 4,167,636; ansic: 714,256; asm: 457,610; python: 155,927; objc: 65,094; sh: 42,856; lisp: 26,908; perl: 7,786; pascal: 7,722; makefile: 6,881; ml: 5,581; awk: 3,648; cs: 2,027; xml: 888; javascript: 381; ruby: 156
file content (24 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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:
    ; CHECK:   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:
...