[llvm] 7735653 - [PowerPC] Update cfence tests to avoid using undef. NFC.

Kai Luo via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 13 21:46:00 PDT 2022


Author: Kai Luo
Date: 2022-06-14T12:45:46+08:00
New Revision: 7735653e1647adb96836e5c6ba91c46754d1e21e

URL: https://github.com/llvm/llvm-project/commit/7735653e1647adb96836e5c6ba91c46754d1e21e
DIFF: https://github.com/llvm/llvm-project/commit/7735653e1647adb96836e5c6ba91c46754d1e21e.diff

LOG: [PowerPC] Update cfence tests to avoid using undef. NFC.

Added: 
    

Modified: 
    llvm/test/CodeGen/PowerPC/cfence-double.ll
    llvm/test/CodeGen/PowerPC/cfence-float.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/cfence-double.ll b/llvm/test/CodeGen/PowerPC/cfence-double.ll
index 72c1a3357bc35..33e79f0305106 100644
--- a/llvm/test/CodeGen/PowerPC/cfence-double.ll
+++ b/llvm/test/CodeGen/PowerPC/cfence-double.ll
@@ -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
 }

diff  --git a/llvm/test/CodeGen/PowerPC/cfence-float.ll b/llvm/test/CodeGen/PowerPC/cfence-float.ll
index 71d28640c6423..f224a4aa25c37 100644
--- a/llvm/test/CodeGen/PowerPC/cfence-float.ll
+++ b/llvm/test/CodeGen/PowerPC/cfence-float.ll
@@ -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
 }


        


More information about the llvm-commits mailing list