Test Failure: Transforms/InstCombine/max-of-nots.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define <2 x i32> @umin_of_nots(<2 x i32> %x, <2 x i32> %y) {
%0:
  %notx = xor <2 x i32> %x, { 4294967295, 4294967295 }
  %noty = xor <2 x i32> %y, { 4294967295, 4294967295 }
  %cmp = icmp ult <2 x i32> %notx, %noty
  %min = select <2 x i1> %cmp, <2 x i32> %notx, <2 x i32> %noty
  ret <2 x i32> %min
}
=>
define <2 x i32> @umin_of_nots(<2 x i32> %x, <2 x i32> %y) {
%0:
  %1 = icmp ugt <2 x i32> %x, %y
  %2 = select <2 x i1> %1, <2 x i32> %x, <2 x i32> %y
  %min = xor <2 x i32> %2, { 4294967295, 4294967295 }
  ret <2 x i32> %min
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define <2 x i32> @smin_of_nots(<2 x i32> %x, <2 x i32> %y) {
%0:
  %notx = xor <2 x i32> %x, { 4294967295, 4294967295 }
  %noty = xor <2 x i32> %y, { 4294967295, 4294967295 }
  %cmp = icmp sle <2 x i32> %notx, %noty
  %min = select <2 x i1> %cmp, <2 x i32> %notx, <2 x i32> %noty
  ret <2 x i32> %min
}
=>
define <2 x i32> @smin_of_nots(<2 x i32> %x, <2 x i32> %y) {
%0:
  %1 = icmp sgt <2 x i32> %x, %y
  %2 = select <2 x i1> %1, <2 x i32> %x, <2 x i32> %y
  %min = xor <2 x i32> %2, { 4294967295, 4294967295 }
  ret <2 x i32> %min
}
Transformation doesn't verify!
ERROR: Target's return value is more undefined

Example:
<2 x i32> %x = < poison, #x7fffffff (2147483647) >
<2 x i32> %y = < poison, undef >

Source:
<2 x i32> %notx = < poison, #x80000000 (2147483648, -2147483648) >
<2 x i32> %noty = < poison, #xffffffff (4294967295, -1)	[based on undef value] >
<2 x i1> %cmp = < poison, #x1 (1) >
<2 x i32> %min = < poison, #x80000000 (2147483648, -2147483648) >

Target:
<2 x i1> %1 = < poison, #x0 (0) >
<2 x i32> %2 = < poison, #x60dbaa93 (1625008787) >
<2 x i32> %min = < poison, #x9f24556c (2669958508, -1625008788) >
Source value: < poison, #x80000000 (2147483648, -2147483648) >
Target value: < poison, #x9f24556c (2669958508, -1625008788) >


------------------- SMT STATS -------------------
Num queries: 8
Num invalid: 0
Num skips:   0
Num trivial: 15 (65.2%)
Num timeout: 2 (25.0%)
Num errors:  0 (0.0%)
Num SAT:     3 (37.5%)
Num UNSAT:   3 (37.5%)
Alive2: Transform doesn't verify; aborting!

stderr:

+ : 'RUN: at line 2'
+ /home/nlopes/alive2/build/opt-alive.sh -S -instcombine
+ /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/max-of-nots.ll

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/max-of-nots.ll

 

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

 

<-- Back