1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -opaque-pointers -mtriple=powerpc64le-unknown-unknown \
3 ; RUN: < %s 2>&1 | FileCheck --check-prefix=CHECK-LE %s
4 ; RUN: llc -opaque-pointers -mtriple=powerpc64-unknown-unknown \
5 ; RUN: < %s 2>&1 | FileCheck %s
7 define float @bar(ptr %fp) {
9 ; CHECK-LE: # %bb.0: # %entry
10 ; CHECK-LE-NEXT: lwz 3, 0(3)
11 ; CHECK-LE-NEXT: mtfprd 0, 3
12 ; CHECK-LE-NEXT: cmpd 7, 3, 3
13 ; CHECK-LE-NEXT: xxsldwi 0, 0, 0, 1
14 ; CHECK-LE-NEXT: bne- 7, .+4
15 ; CHECK-LE-NEXT: isync
16 ; CHECK-LE-NEXT: xscvspdpn 1, 0
20 ; CHECK: # %bb.0: # %entry
21 ; CHECK-NEXT: lwz 3, 0(3)
22 ; CHECK-NEXT: cmpd 7, 3, 3
23 ; CHECK-NEXT: bne- 7, .+4
25 ; CHECK-NEXT: stw 3, -4(1)
26 ; CHECK-NEXT: lfs 1, -4(1)
29 %0 = load atomic float, ptr %fp acquire, align 4