]> granicus.if.org Git - llvm/commitdiff
[SystemZ] make test immune to scalarization improvements; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 14 Dec 2018 17:28:52 +0000 (17:28 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 14 Dec 2018 17:28:52 +0000 (17:28 +0000)
The undef operands mean this test is probably still too fragile
to accomplish what the comments suggest.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349164 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/SystemZ/dag-combine-03.ll

index bcb75281d0a245dbd5dde74a7877e12314e80e76..c197c9a73a36dd445c9cfbb83e5b1e0fa9bbfe41 100644 (file)
@@ -10,9 +10,12 @@ entry:
 lab0:
   %phi = phi i64 [ %sel, %lab0 ], [ 0, %entry ]
   %add = add nuw nsw i64 %phi, 1
+  %add2 = add nuw nsw i64 %phi, 2
   %cmp = icmp eq i64 %add, undef
+  %cmp2 = icmp eq i64 %add2, undef
   %ins = insertelement <2 x i1> undef, i1 %cmp, i32 0
-  %xor = xor <2 x i1> %ins, <i1 true, i1 true>
+  %ins2 = insertelement <2 x i1> undef, i1 %cmp2, i32 0
+  %xor = xor <2 x i1> %ins, %ins2
   %extr = extractelement <2 x i1> %xor, i32 0
 ; The EXTRACT_VECTOR_ELT is done first into an i32, and then AND:ed with
 ; 1. The AND is not actually necessary since the element contains a CC (i1)