Test Failure: Transforms/InstCombine/invert-variable-mask-in-masked-merge-vector.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define <2 x i4> @vector(<2 x i4> %x, <2 x i4> %y, <2 x i4> %m) {
%0:
  %im = xor <2 x i4> %m, { 15, 15 }
  %n0 = xor <2 x i4> %x, %y
  %n1 = and <2 x i4> %n0, %im
  %r = xor <2 x i4> %n1, %y
  ret <2 x i4> %r
}
=>
define <2 x i4> @vector(<2 x i4> %x, <2 x i4> %y, <2 x i4> %m) {
%0:
  %n0 = xor <2 x i4> %x, %y
  %1 = and <2 x i4> %n0, %m
  %r = xor <2 x i4> %1, %x
  ret <2 x i4> %r
}
Transformation doesn't verify!
ERROR: Value mismatch

Example:
<2 x i4> %x = < undef, undef >
<2 x i4> %y = < #x1 (1), #x2 (2) >
<2 x i4> %m = < #x8 (8, -8), #x0 (0) >

Source:
<2 x i4> %im = < #x7 (7), #xf (15, -1) >
<2 x i4> %n0 = < undef, undef >
<2 x i4> %n1 = < #x1 (1)	[based on undef value], #x2 (2) >
<2 x i4> %r = < #x0 (0), #x0 (0) >

Target:
<2 x i4> %n0 = < #x1 (1), #x2 (2) >
<2 x i4> %1 = < #x0 (0), #x0 (0) >
<2 x i4> %r = < #x8 (8, -8), #x3 (3) >
Source value: < #x0 (0), #x0 (0) >
Target value: < #x8 (8, -8), #x3 (3) >


------------------- SMT STATS -------------------
Num queries: 5
Num invalid: 0
Num skips:   0
Num trivial: 2 (28.6%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     3 (60.0%)
Num UNSAT:   2 (40.0%)

stderr:

+ : 'RUN: at line 2'
+ /home/nlopes/alive2/scripts/opt-alive.sh -instcombine -S
+ /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/invert-variable-mask-in-masked-merge-vector.ll

Alive2: Transform doesn't verify; aborting!
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/invert-variable-mask-in-masked-merge-vector.ll

 

NOTE: This test would pass if undef didn't exist!

 

<-- Back