Test source: git
Source: <stdin> -- 1. ModuleToFunctionPassAdaptor -- 1. PassManager<Function> : Skipping NOP -- 2. InstCombinePass ---------------------------------------- define double @select_noFMF_nfabs_lt(double %x) { %0: %cmp = fcmp olt double %x, 0.000000 %negX = fneg double %x, exceptions=ignore %sel = select i1 %cmp, double %x, double %negX ret double %sel } Transformation seems to be correct! (syntactically equal) -- 3. InstCombinePass ---------------------------------------- define double @select_noFMF_nfabs_lt(double %x) { %0: %cmp = fcmp olt double %x, 0.000000 %negX = fneg double %x, exceptions=ignore %sel = select i1 %cmp, double %x, double %negX ret double %sel } Transformation seems to be correct! (syntactically equal) -- 4. PassManager<Function> : Skipping NOP -- 5. PassManager<Function> : Skipping NOP -- 6. InstCombinePass ---------------------------------------- define double @select_nsz_nfabs_lt_fmfProp(double %x) { %0: %cmp = fcmp olt double %x, 0.000000 %negX = fneg fast double %x, exceptions=ignore %sel = select nsz i1 %cmp, double %x, double %negX ret double %sel } Transformation seems to be correct! (syntactically equal) -- 7. InstCombinePass ---------------------------------------- define double @select_nsz_nfabs_lt_fmfProp(double %x) { %0: %cmp = fcmp olt double %x, 0.000000 %negX = fneg fast double %x, exceptions=ignore %sel = select nsz i1 %cmp, double %x, double %negX ret double %sel } => define double @select_nsz_nfabs_lt_fmfProp(double %x) { %0: %1 = fabs nnan ninf nsz double %x, exceptions=ignore %sel = fneg nnan ninf nsz double %1, exceptions=ignore ret double %sel } Transformation doesn't verify! (unsound) ERROR: Target is more poisonous than source Example: double %x = #xfff0000000000000 (QNaN) Source: i1 %cmp = #x1 (1) double %negX = poison double %sel = #xfff0000000000000 (QNaN) Target: double %1 = poison double %sel = poison Source value: #xfff0000000000000 (QNaN) Target value: poison 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' '-passes=instcombine' '-S' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats' ------------------- SMT STATS ------------------- Num queries: 4 Num invalid: 0 Num skips: 0 Num trivial: 6 (60.0%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 4 (100.0%) Num UNSAT: 0 (0.0%) Alive2: Transform doesn't verify; aborting!
+ : 'RUN: at line 2' + /home/nlopes/alive2/build/opt-alive.sh -passes=instcombine -S + /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/fneg-fabs.ll FileCheck error: '<stdin>' is empty. FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/fneg-fabs.ll