; CHECK: Intrinsic has incorrect argument type!
; CHECK: ptr @llvm.ppc.cfence.f64
-define void @foo() {
+define double @foo(double* %dp) {
entry:
- %0 = load atomic double, double* undef acquire, align 8
- ret void
+ %0 = load atomic double, double* %dp acquire, align 8
+ ret double %0
}
; CHECK: Intrinsic has incorrect argument type!
; CHECK: ptr @llvm.ppc.cfence.f32
-define void @bar() {
+define float @bar(float* %fp) {
entry:
- %0 = load atomic float, float* undef acquire, align 8
- ret void
+ %0 = load atomic float, float* %fp acquire, align 4
+ ret float %0
}