Test Failure: Transforms/InstCombine/and-fcmp.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define i1 @PR1738(double %x, double %y) {
%0:
  %cmp1 = fcmp ord double %x, 0.000000
  %cmp2 = fcmp ord double %y, 0.000000
  %and = and i1 %cmp1, %cmp2
  ret i1 %and
}
=>
define i1 @PR1738(double %x, double %y) {
%0:
  %1 = fcmp ord double %x, %y
  ret i1 %1
}
Transformation seems to be correct!


----------------------------------------
define i1 @PR1738_logical(double %x, double %y) {
%0:
  %cmp1 = fcmp ord double %x, 0.000000
  %cmp2 = fcmp ord double %y, 0.000000
  %and = select i1 %cmp1, i1 %cmp2, i1 0
  ret i1 %and
}
=>
define i1 @PR1738_logical(double %x, double %y) {
%0:
  %1 = fcmp ord double %x, %y
  ret i1 %1
}
Transformation doesn't verify!
ERROR: Target is more poisonous than source

Example:
double %x = NaN
double %y = poison

Source:
i1 %cmp1 = #x0 (0)
i1 %cmp2 = poison
i1 %and = #x0 (0)

Target:
i1 %1 = poison
Source value: #x0 (0)
Target value: poison


------------------- SMT STATS -------------------
Num queries: 5
Num invalid: 0
Num skips:   0
Num trivial: 6 (54.5%)
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/build/opt-alive.sh -instcombine -S
+ /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/and-fcmp.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/and-fcmp.ll

 

<-- Back