Test Failure: Transforms/SLPVectorizer/X86/blending-shuffle.ll

Test source: git

Comments: LLVM PR44185

Log:

Source: <stdin>

----------------------------------------
define <2 x i8> @g(<2 x i8> %x, <2 x i8> %y) denormal-fp-math=ieee,ieee {
%0:
  %x0 = extractelement <2 x i8> %x, i32 0
  %y1 = extractelement <2 x i8> %y, i32 1
  %x0x0 = mul i8 %x0, %x0
  %y1y1 = mul i8 %y1, %y1
  %ins1 = insertelement <2 x i8> undef, i8 %x0x0, i32 0
  %ins2 = insertelement <2 x i8> %ins1, i8 %y1y1, i32 1
  ret <2 x i8> %ins2
}
=>
define <2 x i8> @g(<2 x i8> %x, <2 x i8> %y) denormal-fp-math=ieee,ieee {
%0:
  %1 = shufflevector <2 x i8> %x, <2 x i8> %y, 0, 3
  %2 = mul <2 x i8> %1, %1
  ret <2 x i8> %2
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define <4 x i8> @h(<4 x i8> %x, <4 x i8> %y) denormal-fp-math=ieee,ieee {
%0:
  %x0 = extractelement <4 x i8> %x, i32 0
  %x3 = extractelement <4 x i8> %x, i32 3
  %y1 = extractelement <4 x i8> %y, i32 1
  %y2 = extractelement <4 x i8> %y, i32 2
  %x0x0 = mul i8 %x0, %x0
  %x3x3 = mul i8 %x3, %x3
  %y1y1 = mul i8 %y1, %y1
  %y2y2 = mul i8 %y2, %y2
  %ins1 = insertelement <4 x i8> undef, i8 %x0x0, i32 0
  %ins2 = insertelement <4 x i8> %ins1, i8 %x3x3, i32 1
  %ins3 = insertelement <4 x i8> %ins2, i8 %y1y1, i32 2
  %ins4 = insertelement <4 x i8> %ins3, i8 %y2y2, i32 3
  ret <4 x i8> %ins4
}
=>
define <4 x i8> @h(<4 x i8> %x, <4 x i8> %y) denormal-fp-math=ieee,ieee {
%0:
  %1 = shufflevector <4 x i8> %x, <4 x i8> %y, 0, 3, 5, 6
  %2 = mul <4 x i8> %1, %1
  ret <4 x i8> %2
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define <4 x i8> @h_undef(<4 x i8> %x, <4 x i8> %y) denormal-fp-math=ieee,ieee {
%0:
  %x0 = extractelement <4 x i8> undef, i32 0
  %x3 = extractelement <4 x i8> %x, i32 3
  %y1 = extractelement <4 x i8> %y, i32 1
  %y2 = extractelement <4 x i8> %y, i32 2
  %x0x0 = mul i8 %x0, %x0
  %x3x3 = mul i8 %x3, %x3
  %y1y1 = mul i8 %y1, %y1
  %y2y2 = mul i8 %y2, %y2
  %ins1 = insertelement <4 x i8> undef, i8 %x0x0, i32 0
  %ins2 = insertelement <4 x i8> %ins1, i8 %x3x3, i32 1
  %ins3 = insertelement <4 x i8> %ins2, i8 %y1y1, i32 2
  %ins4 = insertelement <4 x i8> %ins3, i8 %y2y2, i32 3
  ret <4 x i8> %ins4
}
=>
define <4 x i8> @h_undef(<4 x i8> %x, <4 x i8> %y) denormal-fp-math=ieee,ieee {
%0:
  %1 = shufflevector <4 x i8> %x, <4 x i8> %y, 4294967295, 3, 5, 6
  %2 = mul <4 x i8> %1, %1
  ret <4 x i8> %2
}
Transformation doesn't verify!
ERROR: Target is more poisonous than source

Example:
<4 x i8> %x = < poison, poison, poison, poison >
<4 x i8> %y = < poison, poison, poison, poison >

Source:
i8 %x0 = #x00 (0)	[based on undef value]
i8 %x3 = poison
i8 %y1 = poison
i8 %y2 = poison
i8 %x0x0 = #x00 (0)
i8 %x3x3 = poison
i8 %y1y1 = poison
i8 %y2y2 = poison
<4 x i8> %ins1 = < #x00 (0), #x00 (0), #x00 (0), #x00 (0) >
<4 x i8> %ins2 = < #x00 (0), poison, #x00 (0), #x00 (0) >
<4 x i8> %ins3 = < #x00 (0), poison, poison, #x00 (0) >
<4 x i8> %ins4 = < #x00 (0), poison, poison, poison >

Target:
<4 x i8> %1 = < poison, poison, poison, poison >
<4 x i8> %2 = < poison, poison, poison, poison >
Source value: < #x00 (0), poison, poison, poison >
Target value: < poison, poison, poison, poison >


------------------- SMT STATS -------------------
Num queries: 48
Num invalid: 0
Num skips:   0
Num trivial: 19 (28.4%)
Num timeout: 2 (4.2%)
Num errors:  0 (0.0%)
Num SAT:     42 (87.5%)
Num UNSAT:   4 (8.3%)
Alive2: Transform doesn't verify; aborting!

stderr:

+ : 'RUN: at line 2'
+ /home/nlopes/alive2/build/opt-alive.sh -slp-vectorizer -S -o - -mtriple=x86_64-unknown-linux -mcpu=bdver2 -instcombine
+ /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle.ll

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle.ll

 

<-- Back