Test Failure: Transforms/InstCombine/simplify-demanded-fpclass-maximum.ll

Test source: git

Log:

Source: <stdin>
-- 1. ModuleToFunctionPassAdaptor
ERROR: Unsupported metadata: 48
-- 1. PassManager<Function> : Skipping NOP
-- 2. InstCombinePass

----------------------------------------
define float @ret_only_nan(float %x, float %y) nofpclass(1020) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 3. InstCombinePass

----------------------------------------
define float @ret_only_nan(float %x, float %y) nofpclass(1020) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_only_nan(float %x, float %y) nofpclass(1020) {
#0:
  ret float 0x7fc00000
}
Transformation seems to be correct!

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

----------------------------------------
define float @ret_only_snan(float %x, float %y) nofpclass(1022) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 7. InstCombinePass

----------------------------------------
define float @ret_only_snan(float %x, float %y) nofpclass(1022) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_only_snan(float %x, float %y) nofpclass(1022) {
#0:
  %result = fmaximum nsz float %x, %y
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
define float @ret_only_qnan(float %x, float %y) nofpclass(1021) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 11. InstCombinePass

----------------------------------------
define float @ret_only_qnan(float %x, float %y) nofpclass(1021) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_only_qnan(float %x, float %y) nofpclass(1021) {
#0:
  ret float 0x7fc00000
}
Transformation seems to be correct!

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

----------------------------------------
define float @ret_only_inf(float %x, float %y) nofpclass(507) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 15. InstCombinePass

----------------------------------------
define float @ret_only_inf(float %x, float %y) nofpclass(507) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_only_inf(float %x, float %y) nofpclass(507) {
#0:
  %result = fmaximum nnan nsz float %x, %y
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
define float @ret_only_ninf(float %x, float %y) nofpclass(1019) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 19. InstCombinePass

----------------------------------------
define float @ret_only_ninf(float %x, float %y) nofpclass(1019) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_only_ninf(float %x, float %y) nofpclass(1019) {
#0:
  ret float -inf
}
Transformation seems to be correct!

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

----------------------------------------
define float @ret_only_pinf(float %x, float %y) nofpclass(511) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 23. InstCombinePass

----------------------------------------
define float @ret_only_pinf(float %x, float %y) nofpclass(511) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_only_pinf(float %x, float %y) nofpclass(511) {
#0:
  ret float inf
}
Transformation seems to be correct!

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

----------------------------------------
define float @ret_only_zero(float %x, float %y) nofpclass(927) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 27. InstCombinePass

----------------------------------------
define float @ret_only_zero(float %x, float %y) nofpclass(927) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_only_zero(float %x, float %y) nofpclass(927) {
#0:
  %result = fmaximum nnan float %x, %y
  ret float %result
}
Transformation seems to be correct!

-- 28. PassManager<Function> : Skipping NOP
-- 29. PassManager<Function> : Skipping NOP
-- 30. InstCombinePass

----------------------------------------
define float @ret_only_pzero(float %x, float %y) nofpclass(959) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 31. InstCombinePass

----------------------------------------
define float @ret_only_pzero(float %x, float %y) nofpclass(959) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_only_pzero(float %x, float %y) nofpclass(959) {
#0:
  ret float 0.000000
}
Transformation seems to be correct!

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

----------------------------------------
define float @ret_only_nzero(float %x, float %y) nofpclass(991) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 35. InstCombinePass

----------------------------------------
define float @ret_only_nzero(float %x, float %y) nofpclass(991) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_only_nzero(float %x, float %y) nofpclass(991) {
#0:
  ret float -0.000000
}
Transformation seems to be correct!

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

----------------------------------------
define float @ret_no_nans(float %x, float %y) nofpclass(3) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 39. InstCombinePass

----------------------------------------
define float @ret_no_nans(float %x, float %y) nofpclass(3) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_no_nans(float %x, float %y) nofpclass(3) {
#0:
  %result = fmaximum nnan float %x, %y
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
define float @ret_no_infs(float %x, float %y) nofpclass(516) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 43. InstCombinePass

----------------------------------------
define float @ret_no_infs(float %x, float %y) nofpclass(516) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define float @ret_no_nans_no_infs(float %x, float %y) nofpclass(519) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 47. InstCombinePass

----------------------------------------
define float @ret_no_nans_no_infs(float %x, float %y) nofpclass(519) {
#0:
  %result = fmaximum float %x, %y
  ret float %result
}
=>
define float @ret_no_nans_no_infs(float %x, float %y) nofpclass(519) {
#0:
  %result = fmaximum nnan float %x, %y
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_negative_or_nan() nofpclass(960)

define float @ret_known_positive_or_nan__maximum__negative_or_nan___negative_or_nan() nofpclass(60) {
#0:
  %must.be.negative.or.nan0 = call float @returns_negative_or_nan() nofpclass(960)
  %must.be.negative.or.nan1 = call float @returns_negative_or_nan() nofpclass(960)
  %result = fmaximum float %must.be.negative.or.nan0, %must.be.negative.or.nan1
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 51. InstCombinePass

----------------------------------------
declare float @returns_negative_or_nan() nofpclass(960)

define float @ret_known_positive_or_nan__maximum__negative_or_nan___negative_or_nan() nofpclass(60) {
#0:
  %must.be.negative.or.nan0 = call float @returns_negative_or_nan() nofpclass(960)
  %must.be.negative.or.nan1 = call float @returns_negative_or_nan() nofpclass(960)
  %result = fmaximum float %must.be.negative.or.nan0, %must.be.negative.or.nan1
  ret float %result
}
=>
declare float @returns_negative_or_nan() nofpclass(960)

define float @ret_known_positive_or_nan__maximum__negative_or_nan___negative_or_nan() nofpclass(60) {
#0:
  %must.be.negative.or.nan0 = call float @returns_negative_or_nan() nofpclass(960)
  %must.be.negative.or.nan1 = call float @returns_negative_or_nan() nofpclass(960)
  ret float 0x7fc00000
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_positive_or_nan() nofpclass(60)

define float @ret_known_negative_or_nan__maximum__positive_or_nan___positive_or_nan() nofpclass(960) {
#0:
  %must.be.positive.or.nan0 = call float @returns_positive_or_nan() nofpclass(60)
  %must.be.positive.or.nan1 = call float @returns_positive_or_nan() nofpclass(60)
  %result = fmaximum float %must.be.positive.or.nan0, %must.be.positive.or.nan1
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 55. InstCombinePass

----------------------------------------
declare float @returns_positive_or_nan() nofpclass(60)

define float @ret_known_negative_or_nan__maximum__positive_or_nan___positive_or_nan() nofpclass(960) {
#0:
  %must.be.positive.or.nan0 = call float @returns_positive_or_nan() nofpclass(60)
  %must.be.positive.or.nan1 = call float @returns_positive_or_nan() nofpclass(60)
  %result = fmaximum float %must.be.positive.or.nan0, %must.be.positive.or.nan1
  ret float %result
}
=>
declare float @returns_positive_or_nan() nofpclass(60)

define float @ret_known_negative_or_nan__maximum__positive_or_nan___positive_or_nan() nofpclass(960) {
#0:
  %must.be.positive.or.nan0 = call float @returns_positive_or_nan() nofpclass(60)
  %must.be.positive.or.nan1 = call float @returns_positive_or_nan() nofpclass(60)
  ret float 0x7fc00000
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_positive_or_nan() nofpclass(60)
declare float @returns_negative_or_nan() nofpclass(960)

define float @known_positive_or_nan__maximum__known_negative_or_nan() nofpclass(1) {
#0:
  %must.be.positive.or.nan = call float @returns_positive_or_nan() nofpclass(60)
  %must.be.negative.or.nan = call float @returns_negative_or_nan() nofpclass(960)
  %result = fmaximum float %must.be.positive.or.nan, %must.be.negative.or.nan
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 59. InstCombinePass

----------------------------------------
declare float @returns_positive_or_nan() nofpclass(60)
declare float @returns_negative_or_nan() nofpclass(960)

define float @known_positive_or_nan__maximum__known_negative_or_nan() nofpclass(1) {
#0:
  %must.be.positive.or.nan = call float @returns_positive_or_nan() nofpclass(60)
  %must.be.negative.or.nan = call float @returns_negative_or_nan() nofpclass(960)
  %result = fmaximum float %must.be.positive.or.nan, %must.be.negative.or.nan
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
declare float @returns_negative_or_nan() nofpclass(960)
declare float @returns_positive_or_nan() nofpclass(60)

define float @known_negative_or_nan__maximum__known_positive_or_nan() nofpclass(1) {
#0:
  %must.be.negative.or.nan = call float @returns_negative_or_nan() nofpclass(960)
  %must.be.positive.or.nan = call float @returns_positive_or_nan() nofpclass(60)
  %result = fmaximum float %must.be.negative.or.nan, %must.be.positive.or.nan
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 63. InstCombinePass

----------------------------------------
declare float @returns_negative_or_nan() nofpclass(960)
declare float @returns_positive_or_nan() nofpclass(60)

define float @known_negative_or_nan__maximum__known_positive_or_nan() nofpclass(1) {
#0:
  %must.be.negative.or.nan = call float @returns_negative_or_nan() nofpclass(960)
  %must.be.positive.or.nan = call float @returns_positive_or_nan() nofpclass(60)
  %result = fmaximum float %must.be.negative.or.nan, %must.be.positive.or.nan
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
declare float @returns_positive_or_nan() nofpclass(60)
declare float @returns_negative() nofpclass(963)

define float @known_positive_or_nan__maximum__known_negative() nofpclass(1) {
#0:
  %must.be.positive.or.nan = call float @returns_positive_or_nan() nofpclass(60)
  %must.be.negative = call float @returns_negative() nofpclass(963)
  %result = fmaximum float %must.be.positive.or.nan, %must.be.negative
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 67. InstCombinePass

----------------------------------------
declare float @returns_positive_or_nan() nofpclass(60)
declare float @returns_negative() nofpclass(963)

define float @known_positive_or_nan__maximum__known_negative() nofpclass(1) {
#0:
  %must.be.positive.or.nan = call float @returns_positive_or_nan() nofpclass(60)
  %must.be.negative = call float @returns_negative() nofpclass(963)
  %result = fmaximum float %must.be.positive.or.nan, %must.be.negative
  ret float %result
}
=>
declare float @returns_positive_or_nan() nofpclass(60)
declare float @returns_negative() nofpclass(963)

define float @known_positive_or_nan__maximum__known_negative() nofpclass(1) {
#0:
  %must.be.positive.or.nan = call float @returns_positive_or_nan() nofpclass(60)
  %must.be.negative = call float @returns_negative() nofpclass(963)
  ret float %must.be.positive.or.nan
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_negative() nofpclass(963)
declare float @returns_positive_or_nan() nofpclass(60)

define float @known_negative__maximum__known_positive_or_nan() nofpclass(1) {
#0:
  %must.be.negative = call float @returns_negative() nofpclass(963)
  %must.be.positive.or.nan = call float @returns_positive_or_nan() nofpclass(60)
  %result = fmaximum float %must.be.negative, %must.be.positive.or.nan
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 71. InstCombinePass

----------------------------------------
declare float @returns_negative() nofpclass(963)
declare float @returns_positive_or_nan() nofpclass(60)

define float @known_negative__maximum__known_positive_or_nan() nofpclass(1) {
#0:
  %must.be.negative = call float @returns_negative() nofpclass(963)
  %must.be.positive.or.nan = call float @returns_positive_or_nan() nofpclass(60)
  %result = fmaximum float %must.be.negative, %must.be.positive.or.nan
  ret float %result
}
=>
declare float @returns_negative() nofpclass(963)
declare float @returns_positive_or_nan() nofpclass(60)

define float @known_negative__maximum__known_positive_or_nan() nofpclass(1) {
#0:
  %must.be.negative = call float @returns_negative() nofpclass(963)
  %must.be.positive.or.nan = call float @returns_positive_or_nan() nofpclass(60)
  ret float %must.be.positive.or.nan
}
Transformation seems to be correct!

-- 72. PassManager<Function> : Skipping NOP
-- 73. PassManager<Function> : Skipping NOP
-- 74. InstCombinePass

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_positive_or_nan__select_always_negative_or_unknown__maximum__unknown(i1 %cond, float %unknown0, float %unknown1) nofpclass(60) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %select.lhs, %unknown1
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 75. InstCombinePass

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_positive_or_nan__select_always_negative_or_unknown__maximum__unknown(i1 %cond, float %unknown0, float %unknown1) nofpclass(60) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %select.lhs, %unknown1
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_positive_or_nan__unknown__maximum__select_always_negative_or_unknown(i1 %cond, float %unknown0, float %unknown1) nofpclass(60) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.rhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %unknown1, %select.rhs
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 79. InstCombinePass

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_positive_or_nan__unknown__maximum__select_always_negative_or_unknown(i1 %cond, float %unknown0, float %unknown1) nofpclass(60) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.rhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %unknown1, %select.rhs
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_positive__select_always_negative_or_unknown__maximum__unknown(i1 %cond, float %unknown0, float %unknown1) nofpclass(63) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %select.lhs, %unknown1
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 83. InstCombinePass

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_positive__select_always_negative_or_unknown__maximum__unknown(i1 %cond, float %unknown0, float %unknown1) nofpclass(63) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %select.lhs, %unknown1
  ret float %result
}
=>
declare float @returns_negative() nofpclass(963)

define float @ret_always_positive__select_always_negative_or_unknown__maximum__unknown(i1 %cond, float %unknown0, float %unknown1) nofpclass(63) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum nnan float %select.lhs, %unknown1
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_positive__unknown__maximum__select_always_negative_or_unknown(i1 %cond, float %unknown0, float %unknown1) nofpclass(63) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.rhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %unknown1, %select.rhs
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 87. InstCombinePass

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_positive__unknown__maximum__select_always_negative_or_unknown(i1 %cond, float %unknown0, float %unknown1) nofpclass(63) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.rhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %unknown1, %select.rhs
  ret float %result
}
=>
declare float @returns_negative() nofpclass(963)

define float @ret_always_positive__unknown__maximum__select_always_negative_or_unknown(i1 %cond, float %unknown0, float %unknown1) nofpclass(63) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.rhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum nnan float %unknown1, %select.rhs
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_negative_or_nan__simplify_unneeded_lhs_rhs(i1 %cond, float %unknown0, float %unknown1) nofpclass(60) {
#0:
  %always.negative0 = call float @returns_negative() nofpclass(963)
  %always.negative1 = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative0, float %unknown0
  %select.rhs = select i1 %cond, float %unknown1, float %always.negative1
  %result = fmaximum float %select.lhs, %select.rhs
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 91. InstCombinePass

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_negative_or_nan__simplify_unneeded_lhs_rhs(i1 %cond, float %unknown0, float %unknown1) nofpclass(60) {
#0:
  %always.negative0 = call float @returns_negative() nofpclass(963)
  %always.negative1 = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative0, float %unknown0
  %select.rhs = select i1 %cond, float %unknown1, float %always.negative1
  %result = fmaximum float %select.lhs, %select.rhs
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_negative__simplify_unneeded_lhs_rhs(i1 %cond, float %unknown0, float %unknown1) nofpclass(63) {
#0:
  %always.negative0 = call float @returns_negative() nofpclass(963)
  %always.negative1 = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative0, float %unknown0
  %select.rhs = select i1 %cond, float %unknown1, float %always.negative1
  %result = fmaximum float %select.lhs, %select.rhs
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 95. InstCombinePass

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @ret_always_negative__simplify_unneeded_lhs_rhs(i1 %cond, float %unknown0, float %unknown1) nofpclass(63) {
#0:
  %always.negative0 = call float @returns_negative() nofpclass(963)
  %always.negative1 = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative0, float %unknown0
  %select.rhs = select i1 %cond, float %unknown1, float %always.negative1
  %result = fmaximum float %select.lhs, %select.rhs
  ret float %result
}
=>
declare float @returns_negative() nofpclass(963)

define float @ret_always_negative__simplify_unneeded_lhs_rhs(i1 %cond, float %unknown0, float %unknown1) nofpclass(63) {
#0:
  %always.negative0 = call float @returns_negative() nofpclass(963)
  %always.negative1 = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative0, float %unknown0
  %select.rhs = select i1 %cond, float %unknown1, float %always.negative1
  %result = fmaximum nnan float %select.lhs, %select.rhs
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @no_fold_select_always_negative_0(i1 %cond, float %unknown0, float %unknown1) nofpclass(3) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %select.lhs, %unknown1
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 99. InstCombinePass

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @no_fold_select_always_negative_0(i1 %cond, float %unknown0, float %unknown1) nofpclass(3) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %select.lhs, %unknown1
  ret float %result
}
=>
declare float @returns_negative() nofpclass(963)

define float @no_fold_select_always_negative_0(i1 %cond, float %unknown0, float %unknown1) nofpclass(3) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.lhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum nnan float %select.lhs, %unknown1
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @no_fold_select_always_negative_1(i1 %cond, float %unknown0, float %unknown1) nofpclass(3) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.rhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %unknown1, %select.rhs
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 103. InstCombinePass

----------------------------------------
declare float @returns_negative() nofpclass(963)

define float @no_fold_select_always_negative_1(i1 %cond, float %unknown0, float %unknown1) nofpclass(3) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.rhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum float %unknown1, %select.rhs
  ret float %result
}
=>
declare float @returns_negative() nofpclass(963)

define float @no_fold_select_always_negative_1(i1 %cond, float %unknown0, float %unknown1) nofpclass(3) {
#0:
  %always.negative = call float @returns_negative() nofpclass(963)
  %select.rhs = select i1 %cond, float %always.negative, float %unknown0
  %result = fmaximum nnan float %unknown1, %select.rhs
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_positive_or_zero() nofpclass(31)
declare float @returns_negative_or_zero() nofpclass(899)

define float @cannot_fold_negative_or_zero__positive_or_zero_0() nofpclass(1) {
#0:
  %must.be.negative.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %must.be.positive.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %result = fmaximum float %must.be.negative.or.zero, %must.be.positive.or.zero
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 107. InstCombinePass

----------------------------------------
declare float @returns_positive_or_zero() nofpclass(31)
declare float @returns_negative_or_zero() nofpclass(899)

define float @cannot_fold_negative_or_zero__positive_or_zero_0() nofpclass(1) {
#0:
  %must.be.negative.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %must.be.positive.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %result = fmaximum float %must.be.negative.or.zero, %must.be.positive.or.zero
  ret float %result
}
=>
declare float @returns_positive_or_zero() nofpclass(31)
declare float @returns_negative_or_zero() nofpclass(899)

define float @cannot_fold_negative_or_zero__positive_or_zero_0() nofpclass(1) {
#0:
  %must.be.negative.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %must.be.positive.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %result = fmaximum nnan float %must.be.negative.or.zero, %must.be.positive.or.zero
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_positive_or_zero() nofpclass(31)
declare float @returns_negative_or_zero() nofpclass(899)

define float @cannot_fold_negative_or_zero__positive_or_zero_1() nofpclass(1) {
#0:
  %must.be.negative.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %must.be.positive.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %result = fmaximum float %must.be.positive.or.zero, %must.be.negative.or.zero
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 111. InstCombinePass

----------------------------------------
declare float @returns_positive_or_zero() nofpclass(31)
declare float @returns_negative_or_zero() nofpclass(899)

define float @cannot_fold_negative_or_zero__positive_or_zero_1() nofpclass(1) {
#0:
  %must.be.negative.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %must.be.positive.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %result = fmaximum float %must.be.positive.or.zero, %must.be.negative.or.zero
  ret float %result
}
=>
declare float @returns_positive_or_zero() nofpclass(31)
declare float @returns_negative_or_zero() nofpclass(899)

define float @cannot_fold_negative_or_zero__positive_or_zero_1() nofpclass(1) {
#0:
  %must.be.negative.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %must.be.positive.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %result = fmaximum nnan float %must.be.positive.or.zero, %must.be.negative.or.zero
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_negative_or_zero() nofpclass(899)
declare float @returns_positive_or_zero() nofpclass(31)

define float @nsz_fold_negative_or_zero__positive_or_zero_0() nofpclass(1) {
#0:
  %must.be.negative.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %must.be.positive.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %result = fmaximum nsz float %must.be.negative.or.zero, %must.be.positive.or.zero
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 115. InstCombinePass

----------------------------------------
declare float @returns_negative_or_zero() nofpclass(899)
declare float @returns_positive_or_zero() nofpclass(31)

define float @nsz_fold_negative_or_zero__positive_or_zero_0() nofpclass(1) {
#0:
  %must.be.negative.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %must.be.positive.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %result = fmaximum nsz float %must.be.negative.or.zero, %must.be.positive.or.zero
  ret float %result
}
=>
declare float @returns_negative_or_zero() nofpclass(899)
declare float @returns_positive_or_zero() nofpclass(31)

define float @nsz_fold_negative_or_zero__positive_or_zero_0() nofpclass(1) {
#0:
  %must.be.negative.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %must.be.positive.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  ret float %must.be.positive.or.zero
}
Transformation seems to be correct!

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

----------------------------------------
declare float @returns_positive_or_zero() nofpclass(31)
declare float @returns_negative_or_zero() nofpclass(899)

define float @nsz_fold_negative_or_zero__positive_or_zero_1() nofpclass(1) {
#0:
  %must.be.positive.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %must.be.negative.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %result = fmaximum nsz float %must.be.positive.or.zero, %must.be.negative.or.zero
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 119. InstCombinePass

----------------------------------------
declare float @returns_positive_or_zero() nofpclass(31)
declare float @returns_negative_or_zero() nofpclass(899)

define float @nsz_fold_negative_or_zero__positive_or_zero_1() nofpclass(1) {
#0:
  %must.be.positive.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %must.be.negative.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  %result = fmaximum nsz float %must.be.positive.or.zero, %must.be.negative.or.zero
  ret float %result
}
=>
declare float @returns_positive_or_zero() nofpclass(31)
declare float @returns_negative_or_zero() nofpclass(899)

define float @nsz_fold_negative_or_zero__positive_or_zero_1() nofpclass(1) {
#0:
  %must.be.positive.or.zero = call float @returns_positive_or_zero() nofpclass(31)
  %must.be.negative.or.zero = call float @returns_negative_or_zero() nofpclass(899)
  ret float %must.be.positive.or.zero
}
Transformation seems to be correct!

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

----------------------------------------
define float @lhs_must_be_pinf_or_nan(float %unknown, float nofpclass(508) %must.be.pinf.or.nan) nofpclass(16) {
#0:
  %result = fmaximum float nofpclass(508) %must.be.pinf.or.nan, %unknown
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 123. InstCombinePass

----------------------------------------
define float @lhs_must_be_pinf_or_nan(float %unknown, float nofpclass(508) %must.be.pinf.or.nan) nofpclass(16) {
#0:
  %result = fmaximum float nofpclass(508) %must.be.pinf.or.nan, %unknown
  ret float %result
}
=>
define float @lhs_must_be_pinf_or_nan(float %unknown, float nofpclass(508) %must.be.pinf.or.nan) nofpclass(16) {
#0:
  %result = fmaximum nsz float nofpclass(508) %must.be.pinf.or.nan, %unknown
  ret float %result
}
Transformation seems to be correct!

-- 124. PassManager<Function> : Skipping NOP
-- 125. PassManager<Function> : Skipping NOP
-- 126. InstCombinePass

----------------------------------------
define float @rhs_must_be_pinf_or_nan(float nofpclass(508) %must.be.pinf.or.nan, float %unknown) nofpclass(16) {
#0:
  %result = fmaximum float %unknown, nofpclass(508) %must.be.pinf.or.nan
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 127. InstCombinePass

----------------------------------------
define float @rhs_must_be_pinf_or_nan(float nofpclass(508) %must.be.pinf.or.nan, float %unknown) nofpclass(16) {
#0:
  %result = fmaximum float %unknown, nofpclass(508) %must.be.pinf.or.nan
  ret float %result
}
=>
define float @rhs_must_be_pinf_or_nan(float nofpclass(508) %must.be.pinf.or.nan, float %unknown) nofpclass(16) {
#0:
  %result = fmaximum nsz float %unknown, nofpclass(508) %must.be.pinf.or.nan
  ret float %result
}
Transformation seems to be correct!

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

----------------------------------------
define float @lhs_must_be_pinf(float %unknown, float nofpclass(511) %must.be.pinf) nofpclass(16) {
#0:
  %result = fmaximum float nofpclass(511) %must.be.pinf, %unknown
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 131. InstCombinePass

----------------------------------------
define float @lhs_must_be_pinf(float %unknown, float nofpclass(511) %must.be.pinf) nofpclass(16) {
#0:
  %result = fmaximum float nofpclass(511) %must.be.pinf, %unknown
  ret float %result
}
=>
define float @lhs_must_be_pinf(float %unknown, float nofpclass(511) %must.be.pinf) nofpclass(16) {
#0:
  %result = fmaximum nsz float %unknown, inf
  ret float %result
}
Transformation seems to be correct!

-- 132. PassManager<Function> : Skipping NOP
-- 133. PassManager<Function> : Skipping NOP
-- 134. InstCombinePass

----------------------------------------
define float @rhs_must_be_pinf(float nofpclass(511) %must.be.pinf, float %unknown) nofpclass(16) {
#0:
  %result = fmaximum float %unknown, nofpclass(511) %must.be.pinf
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 135. InstCombinePass

----------------------------------------
define float @rhs_must_be_pinf(float nofpclass(511) %must.be.pinf, float %unknown) nofpclass(16) {
#0:
  %result = fmaximum float %unknown, nofpclass(511) %must.be.pinf
  ret float %result
}
=>
define float @rhs_must_be_pinf(float nofpclass(511) %must.be.pinf, float %unknown) nofpclass(16) {
#0:
  %result = fmaximum nsz float %unknown, inf
  ret float %result
}
Transformation seems to be correct!

-- 136. PassManager<Function> : Skipping NOP
-- 137. PassManager<Function> : Skipping NOP
-- 138. InstCombinePass

----------------------------------------
define float @lhs_must_be_pinf_rhs_non_nan(float nofpclass(3) %not.nan, float nofpclass(511) %must.be.pinf) nofpclass(16) {
#0:
  %result = fmaximum float nofpclass(511) %must.be.pinf, nofpclass(3) %not.nan
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 139. InstCombinePass

----------------------------------------
define float @lhs_must_be_pinf_rhs_non_nan(float nofpclass(3) %not.nan, float nofpclass(511) %must.be.pinf) nofpclass(16) {
#0:
  %result = fmaximum float nofpclass(511) %must.be.pinf, nofpclass(3) %not.nan
  ret float %result
}
=>
define float @lhs_must_be_pinf_rhs_non_nan(float nofpclass(3) %not.nan, float nofpclass(511) %must.be.pinf) nofpclass(16) {
#0:
  ret float inf
}
Transformation seems to be correct!

-- 140. PassManager<Function> : Skipping NOP
-- 141. PassManager<Function> : Skipping NOP
-- 142. InstCombinePass

----------------------------------------
define float @rhs_must_be_pinf_lhs_non_nan(float nofpclass(511) %must.be.pinf, float nofpclass(3) %not.nan) nofpclass(16) {
#0:
  %result = fmaximum float nofpclass(3) %not.nan, nofpclass(511) %must.be.pinf
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 143. InstCombinePass

----------------------------------------
define float @rhs_must_be_pinf_lhs_non_nan(float nofpclass(511) %must.be.pinf, float nofpclass(3) %not.nan) nofpclass(16) {
#0:
  %result = fmaximum float nofpclass(3) %not.nan, nofpclass(511) %must.be.pinf
  ret float %result
}
=>
define float @rhs_must_be_pinf_lhs_non_nan(float nofpclass(511) %must.be.pinf, float nofpclass(3) %not.nan) nofpclass(16) {
#0:
  ret float inf
}
Transformation seems to be correct!

-- 144. PassManager<Function> : Skipping NOP
-- 145. PassManager<Function> : Skipping NOP
-- 146. InstCombinePass

----------------------------------------
define float @lhs_must_be_ninf_or_nan(float %unknown, float nofpclass(1016) %must.be.ninf.or.nan) nofpclass(16) {
#0:
  %result = fmaximum float nofpclass(1016) %must.be.ninf.or.nan, %unknown
  ret float %result
}
Transformation seems to be correct! (syntactically equal)

-- 147. InstCombinePass

----------------------------------------
define float @lhs_must_be_ninf_or_nan(float %unknown, float nofpclass(1016) %must.be.ninf.or.nan) nofpclass(16) {
#0:
  %result = fmaximum float nofpclass(1016) %must.be.ninf.or.nan, %unknown
  ret float %result
}
=>
define float @lhs_must_be_ninf_or_nan(float %unknown, float nofpclass(1016) %must.be.ninf.or.nan) nofpclass(16) {
#0:
  %result = fmaximum nsz float nofpclass(1016) %must.be.ninf.or.nan, %unknown
  ret float %result
}
Transformation doesn't verify! (unsound)
ERROR: Target's return value is more undefined

Example:
float %unknown = #x00000000 (+0.0)
float nofpclass(1016) %must.be.ninf.or.nan = #xff800000 (-oo)

Source:
float %result = #x00000000 (+0.0)

Target:
float %result = #x80000000 (-0.0)
Source value: #x00000000 (+0.0)
Target value: #x80000000 (-0.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' '-S' '-passes=instcombine' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'

Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_rnP4emEx_yIeV.bc"

------------------- SMT STATS -------------------
Num queries: 150
Num invalid: 0
Num skips:   0
Num trivial: 124 (45.3%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     80 (53.3%)
Num UNSAT:   70 (46.7%)
Alive2: Transform doesn't verify; aborting!

stderr:

Transforms/InstCombine/simplify-demanded-fpclass-maximum.ll' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
/home/nlopes/alive2/build/opt-alive.sh -S -passes=instcombine < /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-maximum.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-maximum.ll
# executed command: /home/nlopes/alive2/build/opt-alive.sh -S -passes=instcombine
# .---command stderr------------
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-maximum.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-maximum.ll
# `-----------------------------
# error: command failed with exit status: 2

--

 

<-- Back