Test Failure: Transforms/Scalarizer/scatter-order.ll

Test source: git

Log:

Source: /bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll

----------------------------------------
define <2 x i32> @test1(i1 %b, <2 x i32> %i, <2 x i32> %j) denormal-fp-math=ieee,ieee {
%0:
  %res = select i1 %b, <2 x i32> %i, <2 x i32> %j
  ret <2 x i32> %res
}
=>
define <2 x i32> @test1(i1 %b, <2 x i32> %i, <2 x i32> %j) denormal-fp-math=ieee,ieee {
%0:
  %i.i0 = extractelement <2 x i32> %i, i32 0
  %j.i0 = extractelement <2 x i32> %j, i32 0
  %res.i0 = select i1 %b, i32 %i.i0, i32 %j.i0
  %i.i1 = extractelement <2 x i32> %i, i32 1
  %j.i1 = extractelement <2 x i32> %j, i32 1
  %res.i1 = select i1 %b, i32 %i.i1, i32 %j.i1
  %res.upto0 = insertelement <2 x i32> poison, i32 %res.i0, i32 0
  %res = insertelement <2 x i32> %res.upto0, i32 %res.i1, i32 1
  ret <2 x i32> %res
}
Transformation doesn't verify!
ERROR: Target is more poisonous than source

Example:
i1 %b = undef
<2 x i32> %i = < poison, #x00000000 (0)	[based on undef value] >
<2 x i32> %j = < #x00000000 (0)	[based on undef value], poison >

Source:
<2 x i32> %res = < poison, poison >

Target:
i32 %i.i0 = poison
i32 %j.i0 = #x00000000 (0)
i32 %res.i0 = poison
i32 %i.i1 = #x00000000 (0)
i32 %j.i1 = poison
i32 %res.i1 = poison
<2 x i32> %res.upto0 = < poison, poison >
<2 x i32> %res = < poison, poison >
Source value: < poison, poison >
Target value: < poison, poison >


------------------- SMT STATS -------------------
Num queries: 8
Num invalid: 0
Num skips:   0
Num trivial: 7 (46.7%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     8 (100.0%)
Num UNSAT:   0 (0.0%)
Alive2: Transform doesn't verify; aborting!

stderr:

+ : 'RUN: at line 2'
+ /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll
+ /home/nlopes/alive2/build/opt-alive.sh /bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll '-passes=function(scalarizer)' -scalarize-load-store -S

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll

 

NOTE: This test would pass if undef didn't exist!

 

<-- Back