Test Failure: Transforms/InstCombine/sign-test-and-or.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define i1 @test1(i32 %a, i32 %b) {
%0:
  %1 = icmp slt i32 %a, 0
  %2 = icmp slt i32 %b, 0
  %or.cond = or i1 %1, %2
  ret i1 %or.cond
}
=>
define i1 @test1(i32 %a, i32 %b) {
%0:
  %1 = or i32 %a, %b
  %2 = icmp slt i32 %1, 0
  ret i1 %2
}
Transformation seems to be correct!


----------------------------------------
define i1 @test1_logical(i32 %a, i32 %b) {
%0:
  %1 = icmp slt i32 %a, 0
  %2 = icmp slt i32 %b, 0
  %or.cond = select i1 %1, i1 1, i1 %2
  ret i1 %or.cond
}
=>
define i1 @test1_logical(i32 %a, i32 %b) {
%0:
  %1 = or i32 %a, %b
  %2 = icmp slt i32 %1, 0
  ret i1 %2
}
Transformation doesn't verify!
ERROR: Target is more poisonous than source

Example:
i32 %a = #xffffffff (4294967295, -1)
i32 %b = poison

Source:
i1 %1 = #x1 (1)
i1 %2 = poison
i1 %or.cond = #x1 (1)

Target:
i32 %1 = poison
i1 %2 = poison
Source value: #x1 (1)
Target value: poison


------------------- SMT STATS -------------------
Num queries: 5
Num invalid: 0
Num skips:   0
Num trivial: 10 (66.7%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     3 (60.0%)
Num UNSAT:   2 (40.0%)
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/sign-test-and-or.ll

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

 

<-- Back