1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=powerpc64le-linux-gnu < %s | FileCheck %s -check-prefix=PPC64LE
4 define void @test(ptr %ptr, i8 %cmp, i8 %val) {
7 ; PPC64LE-NEXT: clrlwi 4, 4, 24
8 ; PPC64LE-NEXT: .LBB0_1:
9 ; PPC64LE-NEXT: lbarx 6, 0, 3
10 ; PPC64LE-NEXT: cmpw 6, 4
11 ; PPC64LE-NEXT: bnelr 0
12 ; PPC64LE-NEXT: # %bb.2:
13 ; PPC64LE-NEXT: stbcx. 5, 0, 3
14 ; PPC64LE-NEXT: bne 0, .LBB0_1
15 ; PPC64LE-NEXT: # %bb.3:
17 %res = cmpxchg ptr %ptr, i8 %cmp, i8 %val monotonic monotonic