Test Failure: Transforms/InstCombine/and-or-icmps.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define i1 @PR1817_1(i32 %X) {
%0:
  %A = icmp slt i32 %X, 10
  %B = icmp ult i32 %X, 10
  %C = and i1 %A, %B
  ret i1 %C
}
=>
define i1 @PR1817_1(i32 %X) {
%0:
  %B = icmp ult i32 %X, 10
  ret i1 %B
}
Transformation seems to be correct!


----------------------------------------
define i1 @PR1817_1_logical(i32 %X) {
%0:
  %A = icmp slt i32 %X, 10
  %B = icmp ult i32 %X, 10
  %C = select i1 %A, i1 %B, i1 0
  ret i1 %C
}
=>
define i1 @PR1817_1_logical(i32 %X) {
%0:
  %B = icmp ult i32 %X, 10
  ret i1 %B
}
Transformation seems to be correct!


----------------------------------------
define i1 @PR1817_2(i32 %X) {
%0:
  %A = icmp slt i32 %X, 10
  %B = icmp ult i32 %X, 10
  %C = or i1 %A, %B
  ret i1 %C
}
=>
define i1 @PR1817_2(i32 %X) {
%0:
  %A = icmp slt i32 %X, 10
  ret i1 %A
}
Transformation seems to be correct!


----------------------------------------
define i1 @PR1817_2_logical(i32 %X) {
%0:
  %A = icmp slt i32 %X, 10
  %B = icmp ult i32 %X, 10
  %C = select i1 %A, i1 1, i1 %B
  ret i1 %C
}
=>
define i1 @PR1817_2_logical(i32 %X) {
%0:
  %A = icmp slt i32 %X, 10
  ret i1 %A
}
Transformation seems to be correct!


----------------------------------------
define i1 @PR2330(i32 %a, i32 %b) {
%0:
  %cmp1 = icmp ult i32 %a, 8
  %cmp2 = icmp ult i32 %b, 8
  %and = and i1 %cmp2, %cmp1
  ret i1 %and
}
=>
define i1 @PR2330(i32 %a, i32 %b) {
%0:
  %1 = or i32 %b, %a
  %2 = icmp ult i32 %1, 8
  ret i1 %2
}
Transformation seems to be correct!


----------------------------------------
define i1 @PR2330_logical(i32 %a, i32 %b) {
%0:
  %cmp1 = icmp ult i32 %a, 8
  %cmp2 = icmp ult i32 %b, 8
  %and = select i1 %cmp2, i1 %cmp1, i1 0
  ret i1 %and
}
=>
define i1 @PR2330_logical(i32 %a, i32 %b) {
%0:
  %1 = or i32 %b, %a
  %2 = icmp ult i32 %1, 8
  ret i1 %2
}
Transformation doesn't verify!
ERROR: Target is more poisonous than source

Example:
i32 %a = poison
i32 %b = #xfffffff8 (4294967288, -8)

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

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


------------------- SMT STATS -------------------
Num queries: 19
Num invalid: 0
Num skips:   0
Num trivial: 24 (55.8%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     7 (36.8%)
Num UNSAT:   12 (63.2%)
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/and-or-icmps.ll

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

 

<-- Back