Test source: git
Source: <stdin> -- 1. ModuleToFunctionPassAdaptor -- 1. PassManager<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<Function> : Skipping NOP -- 5. PassManager<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<Function> : Skipping NOP -- 9. PassManager<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<Function> : Skipping NOP -- 13. PassManager<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<Function> : Skipping NOP -- 17. PassManager<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<Function> : Skipping NOP -- 21. PassManager<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<Function> : Skipping NOP -- 25. PassManager<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<Function> : Skipping NOP -- 29. PassManager<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<Function> : Skipping NOP -- 33. PassManager<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<Function> : Skipping NOP -- 37. PassManager<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<Function> : Skipping NOP -- 41. PassManager<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 } => define float @select_fcmp_fmul_nonrefinement(float %x, float %y) { #0: %fmul = fmul float %y, %x ret float %fmul } Transformation doesn't verify! (unsound) ERROR: Target's return value is more undefined Example: float %x = #x3f800000 (1) float %y = #x7fc14000 (QNaN) Source: i1 %fcmp = #x1 (1) float %fmul = #x7fc14000 (QNaN) float %sel = #x7fc14000 (QNaN) Target: float %fmul = #x7fc14000 (QNaN) Source value: #x7fc14000 (QNaN) Target value: #x7fc14000 (QNaN) 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_7YNmmldQ_ulFd.bc" ------------------- SMT STATS ------------------- Num queries: 42 Num invalid: 0 Num skips: 0 Num trivial: 40 (48.8%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 26 (61.9%) Num UNSAT: 16 (38.1%) 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