[llvm] r332549 - [PowerPC] preserve test intent by removing undef

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Wed May 16 15:48:48 PDT 2018


Author: spatel
Date: Wed May 16 15:48:48 2018
New Revision: 332549

URL: http://llvm.org/viewvc/llvm-project?rev=332549&view=rev
Log:
[PowerPC] preserve test intent by removing undef

We need to clean up the DAG floating-point undef logic.
This process is similar to how we handled integer undef
logic in D43141.

And as we did there, I'm trying to reduce the patch by
changing tests that would probably become meaningless
once we correct FP undef folding.

Modified:
    llvm/trunk/test/CodeGen/PowerPC/pr15632.ll

Modified: llvm/trunk/test/CodeGen/PowerPC/pr15632.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/pr15632.ll?rev=332549&r1=332548&r2=332549&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/pr15632.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/pr15632.ll Wed May 16 15:48:48 2018
@@ -3,11 +3,13 @@
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
 
+ at ld2 = common global ppc_fp128 0xM00000000000000000000000000000000, align 16
 declare void @other(ppc_fp128 %tmp70)
 
 define void @bug() {
 entry:
-  %tmp70 = frem ppc_fp128 0xM00000000000000000000000000000000, undef
+  %x = load ppc_fp128, ppc_fp128* @ld2, align 16
+  %tmp70 = frem ppc_fp128 0xM00000000000000000000000000000000, %x
   call void @other(ppc_fp128 %tmp70)
   unreachable
 }




More information about the llvm-commits mailing list