Test Failure: Transforms/InstCombine/select-value-equivalence.ll

Test source: git

Log:

Source: /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/select-value-equivalence.ll
-- 1. ModuleToFunctionPassAdaptor
-- 1. PassManager<Function> : Skipping NOP
-- 2. InstCombinePass

----------------------------------------
define <2 x i8> @select_icmp_insertelement_eq(<2 x i8> %x, <2 x i8> %y, i8 %i) {
#0:
  %cmp = icmp eq <2 x i8> %y, { 2, 2 }
  %insert = insertelement <2 x i8> %y, i8 0, i8 %i
  %retval = select <2 x i1> %cmp, <2 x i8> %insert, <2 x i8> %x
  ret <2 x i8> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 3. InstCombinePass

----------------------------------------
define <2 x i8> @select_icmp_insertelement_eq(<2 x i8> %x, <2 x i8> %y, i8 %i) {
#0:
  %cmp = icmp eq <2 x i8> %y, { 2, 2 }
  %insert = insertelement <2 x i8> %y, i8 0, i8 %i
  %retval = select <2 x i1> %cmp, <2 x i8> %insert, <2 x i8> %x
  ret <2 x i8> %retval
}
=>
define <2 x i8> @select_icmp_insertelement_eq(<2 x i8> %x, <2 x i8> %y, i8 %i) {
#0:
  %cmp = icmp eq <2 x i8> %y, { 2, 2 }
  %insert = insertelement <2 x i8> { 2, 2 }, i8 0, i8 %i
  %retval = select <2 x i1> %cmp, <2 x i8> %insert, <2 x i8> %x
  ret <2 x i8> %retval
}
Transformation seems to be correct!

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

----------------------------------------
define <2 x i8> @select_icmp_insertelement_ne(<2 x i8> %x, <2 x i8> %y, i8 %i) {
#0:
  %cmp = icmp ne <2 x i8> %y, { 2, 2 }
  %insert = insertelement <2 x i8> %y, i8 0, i8 %i
  %retval = select <2 x i1> %cmp, <2 x i8> %x, <2 x i8> %insert
  ret <2 x i8> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 7. InstCombinePass

----------------------------------------
define <2 x i8> @select_icmp_insertelement_ne(<2 x i8> %x, <2 x i8> %y, i8 %i) {
#0:
  %cmp = icmp ne <2 x i8> %y, { 2, 2 }
  %insert = insertelement <2 x i8> %y, i8 0, i8 %i
  %retval = select <2 x i1> %cmp, <2 x i8> %x, <2 x i8> %insert
  ret <2 x i8> %retval
}
=>
define <2 x i8> @select_icmp_insertelement_ne(<2 x i8> %x, <2 x i8> %y, i8 %i) {
#0:
  %cmp.not = icmp eq <2 x i8> %y, { 2, 2 }
  %insert = insertelement <2 x i8> { 2, 2 }, i8 0, i8 %i
  %retval = select <2 x i1> %cmp.not, <2 x i8> %insert, <2 x i8> %x
  ret <2 x i8> %retval
}
Transformation seems to be correct!

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

----------------------------------------
define <2 x i8> @select_icmp_shufflevector_identity(<2 x i8> %x, <2 x i8> %y) {
#0:
  %cmp = icmp eq <2 x i8> %y, { 2, 2 }
  %shuffle = shufflevector <2 x i8> %y, <2 x i8> poison, 0, 1
  %retval = select <2 x i1> %cmp, <2 x i8> %shuffle, <2 x i8> %x
  ret <2 x i8> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 11. InstCombinePass

----------------------------------------
define <2 x i8> @select_icmp_shufflevector_identity(<2 x i8> %x, <2 x i8> %y) {
#0:
  %cmp = icmp eq <2 x i8> %y, { 2, 2 }
  %shuffle = shufflevector <2 x i8> %y, <2 x i8> poison, 0, 1
  %retval = select <2 x i1> %cmp, <2 x i8> %shuffle, <2 x i8> %x
  ret <2 x i8> %retval
}
=>
define <2 x i8> @select_icmp_shufflevector_identity(<2 x i8> %x, <2 x i8> %y) {
#0:
  %cmp = icmp eq <2 x i8> %y, { 2, 2 }
  %retval = select <2 x i1> %cmp, <2 x i8> { 2, 2 }, <2 x i8> %x
  ret <2 x i8> %retval
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i8> @select_icmp_shufflevector_select(<4 x i8> %x, <4 x i8> %y, <4 x i8> %z) {
#0:
  %cmp = icmp eq <4 x i8> %y, { 2, 2, 2, 2 }
  %shuffle = shufflevector <4 x i8> %y, <4 x i8> %z, 4, 1, 6, 3
  %retval = select <4 x i1> %cmp, <4 x i8> %shuffle, <4 x i8> %x
  ret <4 x i8> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 15. InstCombinePass

----------------------------------------
define <4 x i8> @select_icmp_shufflevector_select(<4 x i8> %x, <4 x i8> %y, <4 x i8> %z) {
#0:
  %cmp = icmp eq <4 x i8> %y, { 2, 2, 2, 2 }
  %shuffle = shufflevector <4 x i8> %y, <4 x i8> %z, 4, 1, 6, 3
  %retval = select <4 x i1> %cmp, <4 x i8> %shuffle, <4 x i8> %x
  ret <4 x i8> %retval
}
=>
define <4 x i8> @select_icmp_shufflevector_select(<4 x i8> %x, <4 x i8> %y, <4 x i8> %z) {
#0:
  %cmp = icmp eq <4 x i8> %y, { 2, 2, 2, 2 }
  %shuffle = shufflevector <4 x i8> %z, <4 x i8> { poison, 2, poison, 2 }, 0, 5, 2, 7
  %retval = select <4 x i1> %cmp, <4 x i8> %shuffle, <4 x i8> %x
  ret <4 x i8> %retval
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 16. PassManager<Function> : Skipping NOP
-- 17. PassManager<Function> : Skipping NOP
-- 18. InstCombinePass

----------------------------------------
define <2 x i8> @select_icmp_shufflevector_lanecrossing(<2 x i8> %x, <2 x i8> %y) {
#0:
  %cmp = icmp eq <2 x i8> %y, { 2, 2 }
  %shuffle = shufflevector <2 x i8> %y, <2 x i8> poison, 1, 0
  %retval = select <2 x i1> %cmp, <2 x i8> %shuffle, <2 x i8> %x
  ret <2 x i8> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 19. InstCombinePass

----------------------------------------
define <2 x i8> @select_icmp_shufflevector_lanecrossing(<2 x i8> %x, <2 x i8> %y) {
#0:
  %cmp = icmp eq <2 x i8> %y, { 2, 2 }
  %shuffle = shufflevector <2 x i8> %y, <2 x i8> poison, 1, 0
  %retval = select <2 x i1> %cmp, <2 x i8> %shuffle, <2 x i8> %x
  ret <2 x i8> %retval
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
declare <2 x i8> @fn(<2 x i8>)

define <2 x i8> @select_icmp_call_possibly_lanecrossing(<2 x i8> %x, <2 x i8> %y) {
#0:
  %cmp = icmp eq <2 x i8> %y, { 2, 2 }
  %call = call <2 x i8> @fn(<2 x i8> %y)
  %retval = select <2 x i1> %cmp, <2 x i8> %call, <2 x i8> %x
  ret <2 x i8> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 23. InstCombinePass

----------------------------------------
declare <2 x i8> @fn(<2 x i8>)

define <2 x i8> @select_icmp_call_possibly_lanecrossing(<2 x i8> %x, <2 x i8> %y) {
#0:
  %cmp = icmp eq <2 x i8> %y, { 2, 2 }
  %call = call <2 x i8> @fn(<2 x i8> %y)
  %retval = select <2 x i1> %cmp, <2 x i8> %call, <2 x i8> %x
  ret <2 x i8> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 24. PassManager<Function> : Skipping NOP
-- 25. PassManager<Function> : Skipping NOP
-- 26. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_oeq_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp oeq float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %fadd, float %x
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 27. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_oeq_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp oeq float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %fadd, float %x
  ret float %retval
}
=>
define float @select_fcmp_fadd_oeq_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp oeq float %y, 2.000000
  %fadd = fadd float %x, 2.000000
  %retval = select i1 %fcmp, float %fadd, float %x
  ret float %retval
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 28. PassManager<Function> : Skipping NOP
-- 29. PassManager<Function> : Skipping NOP
-- 30. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_une_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp une float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %x, float %fadd
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 31. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_une_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp une float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %x, float %fadd
  ret float %retval
}
=>
define float @select_fcmp_fadd_une_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp une float %y, 2.000000
  %fadd = fadd float %x, 2.000000
  %retval = select i1 %fcmp, float %x, float %fadd
  ret float %retval
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 32. PassManager<Function> : Skipping NOP
-- 33. PassManager<Function> : Skipping NOP
-- 34. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_ueq_nnan_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp nnan ueq float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %fadd, float %x
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 35. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_ueq_nnan_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp nnan ueq float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %fadd, float %x
  ret float %retval
}
=>
define float @select_fcmp_fadd_ueq_nnan_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp nnan ueq float %y, 2.000000
  %fadd = fadd float %x, 2.000000
  %retval = select i1 %fcmp, float %fadd, float %x
  ret float %retval
}
Transformation seems to be correct!

-- 36. PassManager<Function> : Skipping NOP
-- 37. PassManager<Function> : Skipping NOP
-- 38. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_one_nnan_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp nnan one float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %x, float %fadd
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 39. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_one_nnan_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp nnan one float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %x, float %fadd
  ret float %retval
}
=>
define float @select_fcmp_fadd_one_nnan_not_zero(float %x, float %y) {
#0:
  %fcmp = fcmp nnan one float %y, 2.000000
  %fadd = fadd float %x, 2.000000
  %retval = select i1 %fcmp, float %x, float %fadd
  ret float %retval
}
Transformation seems to be correct!

-- 40. PassManager<Function> : Skipping NOP
-- 41. PassManager<Function> : Skipping NOP
-- 42. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_ueq(float %x, float %y) {
#0:
  %fcmp = fcmp ueq float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %fadd, float %x
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 43. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_ueq(float %x, float %y) {
#0:
  %fcmp = fcmp ueq float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %fadd, float %x
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 44. PassManager<Function> : Skipping NOP
-- 45. PassManager<Function> : Skipping NOP
-- 46. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_one(float %x, float %y) {
#0:
  %fcmp = fcmp one float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %x, float %fadd
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 47. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_one(float %x, float %y) {
#0:
  %fcmp = fcmp one float %y, 2.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %x, float %fadd
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 48. PassManager<Function> : Skipping NOP
-- 49. PassManager<Function> : Skipping NOP
-- 50. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_oeq_zero(float %x, float %y) {
#0:
  %fcmp = fcmp oeq float %y, 0.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %fadd, float %x
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 51. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_oeq_zero(float %x, float %y) {
#0:
  %fcmp = fcmp oeq float %y, 0.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %fadd, float %x
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 52. PassManager<Function> : Skipping NOP
-- 53. PassManager<Function> : Skipping NOP
-- 54. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_une_zero(float %x, float %y) {
#0:
  %fcmp = fcmp une float %y, 0.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %x, float %fadd
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 55. InstCombinePass

----------------------------------------
define float @select_fcmp_fadd_une_zero(float %x, float %y) {
#0:
  %fcmp = fcmp une float %y, 0.000000
  %fadd = fadd float %x, %y
  %retval = select i1 %fcmp, float %x, float %fadd
  ret float %retval
}
Transformation seems to be correct! (syntactically equal)

-- 56. PassManager<Function> : Skipping NOP
-- 57. PassManager<Function> : Skipping NOP
-- 58. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_oeq_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp oeq <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> %x
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 59. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_oeq_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp oeq <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> %x
  ret <2 x float> %retval
}
=>
define <2 x float> @select_fcmp_fadd_oeq_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp oeq <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, { 2.000000, 2.000000 }
  %retval = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> %x
  ret <2 x float> %retval
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 60. PassManager<Function> : Skipping NOP
-- 61. PassManager<Function> : Skipping NOP
-- 62. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_une_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp une <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %x, <2 x float> %fadd
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 63. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_une_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp une <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %x, <2 x float> %fadd
  ret <2 x float> %retval
}
=>
define <2 x float> @select_fcmp_fadd_une_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp une <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, { 2.000000, 2.000000 }
  %retval = select <2 x i1> %fcmp, <2 x float> %x, <2 x float> %fadd
  ret <2 x float> %retval
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 64. PassManager<Function> : Skipping NOP
-- 65. PassManager<Function> : Skipping NOP
-- 66. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_ueq_nnan_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp nnan ueq <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> %x
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 67. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_ueq_nnan_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp nnan ueq <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> %x
  ret <2 x float> %retval
}
=>
define <2 x float> @select_fcmp_fadd_ueq_nnan_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp nnan ueq <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, { 2.000000, 2.000000 }
  %retval = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> %x
  ret <2 x float> %retval
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 68. PassManager<Function> : Skipping NOP
-- 69. PassManager<Function> : Skipping NOP
-- 70. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_one_nnan_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp nnan one <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %x, <2 x float> %fadd
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 71. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_one_nnan_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp nnan one <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %x, <2 x float> %fadd
  ret <2 x float> %retval
}
=>
define <2 x float> @select_fcmp_fadd_one_nnan_not_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp nnan one <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, { 2.000000, 2.000000 }
  %retval = select <2 x i1> %fcmp, <2 x float> %x, <2 x float> %fadd
  ret <2 x float> %retval
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 72. PassManager<Function> : Skipping NOP
-- 73. PassManager<Function> : Skipping NOP
-- 74. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_ueq_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp ueq <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> %x
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 75. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_ueq_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp ueq <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> %x
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 76. PassManager<Function> : Skipping NOP
-- 77. PassManager<Function> : Skipping NOP
-- 78. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_one_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp one <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %x, <2 x float> %fadd
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 79. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_one_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp one <2 x float> %y, { 2.000000, 2.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %x, <2 x float> %fadd
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 80. PassManager<Function> : Skipping NOP
-- 81. PassManager<Function> : Skipping NOP
-- 82. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_oeq_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp oeq <2 x float> %y, { 0.000000, 0.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> %x
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 83. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_oeq_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp oeq <2 x float> %y, { 0.000000, 0.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> %x
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 84. PassManager<Function> : Skipping NOP
-- 85. PassManager<Function> : Skipping NOP
-- 86. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_une_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp une <2 x float> %y, { 0.000000, 0.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %x, <2 x float> %fadd
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 87. InstCombinePass

----------------------------------------
define <2 x float> @select_fcmp_fadd_une_zero_vec(<2 x float> %x, <2 x float> %y) {
#0:
  %fcmp = fcmp une <2 x float> %y, { 0.000000, 0.000000 }
  %fadd = fadd <2 x float> %x, %y
  %retval = select <2 x i1> %fcmp, <2 x float> %x, <2 x float> %fadd
  ret <2 x float> %retval
}
Transformation seems to be correct! (syntactically equal)

-- 88. PassManager<Function> : Skipping NOP
-- 89. PassManager<Function> : Skipping NOP
-- 90. InstCombinePass

----------------------------------------
define <2 x i8> @select_vec_op_const_no_undef(<2 x i8> %x) {
#0:
  %xz = icmp eq <2 x i8> %x, { 1, 2 }
  %xr = select <2 x i1> %xz, <2 x i8> %x, <2 x i8> { 4, 3 }
  ret <2 x i8> %xr
}
Transformation seems to be correct! (syntactically equal)

-- 91. InstCombinePass

----------------------------------------
define <2 x i8> @select_vec_op_const_no_undef(<2 x i8> %x) {
#0:
  %xz = icmp eq <2 x i8> %x, { 1, 2 }
  %xr = select <2 x i1> %xz, <2 x i8> %x, <2 x i8> { 4, 3 }
  ret <2 x i8> %xr
}
=>
define <2 x i8> @select_vec_op_const_no_undef(<2 x i8> %x) {
#0:
  %xz = icmp eq <2 x i8> %x, { 1, 2 }
  %xr = select <2 x i1> %xz, <2 x i8> { 1, 2 }, <2 x i8> { 4, 3 }
  ret <2 x i8> %xr
}
Transformation seems to be correct!

-- 92. PassManager<Function> : Skipping NOP
-- 93. PassManager<Function> : Skipping NOP
-- 94. InstCombinePass

----------------------------------------
define <2 x i8> @select_vec_op_const_undef(<2 x i8> %x) {
#0:
  %xz = icmp eq <2 x i8> %x, { 1, undef }
  %xr = select <2 x i1> %xz, <2 x i8> %x, <2 x i8> { 4, 3 }
  ret <2 x i8> %xr
}
Transformation seems to be correct! (syntactically equal)

-- 95. InstCombinePass

----------------------------------------
define <2 x i8> @select_vec_op_const_undef(<2 x i8> %x) {
#0:
  %xz = icmp eq <2 x i8> %x, { 1, undef }
  %xr = select <2 x i1> %xz, <2 x i8> %x, <2 x i8> { 4, 3 }
  ret <2 x i8> %xr
}
=>
define <2 x i8> @select_vec_op_const_undef(<2 x i8> %x) {
#0:
  %xz = icmp eq <2 x i8> %x, { 1, undef }
  %xr = select <2 x i1> %xz, <2 x i8> { 1, undef }, <2 x i8> { 4, 3 }
  ret <2 x i8> %xr
}
Transformation doesn't verify! (unsound)
ERROR: Target's return value is more undefined

Example:
<2 x i8> %x = < poison, #x03 (3) >

Source:
<2 x i1> %xz = < poison, #x0 (0)	[based on undef value] >
<2 x i8> %xr = < poison, #x03 (3) >

Target:
<2 x i1> %xz = < poison, #x1 (1) >
<2 x i8> %xr = < poison, #x00 (0) >
Source value: < poison, #x03 (3) >
Target value: < poison, #x00 (0) >

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' '/bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/select-value-equivalence.ll' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'
Wrote bitcode to: "/home/nlopes/alive2/build/logs/select-value-equivalence_lnPMqfXF_5zGR.bc"


------------------- SMT STATS -------------------
Num queries: 83
Num invalid: 0
Num skips:   0
Num trivial: 41 (33.1%)
Num timeout: 7 (8.4%)
Num errors:  0 (0.0%)
Num SAT:     45 (54.2%)
Num UNSAT:   31 (37.3%)
Alive2: Transform doesn't verify; aborting!

stderr:

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

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

 

<-- Back