Test source: git
Source: <stdin> -- 1. ModuleToFunctionPassAdaptor -- 1. PassManager<llvm::Function> : Skipping NOP -- 2. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_oeq(float %x) { #0: %fcmp = fcmp oeq float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float %fadd, float 0.000000 ret float %sel } Transformation seems to be correct! (syntactically equal) -- 3. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_oeq(float %x) { #0: %fcmp = fcmp oeq float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float %fadd, float 0.000000 ret float %sel } => define float @select_fcmp_fsub_oeq(float %x) { #0: ret float 0.000000 } Transformation seems to be correct! -- 4. PassManager<llvm::Function> : Skipping NOP -- 5. PassManager<llvm::Function> : Skipping NOP -- 6. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_oeq_zero(float %x) { #0: %fcmp = fcmp oeq float %x, 0.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float %fadd, float 2.000000 ret float %sel } Transformation seems to be correct! (syntactically equal) -- 7. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_oeq_zero(float %x) { #0: %fcmp = fcmp oeq float %x, 0.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float %fadd, float 2.000000 ret float %sel } Transformation seems to be correct! (syntactically equal) -- 8. PassManager<llvm::Function> : Skipping NOP -- 9. PassManager<llvm::Function> : Skipping NOP -- 10. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_ueq(float %x) { #0: %fcmp = fcmp ueq float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float %fadd, float 0.000000 ret float %sel } Transformation seems to be correct! (syntactically equal) -- 11. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_ueq(float %x) { #0: %fcmp = fcmp ueq float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float %fadd, float 0.000000 ret float %sel } Transformation seems to be correct! (syntactically equal) -- 12. PassManager<llvm::Function> : Skipping NOP -- 13. PassManager<llvm::Function> : Skipping NOP -- 14. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_ueq_nnan(float %x) { #0: %fcmp = fcmp nnan ueq float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float %fadd, float 0.000000 ret float %sel } Transformation seems to be correct! (syntactically equal) -- 15. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_ueq_nnan(float %x) { #0: %fcmp = fcmp nnan ueq float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float %fadd, float 0.000000 ret float %sel } => define float @select_fcmp_fsub_ueq_nnan(float %x) { #0: ret float 0.000000 } Transformation seems to be correct! -- 16. PassManager<llvm::Function> : Skipping NOP -- 17. PassManager<llvm::Function> : Skipping NOP -- 18. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_une(float %x) { #0: %fcmp = fcmp une float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float 0.000000, float %fadd ret float %sel } Transformation seems to be correct! (syntactically equal) -- 19. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_une(float %x) { #0: %fcmp = fcmp une float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float 0.000000, float %fadd ret float %sel } => define float @select_fcmp_fsub_une(float %x) { #0: ret float 0.000000 } Transformation seems to be correct! -- 20. PassManager<llvm::Function> : Skipping NOP -- 21. PassManager<llvm::Function> : Skipping NOP -- 22. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_une_zero(float %x) { #0: %fcmp = fcmp une float %x, 0.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float 2.000000, float %fadd ret float %sel } Transformation seems to be correct! (syntactically equal) -- 23. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_une_zero(float %x) { #0: %fcmp = fcmp une float %x, 0.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float 2.000000, float %fadd ret float %sel } Transformation seems to be correct! (syntactically equal) -- 24. PassManager<llvm::Function> : Skipping NOP -- 25. PassManager<llvm::Function> : Skipping NOP -- 26. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_one(float %x) { #0: %fcmp = fcmp one float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float 0.000000, float %fadd ret float %sel } Transformation seems to be correct! (syntactically equal) -- 27. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_one(float %x) { #0: %fcmp = fcmp one float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float 0.000000, float %fadd ret float %sel } Transformation seems to be correct! (syntactically equal) -- 28. PassManager<llvm::Function> : Skipping NOP -- 29. PassManager<llvm::Function> : Skipping NOP -- 30. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_one_nnan(float %x) { #0: %fcmp = fcmp nnan one float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float 0.000000, float %fadd ret float %sel } Transformation seems to be correct! (syntactically equal) -- 31. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fsub_one_nnan(float %x) { #0: %fcmp = fcmp nnan one float %x, 2.000000 %fadd = fsub float %x, 2.000000 %sel = select i1 %fcmp, float 0.000000, float %fadd ret float %sel } => define float @select_fcmp_fsub_one_nnan(float %x) { #0: ret float 0.000000 } Transformation seems to be correct! -- 32. PassManager<llvm::Function> : Skipping NOP -- 33. PassManager<llvm::Function> : Skipping NOP -- 34. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fadd(float %x) { #0: %fcmp = fcmp oeq float %x, 2.000000 %fadd = fadd float %x, 2.000000 %sel = select i1 %fcmp, float %fadd, float 4.000000 ret float %sel } Transformation seems to be correct! (syntactically equal) -- 35. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fadd(float %x) { #0: %fcmp = fcmp oeq float %x, 2.000000 %fadd = fadd float %x, 2.000000 %sel = select i1 %fcmp, float %fadd, float 4.000000 ret float %sel } => define float @select_fcmp_fadd(float %x) { #0: ret float 4.000000 } Transformation seems to be correct! -- 36. PassManager<llvm::Function> : Skipping NOP -- 37. PassManager<llvm::Function> : Skipping NOP -- 38. InstSimplifyPass ---------------------------------------- define <2 x float> @select_fcmp_fadd_vec(<2 x float> %x) { #0: %fcmp = fcmp oeq <2 x float> %x, { 2.000000, 2.000000 } %fadd = fadd <2 x float> %x, { 2.000000, 2.000000 } %sel = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> { 4.000000, 4.000000 } ret <2 x float> %sel } Transformation seems to be correct! (syntactically equal) -- 39. InstSimplifyPass ---------------------------------------- define <2 x float> @select_fcmp_fadd_vec(<2 x float> %x) { #0: %fcmp = fcmp oeq <2 x float> %x, { 2.000000, 2.000000 } %fadd = fadd <2 x float> %x, { 2.000000, 2.000000 } %sel = select <2 x i1> %fcmp, <2 x float> %fadd, <2 x float> { 4.000000, 4.000000 } ret <2 x float> %sel } => define <2 x float> @select_fcmp_fadd_vec(<2 x float> %x) { #0: ret <2 x float> { 4.000000, 4.000000 } } Transformation seems to be correct! -- 40. PassManager<llvm::Function> : Skipping NOP -- 41. PassManager<llvm::Function> : Skipping NOP -- 42. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fmul_nonrefinement(float %x, float %y) { #0: %fcmp = fcmp oeq float %x, 1.000000 %fmul = fmul float %y, %x %sel = select i1 %fcmp, float %y, float %fmul ret float %sel } Transformation seems to be correct! (syntactically equal) -- 43. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fmul_nonrefinement(float %x, float %y) { #0: %fcmp = fcmp oeq float %x, 1.000000 %fmul = fmul float %y, %x %sel = select i1 %fcmp, float %y, float %fmul ret float %sel } Transformation seems to be correct! (syntactically equal) -- 44. PassManager<llvm::Function> : Skipping NOP -- 45. PassManager<llvm::Function> : Skipping NOP -- 46. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fmul(float %x) { #0: %fcmp = fcmp oeq float %x, 2.000000 %fmul = fmul float %x, 2.000000 %sel = select i1 %fcmp, float %fmul, float 4.000000 ret float %sel } Transformation seems to be correct! (syntactically equal) -- 47. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fmul(float %x) { #0: %fcmp = fcmp oeq float %x, 2.000000 %fmul = fmul float %x, 2.000000 %sel = select i1 %fcmp, float %fmul, float 4.000000 ret float %sel } => define float @select_fcmp_fmul(float %x) { #0: ret float 4.000000 } Transformation seems to be correct! -- 48. PassManager<llvm::Function> : Skipping NOP -- 49. PassManager<llvm::Function> : Skipping NOP -- 50. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fdiv_nonrefinement(float %x, float %y) { #0: %fcmp = fcmp oeq float %x, 1.000000 %fdiv = fdiv float %y, %x %sel = select i1 %fcmp, float %y, float %fdiv ret float %sel } Transformation seems to be correct! (syntactically equal) -- 51. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fdiv_nonrefinement(float %x, float %y) { #0: %fcmp = fcmp oeq float %x, 1.000000 %fdiv = fdiv float %y, %x %sel = select i1 %fcmp, float %y, float %fdiv ret float %sel } Transformation seems to be correct! (syntactically equal) -- 52. PassManager<llvm::Function> : Skipping NOP -- 53. PassManager<llvm::Function> : Skipping NOP -- 54. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fdiv(float %x) { #0: %fcmp = fcmp oeq float %x, 2.000000 %fdiv = fdiv float %x, 2.000000 %sel = select i1 %fcmp, float %fdiv, float 1.000000 ret float %sel } Transformation seems to be correct! (syntactically equal) -- 55. InstSimplifyPass ---------------------------------------- define float @select_fcmp_fdiv(float %x) { #0: %fcmp = fcmp oeq float %x, 2.000000 %fdiv = fdiv float %x, 2.000000 %sel = select i1 %fcmp, float %fdiv, float 1.000000 ret float %sel } => define float @select_fcmp_fdiv(float %x) { #0: ret float 1.000000 } Transformation seems to be correct! -- 56. PassManager<llvm::Function> : Skipping NOP -- 57. PassManager<llvm::Function> : Skipping NOP -- 58. InstSimplifyPass ---------------------------------------- define float @select_fcmp_frem(float %x) { #0: %fcmp = fcmp oeq float %x, 3.000000 %frem = frem float %x, 2.000000 %sel = select i1 %fcmp, float %frem, float 1.000000 ret float %sel } Transformation seems to be correct! (syntactically equal) -- 59. InstSimplifyPass ---------------------------------------- define float @select_fcmp_frem(float %x) { #0: %fcmp = fcmp oeq float %x, 3.000000 %frem = frem float %x, 2.000000 %sel = select i1 %fcmp, float %frem, float 1.000000 ret float %sel } => define float @select_fcmp_frem(float %x) { #0: ret float 1.000000 } Transformation doesn't verify! (unsound) ERROR: Value mismatch Example: float %x = #x40400000 (3) Source: i1 %fcmp = #x1 (1) float %frem = #xbf800000 (-1) float %sel = #xbf800000 (-1) Target: Source value: #xbf800000 (-1) Target value: #x3f800000 (1) Pass: InstSimplifyPass Command line: '/home/nlopes/llvm/build/bin/opt' '-load=/home/nlopes/alive2/build/tv/tv.so' '-load-pass-plugin=/home/nlopes/alive2/build/tv/tv.so' '-tv-exit-on-error' '-passes=instsimplify' '-S' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats' Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_2W1IIXnN_y7SW.bc" ------------------- SMT STATS ------------------- Num queries: 35 Num invalid: 0 Num skips: 0 Num trivial: 50 (58.8%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 24 (68.6%) Num UNSAT: 11 (31.4%) Alive2: Transform doesn't verify; aborting!
RUN: at line 2: /home/nlopes/alive2/build/opt-alive.sh < /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/select-equivalence-fp.ll -passes=instsimplify -S | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/select-equivalence-fp.ll + /home/nlopes/alive2/build/opt-alive.sh -passes=instsimplify -S + /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/select-equivalence-fp.ll FileCheck error: '<stdin>' is empty. FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/select-equivalence-fp.ll