brintos

brintos / llvm-project-archived public Read only

0
0
Text · 844 B · 535cdb5 Raw
34 lines · plain
1# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s2 3--- |4  define i32 @swp(ptr %addr) #0 {5  entry:6    %0 = atomicrmw xchg ptr %addr, i32 1 monotonic7    ret i32 %08  }9 10  attributes #0 = { "target-features"="+lse" }11...12---13name:            swp14alignment:       415tracksRegLiveness: true16registers:17  - { id: 0, class: gpr64common }18  - { id: 1, class: gpr32 }19  - { id: 2, class: gpr32 }20liveins:21  - { reg: '$x0', virtual-reg: '%0' }22body:             |23  bb.0.entry:24    liveins: $x025 26    ; CHECK-LABEL: swp27    ; CHECK: {{[0-9]+}}:gpr32 = SWPW killed %1, %0 :: (volatile load store monotonic (s32) on %ir.addr)28    %0:gpr64common = COPY $x029    %1:gpr32 = MOVi32imm 130    %2:gpr32 = SWPW killed %1, %0 :: (volatile load store monotonic (s32) on %ir.addr)31    $w0 = COPY %232    RET_ReallyLR implicit $w033...34