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 float @bar(ptr %fp) {
10 ; CHECK-NEXT: [[TMP0:%.*]] = load atomic i32, ptr [[FP:%.*]] monotonic, align 4
11 ; CHECK-NEXT: call void @llvm.ppc.cfence.i32(i32 [[TMP0]])
12 ; CHECK-NEXT: [[TMP1:%.*]] = bitcast i32 [[TMP0]] to float
13 ; CHECK-NEXT: ret float [[TMP1]]
16 %0 = load atomic float, ptr %fp acquire, align 4