Test Failure: Transforms/InstCombine/vec_shuffle.ll

Test source: git

Log:

Source: <stdin>
-- 1. ModuleToFunctionPassAdaptor
ERROR: Unsupported type: <vscale x 4 x float>
ERROR: Unsupported type: <vscale x 4 x i32>
-- 1. PassManager<Function> : Skipping NOP
-- 2. InstCombinePass

----------------------------------------
define <4 x float> @test1(<4 x float> %v1) {
#0:
  %v2 = shufflevector <4 x float> %v1, <4 x float> undef, 0, 1, 2, 3
  ret <4 x float> %v2
}
Transformation seems to be correct! (syntactically equal)

-- 3. InstCombinePass

----------------------------------------
define <4 x float> @test1(<4 x float> %v1) {
#0:
  %v2 = shufflevector <4 x float> %v1, <4 x float> undef, 0, 1, 2, 3
  ret <4 x float> %v2
}
=>
define <4 x float> @test1(<4 x float> %v1) {
#0:
  ret <4 x float> %v1
}
Transformation seems to be correct!

-- 4. PassManager<Function> : Skipping NOP
-- 5. PassManager<Function> : Skipping NOP
-- 6. InstCombinePass

----------------------------------------
define <4 x float> @test2(<4 x float> %v1) {
#0:
  %v2 = shufflevector <4 x float> %v1, <4 x float> %v1, 0, 5, 2, 7
  ret <4 x float> %v2
}
Transformation seems to be correct! (syntactically equal)

-- 7. InstCombinePass

----------------------------------------
define <4 x float> @test2(<4 x float> %v1) {
#0:
  %v2 = shufflevector <4 x float> %v1, <4 x float> %v1, 0, 5, 2, 7
  ret <4 x float> %v2
}
=>
define <4 x float> @test2(<4 x float> %v1) {
#0:
  ret <4 x float> %v1
}
Transformation seems to be correct!

-- 8. PassManager<Function> : Skipping NOP
-- 9. PassManager<Function> : Skipping NOP
-- 10. InstCombinePass

----------------------------------------
define float @test3(<4 x float> %A, <4 x float> %B, float %f) {
#0:
  %C = insertelement <4 x float> %A, float %f, i32 0
  %D = shufflevector <4 x float> %C, <4 x float> %B, 5, 0, 2, 7
  %E = extractelement <4 x float> %D, i32 1
  ret float %E
}
Transformation seems to be correct! (syntactically equal)

-- 11. InstCombinePass

----------------------------------------
define float @test3(<4 x float> %A, <4 x float> %B, float %f) {
#0:
  %C = insertelement <4 x float> %A, float %f, i32 0
  %D = shufflevector <4 x float> %C, <4 x float> %B, 5, 0, 2, 7
  %E = extractelement <4 x float> %D, i32 1
  ret float %E
}
=>
define float @test3(<4 x float> %A, <4 x float> %B, float %f) {
#0:
  ret float %f
}
Transformation seems to be correct!

-- 12. PassManager<Function> : Skipping NOP
-- 13. PassManager<Function> : Skipping NOP
-- 14. InstCombinePass

----------------------------------------
define i32 @test4(<4 x i32> %X) {
#0:
  %t = shufflevector <4 x i32> %X, <4 x i32> undef, 0, 0, 0, 0
  %r = extractelement <4 x i32> %t, i32 0
  ret i32 %r
}
Transformation seems to be correct! (syntactically equal)

-- 15. InstCombinePass

----------------------------------------
define i32 @test4(<4 x i32> %X) {
#0:
  %t = shufflevector <4 x i32> %X, <4 x i32> undef, 0, 0, 0, 0
  %r = extractelement <4 x i32> %t, i32 0
  ret i32 %r
}
=>
define i32 @test4(<4 x i32> %X) {
#0:
  %r = extractelement <4 x i32> %X, i64 0
  ret i32 %r
}
Transformation seems to be correct!

-- 16. PassManager<Function> : Skipping NOP
-- 17. PassManager<Function> : Skipping NOP
-- 18. InstCombinePass

----------------------------------------
define i32 @test5(<4 x i32> %X) {
#0:
  %t = shufflevector <4 x i32> %X, <4 x i32> undef, 3, 2, 4294967295, 4294967295
  %r = extractelement <4 x i32> %t, i32 0
  ret i32 %r
}
Transformation seems to be correct! (syntactically equal)

-- 19. InstCombinePass

----------------------------------------
define i32 @test5(<4 x i32> %X) {
#0:
  %t = shufflevector <4 x i32> %X, <4 x i32> undef, 3, 2, 4294967295, 4294967295
  %r = extractelement <4 x i32> %t, i32 0
  ret i32 %r
}
=>
define i32 @test5(<4 x i32> %X) {
#0:
  %r = extractelement <4 x i32> %X, i64 3
  ret i32 %r
}
Transformation seems to be correct!

-- 20. PassManager<Function> : Skipping NOP
-- 21. PassManager<Function> : Skipping NOP
-- 22. InstCombinePass

----------------------------------------
define float @test6(<4 x float> %X) {
#0:
  %X1 = bitcast <4 x float> %X to <4 x i32>
  %t = shufflevector <4 x i32> %X1, <4 x i32> undef, 0, 0, 0, 0
  %t2 = bitcast <4 x i32> %t to <4 x float>
  %r = extractelement <4 x float> %t2, i32 0
  ret float %r
}
Transformation seems to be correct! (syntactically equal)

-- 23. InstCombinePass

----------------------------------------
define float @test6(<4 x float> %X) {
#0:
  %X1 = bitcast <4 x float> %X to <4 x i32>
  %t = shufflevector <4 x i32> %X1, <4 x i32> undef, 0, 0, 0, 0
  %t2 = bitcast <4 x i32> %t to <4 x float>
  %r = extractelement <4 x float> %t2, i32 0
  ret float %r
}
=>
define float @test6(<4 x float> %X) {
#0:
  %r = extractelement <4 x float> %X, i64 0
  ret float %r
}
Transformation seems to be correct!

-- 24. PassManager<Function> : Skipping NOP
-- 25. PassManager<Function> : Skipping NOP
ERROR: Unsupported type: <vscale x 4 x float>
-- 26. InstCombinePass
ERROR: Unsupported type: <vscale x 4 x float>
-- 27. InstCombinePass
ERROR: Unsupported type: <vscale x 4 x float>
-- 28. PassManager<Function> : Skipping NOP
ERROR: Unsupported type: <vscale x 4 x float>
-- 29. PassManager<Function> : Skipping NOP
-- 30. InstCombinePass

----------------------------------------
define <4 x float> @test7(<4 x float> %x) {
#0:
  %r = shufflevector <4 x float> %x, <4 x float> undef, 0, 1, 6, 7
  ret <4 x float> %r
}
Transformation seems to be correct! (syntactically equal)

-- 31. InstCombinePass

----------------------------------------
define <4 x float> @test7(<4 x float> %x) {
#0:
  %r = shufflevector <4 x float> %x, <4 x float> undef, 0, 1, 6, 7
  ret <4 x float> %r
}
=>
define <4 x float> @test7(<4 x float> %x) {
#0:
  %r = shufflevector <4 x float> %x, <4 x float> { poison, poison, undef, undef }, 0, 1, 6, 7
  ret <4 x float> %r
}
Transformation seems to be correct!

-- 32. PassManager<Function> : Skipping NOP
-- 33. PassManager<Function> : Skipping NOP
-- 34. InstCombinePass

----------------------------------------
define <4 x float> @test8(<4 x float> %x, <4 x float> %y) {
#0:
  %t4 = extractelement <4 x float> %x, i32 1
  %t2 = extractelement <4 x float> %x, i32 3
  %t1 = extractelement <4 x float> %y, i32 0
  %t128 = insertelement <4 x float> undef, float %t4, i32 0
  %t130 = insertelement <4 x float> %t128, float undef, i32 1
  %t132 = insertelement <4 x float> %t130, float %t2, i32 2
  %t134 = insertelement <4 x float> %t132, float %t1, i32 3
  ret <4 x float> %t134
}
Transformation seems to be correct! (syntactically equal)

-- 35. InstCombinePass

----------------------------------------
define <4 x float> @test8(<4 x float> %x, <4 x float> %y) {
#0:
  %t4 = extractelement <4 x float> %x, i32 1
  %t2 = extractelement <4 x float> %x, i32 3
  %t1 = extractelement <4 x float> %y, i32 0
  %t128 = insertelement <4 x float> undef, float %t4, i32 0
  %t130 = insertelement <4 x float> %t128, float undef, i32 1
  %t132 = insertelement <4 x float> %t130, float %t2, i32 2
  %t134 = insertelement <4 x float> %t132, float %t1, i32 3
  ret <4 x float> %t134
}
=>
define <4 x float> @test8(<4 x float> %x, <4 x float> %y) {
#0:
  %t134 = shufflevector <4 x float> %x, <4 x float> %y, 1, 4294967295, 3, 4
  ret <4 x float> %t134
}
Transformation doesn't verify! (unsound)
ERROR: Target is more poisonous than source

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

Source:
float %t4 = poison
float %t2 = poison
float %t1 = poison
<4 x float> %t128 = < poison, #x00000000 (+0.0)	[based on undef value], #x00000000 (+0.0), #x00000000 (+0.0) >
<4 x float> %t130 = < poison, #x00000000 (+0.0)	[based on undef value], #x00000000 (+0.0), #x00000000 (+0.0) >
<4 x float> %t132 = < poison, #x00000000 (+0.0), poison, #x00000000 (+0.0) >
<4 x float> %t134 = < poison, #x00000000 (+0.0), poison, poison >

Target:
<4 x float> %t134 = < poison, poison, poison, poison >
Source value: < poison, #x00000000 (+0.0), poison, poison >
Target value: < poison, poison, poison, poison >

Pass: InstCombinePass
Command line: '/home/nlopes/llvm/build/bin/opt' '-load=/home/nlopes/alive2/build/tv/tv.so' '-load-pass-plugin=/home/nlopes/alive2/build/tv/tv.so' '-tv-exit-on-error' '-passes=instcombine' '-S' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'
Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_L1lurnRh_WHxI.bc"


------------------- SMT STATS -------------------
Num queries: 59
Num invalid: 0
Num skips:   0
Num trivial: 39 (39.8%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     44 (74.6%)
Num UNSAT:   15 (25.4%)
Alive2: Transform doesn't verify; aborting!

stderr:

RUN: at line 2: /home/nlopes/alive2/build/opt-alive.sh < /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/vec_shuffle.ll -passes=instcombine -S | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/vec_shuffle.ll
+ /home/nlopes/alive2/build/opt-alive.sh -passes=instcombine -S
+ /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/vec_shuffle.ll

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

 

<-- Back