1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s | FileCheck --check-prefix=CHECK-LE %s
3 ; RUN: llc -mtriple=powerpc64-unknown-unknown < %s | FileCheck %s
5 define ptr @foo(ptr %p) {
7 ; CHECK-LE: # %bb.0: # %entry
8 ; CHECK-LE-NEXT: ld 3, 0(3)
9 ; CHECK-LE-NEXT: cmpd 7, 3, 3
10 ; CHECK-LE-NEXT: bne- 7, .+4
11 ; CHECK-LE-NEXT: isync
15 ; CHECK: # %bb.0: # %entry
16 ; CHECK-NEXT: ld 3, 0(3)
17 ; CHECK-NEXT: cmpd 7, 3, 3
18 ; CHECK-NEXT: bne- 7, .+4
22 %0 = load atomic ptr, ptr %p acquire, align 8
26 define void @foobar(ptr addrspace(11) %p) {
27 ; CHECK-LE-LABEL: foobar:
28 ; CHECK-LE: # %bb.0: # %entry
29 ; CHECK-LE-NEXT: ld 3, 0(3)
30 ; CHECK-LE-NEXT: cmpd 7, 3, 3
31 ; CHECK-LE-NEXT: bne- 7, .+4
32 ; CHECK-LE-NEXT: isync
34 ; CHECK-LABEL: foobar:
35 ; CHECK: # %bb.0: # %entry
36 ; CHECK-NEXT: ld 3, 0(3)
37 ; CHECK-NEXT: cmpd 7, 3, 3
38 ; CHECK-NEXT: bne- 7, .+4
41 %0 = load atomic ptr addrspace(10), ptr addrspace(11) %p acquire, align 8