1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=powerpc64le-unknown-unknown \
3 ; RUN: < %s 2>&1 | FileCheck --check-prefix=CHECK-LE %s
4 ; RUN: llc -mtriple=powerpc64-unknown-unknown \
5 ; RUN: < %s 2>&1 | FileCheck %s
7 define double @foo(ptr %dp) {
9 ; CHECK-LE: # %bb.0: # %entry
10 ; CHECK-LE-NEXT: ld 3, 0(3)
11 ; CHECK-LE-NEXT: cmpd 7, 3, 3
12 ; CHECK-LE-NEXT: mtfprd 1, 3
13 ; CHECK-LE-NEXT: bne- 7, .+4
14 ; CHECK-LE-NEXT: isync
18 ; CHECK: # %bb.0: # %entry
19 ; CHECK-NEXT: ld 3, 0(3)
20 ; CHECK-NEXT: cmpd 7, 3, 3
21 ; CHECK-NEXT: bne- 7, .+4
23 ; CHECK-NEXT: std 3, -8(1)
24 ; CHECK-NEXT: lfd 1, -8(1)
27 %0 = load atomic double, ptr %dp acquire, align 8