Test Failure: Transforms/InstCombine/shuffle_select-inseltpoison.ll

Test source: git

Log:

Source: <stdin>
-- 1. ModuleToFunctionPassAdaptor
-- 1. PassManager<Function> : Skipping NOP
-- 2. InstCombinePass

----------------------------------------
define <4 x i32> @add(<4 x i32> %v) {
#0:
  %b = add <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 5, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 3. InstCombinePass

----------------------------------------
define <4 x i32> @add(<4 x i32> %v) {
#0:
  %b = add <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 5, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @add(<4 x i32> %v) {
#0:
  %s = add <4 x i32> %v, { 11, 0, 13, 0 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @add_nuw_nsw(<4 x i32> %v) {
#0:
  %b = add nsw nuw <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 5, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 7. InstCombinePass

----------------------------------------
define <4 x i32> @add_nuw_nsw(<4 x i32> %v) {
#0:
  %b = add nsw nuw <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 5, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @add_nuw_nsw(<4 x i32> %v) {
#0:
  %s = add nsw nuw <4 x i32> %v, { 11, 0, 13, 0 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @add_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = add <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 5, 4294967295, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 11. InstCombinePass

----------------------------------------
define <4 x i32> @add_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = add <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 5, 4294967295, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @add_undef_mask_elt(<4 x i32> %v) {
#0:
  %s = add <4 x i32> %v, { 11, 0, undef, 0 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @add_nuw_nsw_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = add nsw nuw <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 4294967295, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 15. InstCombinePass

----------------------------------------
define <4 x i32> @add_nuw_nsw_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = add nsw nuw <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 4294967295, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @add_nuw_nsw_undef_mask_elt(<4 x i32> %v) {
#0:
  %s = add <4 x i32> %v, { 11, undef, 13, 0 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @sub(<4 x i32> %v) {
#0:
  %b = sub <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 0, 1, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 19. InstCombinePass

----------------------------------------
define <4 x i32> @sub(<4 x i32> %v) {
#0:
  %b = sub <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 0, 1, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @sub(<4 x i32> %v) {
#0:
  %b = sub <4 x i32> { poison, poison, poison, 14 }, %v
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 0, 1, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @mul(<4 x i32> %v) {
#0:
  %b = mul nsw nuw <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4294967295, 5, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 23. InstCombinePass

----------------------------------------
define <4 x i32> @mul(<4 x i32> %v) {
#0:
  %b = mul nsw nuw <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4294967295, 5, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @mul(<4 x i32> %v) {
#0:
  %s = mul <4 x i32> %v, { undef, 12, 1, 14 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @shl(<4 x i32> %v) {
#0:
  %b = shl <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4, 1, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 27. InstCombinePass

----------------------------------------
define <4 x i32> @shl(<4 x i32> %v) {
#0:
  %b = shl <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4, 1, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @shl(<4 x i32> %v) {
#0:
  %s = shl <4 x i32> %v, { 0, 12, 13, 0 }
  ret <4 x i32> %s
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 28. PassManager<Function> : Skipping NOP
-- 29. PassManager<Function> : Skipping NOP
-- 30. InstCombinePass

----------------------------------------
define <4 x i32> @shl_nsw(<4 x i32> %v) {
#0:
  %b = shl nsw <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4, 1, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 31. InstCombinePass

----------------------------------------
define <4 x i32> @shl_nsw(<4 x i32> %v) {
#0:
  %b = shl nsw <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4, 1, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @shl_nsw(<4 x i32> %v) {
#0:
  %s = shl nsw <4 x i32> %v, { 0, 12, 13, 0 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @shl_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = shl <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4294967295, 1, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 35. InstCombinePass

----------------------------------------
define <4 x i32> @shl_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = shl <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4294967295, 1, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @shl_undef_mask_elt(<4 x i32> %v) {
#0:
  %s = shl <4 x i32> %v, { 0, 12, 13, 0 }
  ret <4 x i32> %s
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 36. PassManager<Function> : Skipping NOP
-- 37. PassManager<Function> : Skipping NOP
-- 38. InstCombinePass

----------------------------------------
define <4 x i32> @shl_nuw_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = shl nuw <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4294967295, 5, 2, 4294967295
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 39. InstCombinePass

----------------------------------------
define <4 x i32> @shl_nuw_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = shl nuw <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4294967295, 5, 2, 4294967295
  ret <4 x i32> %s
}
=>
define <4 x i32> @shl_nuw_undef_mask_elt(<4 x i32> %v) {
#0:
  %s = shl nuw <4 x i32> %v, { 0, 0, 13, 0 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @lshr_constant_op0(<4 x i32> %v) {
#0:
  %b = lshr <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4, 5, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 43. InstCombinePass

----------------------------------------
define <4 x i32> @lshr_constant_op0(<4 x i32> %v) {
#0:
  %b = lshr <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4, 5, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @lshr_constant_op0(<4 x i32> %v) {
#0:
  %s = lshr <4 x i32> %v, { 11, 12, 0, 14 }
  ret <4 x i32> %s
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 44. PassManager<Function> : Skipping NOP
-- 45. PassManager<Function> : Skipping NOP
-- 46. InstCombinePass

----------------------------------------
define <4 x i32> @lshr_exact_constant_op0(<4 x i32> %v) {
#0:
  %b = lshr exact <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4, 5, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 47. InstCombinePass

----------------------------------------
define <4 x i32> @lshr_exact_constant_op0(<4 x i32> %v) {
#0:
  %b = lshr exact <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4, 5, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @lshr_exact_constant_op0(<4 x i32> %v) {
#0:
  %s = lshr exact <4 x i32> %v, { 11, 12, 0, 14 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @lshr_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = shl <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4294967295, 1, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 51. InstCombinePass

----------------------------------------
define <4 x i32> @lshr_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = shl <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4294967295, 1, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @lshr_undef_mask_elt(<4 x i32> %v) {
#0:
  %s = shl <4 x i32> %v, { 0, 12, 13, 0 }
  ret <4 x i32> %s
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 52. PassManager<Function> : Skipping NOP
-- 53. PassManager<Function> : Skipping NOP
-- 54. InstCombinePass

----------------------------------------
define <4 x i32> @lshr_exact_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = lshr exact <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4294967295, 5, 2, 4294967295
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 55. InstCombinePass

----------------------------------------
define <4 x i32> @lshr_exact_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = lshr exact <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4294967295, 5, 2, 4294967295
  ret <4 x i32> %s
}
=>
define <4 x i32> @lshr_exact_undef_mask_elt(<4 x i32> %v) {
#0:
  %s = lshr exact <4 x i32> %v, { 0, 0, 13, 0 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @lshr_constant_op1(<4 x i32> %v) {
#0:
  %b = lshr exact <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4, 5, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 59. InstCombinePass

----------------------------------------
define <4 x i32> @lshr_constant_op1(<4 x i32> %v) {
#0:
  %b = lshr exact <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4, 5, 2, 7
  ret <4 x i32> %s
}
=>
define <4 x i32> @lshr_constant_op1(<4 x i32> %v) {
#0:
  %b = lshr exact <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 1, 6, 3
  ret <4 x i32> %s
}
Transformation seems to be correct!

-- 60. PassManager<Function> : Skipping NOP
-- 61. PassManager<Function> : Skipping NOP
-- 62. InstCombinePass

----------------------------------------
define <3 x i32> @ashr(<3 x i32> %v) {
#0:
  %b = ashr <3 x i32> %v, { 11, 12, 13 }
  %s = shufflevector <3 x i32> %b, <3 x i32> %v, 3, 1, 2
  ret <3 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 63. InstCombinePass

----------------------------------------
define <3 x i32> @ashr(<3 x i32> %v) {
#0:
  %b = ashr <3 x i32> %v, { 11, 12, 13 }
  %s = shufflevector <3 x i32> %b, <3 x i32> %v, 3, 1, 2
  ret <3 x i32> %s
}
=>
define <3 x i32> @ashr(<3 x i32> %v) {
#0:
  %s = ashr <3 x i32> %v, { 0, 12, 13 }
  ret <3 x i32> %s
}
Transformation seems to be correct!

-- 64. PassManager<Function> : Skipping NOP
-- 65. PassManager<Function> : Skipping NOP
-- 66. InstCombinePass

----------------------------------------
define <3 x i42> @and(<3 x i42> %v) {
#0:
  %b = and <3 x i42> %v, { 11, 12, 13 }
  %s = shufflevector <3 x i42> %v, <3 x i42> %b, 0, 4, 4294967295
  ret <3 x i42> %s
}
Transformation seems to be correct! (syntactically equal)

-- 67. InstCombinePass

----------------------------------------
define <3 x i42> @and(<3 x i42> %v) {
#0:
  %b = and <3 x i42> %v, { 11, 12, 13 }
  %s = shufflevector <3 x i42> %v, <3 x i42> %b, 0, 4, 4294967295
  ret <3 x i42> %s
}
=>
define <3 x i42> @and(<3 x i42> %v) {
#0:
  %s = and <3 x i42> %v, { 4398046511103, 12, undef }
  ret <3 x i42> %s
}
Transformation seems to be correct!

-- 68. PassManager<Function> : Skipping NOP
-- 69. PassManager<Function> : Skipping NOP
-- 70. InstCombinePass

----------------------------------------
declare void @use_v4i32(<4 x i32>)

define <4 x i32> @or(<4 x i32> %v) {
#0:
  %b = or <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4, 5, 2, 3
  call void @use_v4i32(<4 x i32> %b)
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 71. InstCombinePass

----------------------------------------
declare void @use_v4i32(<4 x i32>)

define <4 x i32> @or(<4 x i32> %v) {
#0:
  %b = or <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 4, 5, 2, 3
  call void @use_v4i32(<4 x i32> %b)
  ret <4 x i32> %s
}
=>
declare void @use_v4i32(<4 x i32>)

define <4 x i32> @or(<4 x i32> %v) {
#0:
  %b = or <4 x i32> %v, { 11, 12, 13, 14 }
  %s = or <4 x i32> %v, { 0, 0, 13, 14 }
  call void @use_v4i32(<4 x i32> %b)
  ret <4 x i32> %s
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 72. PassManager<Function> : Skipping NOP
-- 73. PassManager<Function> : Skipping NOP
-- 74. InstCombinePass

----------------------------------------
define <4 x i32> @xor(<4 x i32> %v) {
#0:
  %b = xor <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 0, 5, 2, 3
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 75. InstCombinePass

----------------------------------------
define <4 x i32> @xor(<4 x i32> %v) {
#0:
  %b = xor <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 0, 5, 2, 3
  ret <4 x i32> %s
}
=>
define <4 x i32> @xor(<4 x i32> %v) {
#0:
  %s = xor <4 x i32> %v, { 0, 12, 0, 0 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

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

----------------------------------------
define <4 x i32> @udiv(<4 x i32> %v) {
#0:
  %b = udiv <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 1, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 79. InstCombinePass

----------------------------------------
define <4 x i32> @udiv(<4 x i32> %v) {
#0:
  %b = udiv <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 1, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define <4 x i32> @udiv_exact(<4 x i32> %v) {
#0:
  %b = udiv exact <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 1, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 83. InstCombinePass

----------------------------------------
define <4 x i32> @udiv_exact(<4 x i32> %v) {
#0:
  %b = udiv exact <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 1, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define <4 x i32> @udiv_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = udiv <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 4294967295, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 87. InstCombinePass

----------------------------------------
define <4 x i32> @udiv_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = udiv <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 4294967295, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define <4 x i32> @udiv_exact_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = udiv exact <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 4294967295, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 91. InstCombinePass

----------------------------------------
define <4 x i32> @udiv_exact_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = udiv exact <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 4294967295, 2, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define <4 x i32> @sdiv(<4 x i32> %v) {
#0:
  %b = sdiv <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4, 1, 6, 3
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 95. InstCombinePass

----------------------------------------
define <4 x i32> @sdiv(<4 x i32> %v) {
#0:
  %b = sdiv <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4, 1, 6, 3
  ret <4 x i32> %s
}
=>
define <4 x i32> @sdiv(<4 x i32> %v) {
#0:
  %s = sdiv <4 x i32> %v, { 11, 1, 13, 1 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

-- 96. PassManager<Function> : Skipping NOP
-- 97. PassManager<Function> : Skipping NOP
-- 98. InstCombinePass

----------------------------------------
define <4 x i32> @sdiv_exact(<4 x i32> %v) {
#0:
  %b = sdiv exact <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4, 1, 6, 3
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 99. InstCombinePass

----------------------------------------
define <4 x i32> @sdiv_exact(<4 x i32> %v) {
#0:
  %b = sdiv exact <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4, 1, 6, 3
  ret <4 x i32> %s
}
=>
define <4 x i32> @sdiv_exact(<4 x i32> %v) {
#0:
  %s = sdiv exact <4 x i32> %v, { 11, 1, 13, 1 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

-- 100. PassManager<Function> : Skipping NOP
-- 101. PassManager<Function> : Skipping NOP
-- 102. InstCombinePass

----------------------------------------
define <4 x i32> @sdiv_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = sdiv <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4294967295, 1, 6, 4294967295
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 103. InstCombinePass

----------------------------------------
define <4 x i32> @sdiv_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = sdiv <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4294967295, 1, 6, 4294967295
  ret <4 x i32> %s
}
=>
define <4 x i32> @sdiv_undef_mask_elt(<4 x i32> %v) {
#0:
  %s = sdiv <4 x i32> %v, { 1, 1, 13, 1 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

-- 104. PassManager<Function> : Skipping NOP
-- 105. PassManager<Function> : Skipping NOP
-- 106. InstCombinePass

----------------------------------------
define <4 x i32> @sdiv_exact_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = sdiv exact <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4294967295, 1, 6, 4294967295
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 107. InstCombinePass

----------------------------------------
define <4 x i32> @sdiv_exact_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = sdiv exact <4 x i32> %v, { 11, 12, 13, 14 }
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 4294967295, 1, 6, 4294967295
  ret <4 x i32> %s
}
=>
define <4 x i32> @sdiv_exact_undef_mask_elt(<4 x i32> %v) {
#0:
  %s = sdiv exact <4 x i32> %v, { 1, 1, 13, 1 }
  ret <4 x i32> %s
}
Transformation seems to be correct!

-- 108. PassManager<Function> : Skipping NOP
-- 109. PassManager<Function> : Skipping NOP
-- 110. InstCombinePass

----------------------------------------
define <4 x i32> @urem(<4 x i32> %v) {
#0:
  %b = urem <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 1, 6, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 111. InstCombinePass

----------------------------------------
define <4 x i32> @urem(<4 x i32> %v) {
#0:
  %b = urem <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 1, 6, 7
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 112. PassManager<Function> : Skipping NOP
-- 113. PassManager<Function> : Skipping NOP
-- 114. InstCombinePass

----------------------------------------
define <4 x i32> @urem_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = urem <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 1, 6, 4294967295
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 115. InstCombinePass

----------------------------------------
define <4 x i32> @urem_undef_mask_elt(<4 x i32> %v) {
#0:
  %b = urem <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %b, <4 x i32> %v, 0, 1, 6, 4294967295
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 116. PassManager<Function> : Skipping NOP
-- 117. PassManager<Function> : Skipping NOP
-- 118. InstCombinePass

----------------------------------------
define <4 x i32> @srem(<4 x i32> %v) {
#0:
  %b = srem <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 0, 1, 6, 3
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 119. InstCombinePass

----------------------------------------
define <4 x i32> @srem(<4 x i32> %v) {
#0:
  %b = srem <4 x i32> { 11, 12, 13, 14 }, %v
  %s = shufflevector <4 x i32> %v, <4 x i32> %b, 0, 1, 6, 3
  ret <4 x i32> %s
}
Transformation seems to be correct! (syntactically equal)

-- 120. PassManager<Function> : Skipping NOP
-- 121. PassManager<Function> : Skipping NOP
-- 122. InstCombinePass

----------------------------------------
define <4 x float> @fadd_maybe_nan(<4 x float> %v) {
#0:
  %b = fadd <4 x float> %v, { 41.000000, 42.000000, 43.000000, 44.000000 }
  %s = shufflevector <4 x float> %b, <4 x float> %v, 0, 1, 6, 7
  ret <4 x float> %s
}
Transformation seems to be correct! (syntactically equal)

-- 123. InstCombinePass

----------------------------------------
define <4 x float> @fadd_maybe_nan(<4 x float> %v) {
#0:
  %b = fadd <4 x float> %v, { 41.000000, 42.000000, 43.000000, 44.000000 }
  %s = shufflevector <4 x float> %b, <4 x float> %v, 0, 1, 6, 7
  ret <4 x float> %s
}
=>
define <4 x float> @fadd_maybe_nan(<4 x float> %v) {
#0:
  %b = fadd <4 x float> %v, { 41.000000, 42.000000, poison, poison }
  %s = shufflevector <4 x float> %b, <4 x float> %v, 0, 1, 6, 7
  ret <4 x float> %s
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 124. PassManager<Function> : Skipping NOP
-- 125. PassManager<Function> : Skipping NOP
-- 126. InstCombinePass

----------------------------------------
define <4 x float> @fadd(<4 x float> nofpclass(3) %v) {
#0:
  %b = fadd <4 x float> nofpclass(3) %v, { 41.000000, 42.000000, 43.000000, 44.000000 }
  %s = shufflevector <4 x float> %b, <4 x float> nofpclass(3) %v, 0, 1, 6, 7
  ret <4 x float> %s
}
Transformation seems to be correct! (syntactically equal)

-- 127. InstCombinePass

----------------------------------------
define <4 x float> @fadd(<4 x float> nofpclass(3) %v) {
#0:
  %b = fadd <4 x float> nofpclass(3) %v, { 41.000000, 42.000000, 43.000000, 44.000000 }
  %s = shufflevector <4 x float> %b, <4 x float> nofpclass(3) %v, 0, 1, 6, 7
  ret <4 x float> %s
}
=>
define <4 x float> @fadd(<4 x float> nofpclass(3) %v) {
#0:
  %s = fadd <4 x float> nofpclass(3) %v, { 41.000000, 42.000000, -0.000000, -0.000000 }
  ret <4 x float> %s
}
Transformation seems to be correct!

-- 128. PassManager<Function> : Skipping NOP
-- 129. PassManager<Function> : Skipping NOP
-- 130. InstCombinePass

----------------------------------------
define <4 x double> @fsub(<4 x double> %v) {
#0:
  %b = fsub <4 x double> { 41.000000, 42.000000, 43.000000, 44.000000 }, %v
  %s = shufflevector <4 x double> %v, <4 x double> %b, 4294967295, 1, 6, 7
  ret <4 x double> %s
}
Transformation seems to be correct! (syntactically equal)

-- 131. InstCombinePass

----------------------------------------
define <4 x double> @fsub(<4 x double> %v) {
#0:
  %b = fsub <4 x double> { 41.000000, 42.000000, 43.000000, 44.000000 }, %v
  %s = shufflevector <4 x double> %v, <4 x double> %b, 4294967295, 1, 6, 7
  ret <4 x double> %s
}
=>
define <4 x double> @fsub(<4 x double> %v) {
#0:
  %b = fsub <4 x double> { poison, poison, 43.000000, 44.000000 }, %v
  %s = shufflevector <4 x double> %v, <4 x double> %b, 4294967295, 1, 6, 7
  ret <4 x double> %s
}
Transformation doesn't verify! (not unsound)
ERROR: Timeout
-- 132. PassManager<Function> : Skipping NOP
-- 133. PassManager<Function> : Skipping NOP
-- 134. InstCombinePass

----------------------------------------
define <4 x float> @fmul(<4 x float> nofpclass(3) %v) {
#0:
  %b = fmul nnan ninf <4 x float> nofpclass(3) %v, { 41.000000, 42.000000, 43.000000, 44.000000 }
  %s = shufflevector <4 x float> %b, <4 x float> nofpclass(3) %v, 0, 5, 6, 7
  ret <4 x float> %s
}
Transformation seems to be correct! (syntactically equal)

-- 135. InstCombinePass

----------------------------------------
define <4 x float> @fmul(<4 x float> nofpclass(3) %v) {
#0:
  %b = fmul nnan ninf <4 x float> nofpclass(3) %v, { 41.000000, 42.000000, 43.000000, 44.000000 }
  %s = shufflevector <4 x float> %b, <4 x float> nofpclass(3) %v, 0, 5, 6, 7
  ret <4 x float> %s
}
=>
define <4 x float> @fmul(<4 x float> nofpclass(3) %v) {
#0:
  %s = fmul nnan ninf <4 x float> nofpclass(3) %v, { 41.000000, 1.000000, 1.000000, 1.000000 }
  ret <4 x float> %s
}
Transformation doesn't verify! (unsound)
ERROR: Target is more poisonous than source

Example:
<4 x float> nofpclass(3) %v = < poison, poison, #xff800000 (-oo), poison >

Source:
<4 x float> %b = < poison, poison, poison, poison >
<4 x float> %s = < poison, poison, #xff800000 (-oo), poison >

Target:
<4 x float> %s = < poison, poison, poison, poison >
Source value: < poison, poison, #xff800000 (-oo), 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_29uWbxtZ_CmYq.bc"


------------------- SMT STATS -------------------
Num queries: 153
Num invalid: 0
Num skips:   0
Num trivial: 88 (36.5%)
Num timeout: 7 (4.6%)
Num errors:  0 (0.0%)
Num SAT:     77 (50.3%)
Num UNSAT:   69 (45.1%)
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/shuffle_select-inseltpoison.ll -passes=instcombine -S | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/shuffle_select-inseltpoison.ll
+ /home/nlopes/alive2/build/opt-alive.sh -passes=instcombine -S
+ /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/shuffle_select-inseltpoison.ll

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

 

<-- Back