Test Failure: Transforms/InstCombine/and2.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define i1 @test2(i1 %X, i1 %Y) {
%0:
  %a = and i1 %X, %Y
  %b = and i1 %a, %X
  ret i1 %b
}
=>
define i1 @test2(i1 %X, i1 %Y) {
%0:
  %a = and i1 %X, %Y
  ret i1 %a
}
Transformation seems to be correct!


----------------------------------------
define i1 @test2_logical(i1 %X, i1 %Y) {
%0:
  %a = select i1 %X, i1 %Y, i1 0
  %b = select i1 %a, i1 %X, i1 0
  ret i1 %b
}
=>
define i1 @test2_logical(i1 %X, i1 %Y) {
%0:
  %a = and i1 %X, %Y
  ret i1 %a
}
Transformation doesn't verify!
ERROR: Target is more poisonous than source

Example:
i1 %X = #x0 (0)
i1 %Y = poison

Source:
i1 %a = #x0 (0)
i1 %b = #x0 (0)

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


------------------- SMT STATS -------------------
Num queries: 6
Num invalid: 0
Num skips:   0
Num trivial: 5 (45.5%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     3 (50.0%)
Num UNSAT:   3 (50.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/and2.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/and2.ll

 

<-- Back