From: Sanjay Patel Date: Fri, 14 Dec 2018 17:28:52 +0000 (+0000) Subject: [SystemZ] make test immune to scalarization improvements; NFC X-Git-Tag: llvmorg-8.0.0-rc1~2097 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a44dc32708af03809145cf998beef0b28549ad40;p=platform%2Fupstream%2Fllvm.git [SystemZ] make test immune to scalarization improvements; NFC The undef operands mean this test is probably still too fragile to accomplish what the comments suggest. llvm-svn: 349164 --- diff --git a/llvm/test/CodeGen/SystemZ/dag-combine-03.ll b/llvm/test/CodeGen/SystemZ/dag-combine-03.ll index bcb7528..c197c9a 100644 --- a/llvm/test/CodeGen/SystemZ/dag-combine-03.ll +++ b/llvm/test/CodeGen/SystemZ/dag-combine-03.ll @@ -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, + %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)