Test source: git
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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum float %x, %y
ret float %result
}
=>
define float @ret_only_snan(float %x, float %y) nofpclass(1022) {
#0:
%result = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum float %x, %y
ret float %result
}
=>
define float @ret_only_inf(float %x, float %y) nofpclass(507) {
#0:
%result = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum float %x, %y
ret float %result
}
=>
define float @ret_only_zero(float %x, float %y) nofpclass(927) {
#0:
%result = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum float %x, %y
ret float %result
}
=>
define float @ret_no_nans(float %x, float %y) nofpclass(3) {
#0:
%result = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum float %x, %y
ret float %result
}
=>
define float @ret_no_nans_no_infs(float %x, float %y) nofpclass(519) {
#0:
%result = fminimum 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__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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 = fminimum float %must.be.positive.or.nan, %must.be.negative
ret float %result
}
Transformation seems to be correct! (syntactically equal)
-- 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__minimum__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 = fminimum 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__minimum__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 = fminimum float %must.be.negative, %must.be.positive.or.nan
ret float %result
}
Transformation seems to be correct! (syntactically equal)
-- 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__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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 = fminimum float %select.lhs, %unknown1
ret float %result
}
=>
declare float @returns_negative() nofpclass(963)
define float @ret_always_positive__select_always_negative_or_unknown__minimum__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 = fminimum 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__minimum__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 = fminimum 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__minimum__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 = fminimum float %unknown1, %select.rhs
ret float %result
}
=>
declare float @returns_negative() nofpclass(963)
define float @ret_always_positive__unknown__minimum__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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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 = fminimum 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.negative.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 = fminimum 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 = fminimum 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.negative.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 = fminimum 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 = fminimum 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 = fminimum nsz float nofpclass(508) %must.be.pinf.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(508) %must.be.pinf.or.nan = #x7f800000 (+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_Xux85yn7_TQSo.bc"
------------------- SMT STATS -------------------
Num queries: 115
Num invalid: 0
Num skips: 0
Num trivial: 94 (45.0%)
Num timeout: 0 (0.0%)
Num errors: 0 (0.0%)
Num SAT: 63 (54.8%)
Num UNSAT: 52 (45.2%)
Alive2: Transform doesn't verify; aborting!
Transforms/InstCombine/simplify-demanded-fpclass-minimum.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-minimum.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-minimum.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-minimum.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-minimum.ll # `----------------------------- # error: command failed with exit status: 2 --