Test Failure: Transforms/InstCombine/is_fpclass.ll

Test source: git

Log:

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

----------------------------------------
define i1 @test_class_no_mask_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 0
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 3. InstCombinePass

----------------------------------------
define i1 @test_class_no_mask_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 0
  ret i1 %val
}
=>
define i1 @test_class_no_mask_f32(float %x) {
#0:
  ret i1 0
}
Transformation seems to be correct!

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

----------------------------------------
define i1 @test_class_full_mask_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 1023
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 7. InstCombinePass

----------------------------------------
define i1 @test_class_full_mask_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 1023
  ret i1 %val
}
=>
define i1 @test_class_full_mask_f32(float %x) {
#0:
  ret i1 1
}
Transformation seems to be correct!

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

----------------------------------------
define i1 @test_class_undef_no_mask_f32() {
#0:
  %val = is.fpclass float undef, i32 0
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 11. InstCombinePass

----------------------------------------
define i1 @test_class_undef_no_mask_f32() {
#0:
  %val = is.fpclass float undef, i32 0
  ret i1 %val
}
=>
define i1 @test_class_undef_no_mask_f32() {
#0:
  ret i1 0
}
Transformation seems to be correct!

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

----------------------------------------
define i1 @test_class_undef_full_mask_f32() {
#0:
  %val = is.fpclass float undef, i32 1023
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 15. InstCombinePass

----------------------------------------
define i1 @test_class_undef_full_mask_f32() {
#0:
  %val = is.fpclass float undef, i32 1023
  ret i1 %val
}
=>
define i1 @test_class_undef_full_mask_f32() {
#0:
  ret i1 1
}
Transformation seems to be correct!

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

----------------------------------------
define i1 @test_class_poison_no_mask_f32() {
#0:
  %val = is.fpclass float poison, i32 0
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 19. InstCombinePass

----------------------------------------
define i1 @test_class_poison_no_mask_f32() {
#0:
  %val = is.fpclass float poison, i32 0
  ret i1 %val
}
=>
define i1 @test_class_poison_no_mask_f32() {
#0:
  ret i1 poison
}
Transformation seems to be correct!

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

----------------------------------------
define i1 @test_class_poison_full_mask_f32() {
#0:
  %val = is.fpclass float poison, i32 1023
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 23. InstCombinePass

----------------------------------------
define i1 @test_class_poison_full_mask_f32() {
#0:
  %val = is.fpclass float poison, i32 1023
  ret i1 %val
}
=>
define i1 @test_class_poison_full_mask_f32() {
#0:
  ret i1 poison
}
Transformation seems to be correct!

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

----------------------------------------
define i1 @test_class_undef_val_f32() {
#0:
  %val = is.fpclass float undef, i32 4
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 27. InstCombinePass

----------------------------------------
define i1 @test_class_undef_val_f32() {
#0:
  %val = is.fpclass float undef, i32 4
  ret i1 %val
}
=>
define i1 @test_class_undef_val_f32() {
#0:
  ret i1 undef
}
Transformation seems to be correct!

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

----------------------------------------
define i1 @test_class_poison_val_f32() {
#0:
  %val = is.fpclass float poison, i32 4
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 31. InstCombinePass

----------------------------------------
define i1 @test_class_poison_val_f32() {
#0:
  %val = is.fpclass float poison, i32 4
  ret i1 %val
}
=>
define i1 @test_class_poison_val_f32() {
#0:
  ret i1 poison
}
Transformation seems to be correct!

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

----------------------------------------
define i1 @test_class_isnan_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 3
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 35. InstCombinePass

----------------------------------------
define i1 @test_class_isnan_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 3
  ret i1 %val
}
=>
define i1 @test_class_isnan_f32(float %x) {
#0:
  %val = fcmp uno float %x, 0.000000
  ret i1 %val
}
Transformation seems to be correct!

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

----------------------------------------
define <2 x i1> @test_class_isnan_v2f32(<2 x float> %x) {
#0:
  %val = is.fpclass <2 x float> %x, i32 3
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

-- 39. InstCombinePass

----------------------------------------
define <2 x i1> @test_class_isnan_v2f32(<2 x float> %x) {
#0:
  %val = is.fpclass <2 x float> %x, i32 3
  ret <2 x i1> %val
}
=>
define <2 x i1> @test_class_isnan_v2f32(<2 x float> %x) {
#0:
  %val = fcmp uno <2 x float> %x, { 0.000000, 0.000000 }
  ret <2 x i1> %val
}
Transformation seems to be correct!

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

----------------------------------------
define i1 @test_class_isnan_f32_strict(float %x) {
#0:
  %val = is.fpclass float %x, i32 3
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 43. InstCombinePass

----------------------------------------
define i1 @test_class_isnan_f32_strict(float %x) {
#0:
  %val = is.fpclass float %x, i32 3
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define i1 @test_class_is_p0_n0_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 96
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 47. InstCombinePass

----------------------------------------
define i1 @test_class_is_p0_n0_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 96
  ret i1 %val
}
=>
define i1 @test_class_is_p0_n0_f32(float %x) {
#0:
  %val = fcmp oeq float %x, 0.000000
  ret i1 %val
}
Transformation seems to be correct!

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

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_v2f32(<2 x float> %x) {
#0:
  %val = is.fpclass <2 x float> %x, i32 96
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

-- 51. InstCombinePass

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_v2f32(<2 x float> %x) {
#0:
  %val = is.fpclass <2 x float> %x, i32 96
  ret <2 x i1> %val
}
=>
define <2 x i1> @test_class_is_p0_n0_v2f32(<2 x float> %x) {
#0:
  %val = fcmp oeq <2 x float> %x, { 0.000000, 0.000000 }
  ret <2 x i1> %val
}
Transformation seems to be correct!

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

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_v2f32_daz(<2 x float> %x) denormal-fp-math-f32=ieee,preserve-sign {
#0:
  %val = is.fpclass <2 x float> %x, i32 96
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

-- 55. InstCombinePass

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_v2f32_daz(<2 x float> %x) denormal-fp-math-f32=ieee,preserve-sign {
#0:
  %val = is.fpclass <2 x float> %x, i32 96
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_v2f32_dynamic(<2 x float> %x) denormal-fp-math-f32=ieee,dynamic {
#0:
  %val = is.fpclass <2 x float> %x, i32 96
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

-- 59. InstCombinePass

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_v2f32_dynamic(<2 x float> %x) denormal-fp-math-f32=ieee,dynamic {
#0:
  %val = is.fpclass <2 x float> %x, i32 96
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define i1 @test_class_is_p0_n0_or_nan_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 99
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 63. InstCombinePass

----------------------------------------
define i1 @test_class_is_p0_n0_or_nan_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 99
  ret i1 %val
}
=>
define i1 @test_class_is_p0_n0_or_nan_f32(float %x) {
#0:
  %val = fcmp ueq float %x, 0.000000
  ret i1 %val
}
Transformation seems to be correct!

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

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_or_nan_v2f32(<2 x float> %x) {
#0:
  %val = is.fpclass <2 x float> %x, i32 99
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

-- 67. InstCombinePass

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_or_nan_v2f32(<2 x float> %x) {
#0:
  %val = is.fpclass <2 x float> %x, i32 99
  ret <2 x i1> %val
}
=>
define <2 x i1> @test_class_is_p0_n0_or_nan_v2f32(<2 x float> %x) {
#0:
  %val = fcmp ueq <2 x float> %x, { 0.000000, 0.000000 }
  ret <2 x i1> %val
}
Transformation seems to be correct!

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

----------------------------------------
define i1 @test_class_is_p0_n0_or_nan_f32_daz(float %x) denormal-fp-math-f32=ieee,preserve-sign {
#0:
  %val = is.fpclass float %x, i32 99
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 71. InstCombinePass

----------------------------------------
define i1 @test_class_is_p0_n0_or_nan_f32_daz(float %x) denormal-fp-math-f32=ieee,preserve-sign {
#0:
  %val = is.fpclass float %x, i32 99
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_or_nan_v2f32_daz(<2 x float> %x) denormal-fp-math-f32=ieee,preserve-sign {
#0:
  %val = is.fpclass <2 x float> %x, i32 99
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

-- 75. InstCombinePass

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_or_nan_v2f32_daz(<2 x float> %x) denormal-fp-math-f32=ieee,preserve-sign {
#0:
  %val = is.fpclass <2 x float> %x, i32 99
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define i1 @test_class_is_p0_n0_or_sub_or_nan_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 243
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 79. InstCombinePass

----------------------------------------
define i1 @test_class_is_p0_n0_or_sub_or_nan_f32(float %x) {
#0:
  %val = is.fpclass float %x, i32 243
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_or_sub_or_nan_v2f32(<2 x float> %x) {
#0:
  %val = is.fpclass <2 x float> %x, i32 243
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

-- 83. InstCombinePass

----------------------------------------
define <2 x i1> @test_class_is_p0_n0_or_sub_or_nan_v2f32(<2 x float> %x) {
#0:
  %val = is.fpclass <2 x float> %x, i32 243
  ret <2 x i1> %val
}
Transformation seems to be correct! (syntactically equal)

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

----------------------------------------
define i1 @test_class_is_p0_n0_or_sub_or_nan_f32_daz(float %x) denormal-fp-math-f32=ieee,preserve-sign {
#0:
  %val = is.fpclass float %x, i32 243
  ret i1 %val
}
Transformation seems to be correct! (syntactically equal)

-- 87. InstCombinePass

----------------------------------------
define i1 @test_class_is_p0_n0_or_sub_or_nan_f32_daz(float %x) denormal-fp-math-f32=ieee,preserve-sign {
#0:
  %val = is.fpclass float %x, i32 243
  ret i1 %val
}
=>
define i1 @test_class_is_p0_n0_or_sub_or_nan_f32_daz(float %x) denormal-fp-math-f32=ieee,preserve-sign {
#0:
  %val = fcmp ueq float %x, 0.000000
  ret i1 %val
}
Transformation doesn't verify! (unsound)
ERROR: Target's return value is more undefined

Example:
float %x = #x00000001 (0.000000000000?)

Source:
i1 %val = #x1 (1)

Target:
i1 %val = #x1 (1)
Source value: #x1 (1)
Target value: #x1 (1)

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_JbVwiLL3_YQM0.bc"

------------------- SMT STATS -------------------
Num queries: 53
Num invalid: 0
Num skips:   0
Num trivial: 78 (59.5%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     38 (71.7%)
Num UNSAT:   15 (28.3%)
Alive2: Transform doesn't verify; aborting!

stderr:

Transforms/InstCombine/is_fpclass.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/is_fpclass.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/is_fpclass.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/is_fpclass.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/is_fpclass.ll
# `-----------------------------
# error: command failed with exit status: 2

--

 

<-- Back