1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=atomic-expand -mtriple=powerpc64le-unknown-unknown \
3 ; RUN: < %s 2>&1 | FileCheck %s
4 ; RUN: opt -S -passes=atomic-expand -mtriple=powerpc64-unknown-unknown \
5 ; RUN: < %s 2>&1 | FileCheck %s
7 define double @foo(ptr %dp) {
10 ; CHECK-NEXT: [[TMP0:%.*]] = load atomic i64, ptr [[DP:%.*]] monotonic, align 8
11 ; CHECK-NEXT: call void @llvm.ppc.cfence.i64(i64 [[TMP0]])
12 ; CHECK-NEXT: [[TMP1:%.*]] = bitcast i64 [[TMP0]] to double
13 ; CHECK-NEXT: ret double [[TMP1]]
16 %0 = load atomic double, ptr %dp acquire, align 8