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: 9 (60.0%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     3 (50.0%)
Num UNSAT:   3 (50.0%)
Alive2: Transform doesn't verify; aborting!

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

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

 

<-- Back