[PowerPC] Update cfence tests to avoid using undef. NFC.
authorKai Luo <gluokai@gmail.com>
Tue, 14 Jun 2022 04:44:20 +0000 (12:44 +0800)
committerKai Luo <gluokai@gmail.com>
Tue, 14 Jun 2022 04:45:46 +0000 (12:45 +0800)
llvm/test/CodeGen/PowerPC/cfence-double.ll
llvm/test/CodeGen/PowerPC/cfence-float.ll

index 72c1a33..33e79f0 100644 (file)
@@ -5,8 +5,8 @@
 
 ; 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
 }
index 71d2864..f224a4a 100644 (file)
@@ -5,8 +5,8 @@
 
 ; 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
 }