Test Failure: Transforms/InstCombine/fneg-fabs.ll

Test source: git

Comments: LLVM PR59279

Log:

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
  %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
  %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
  %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
  %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
  %sel = fneg nnan ninf nsz double %#1
  ret double %sel
}
Transformation doesn't verify! (unsound)
ERROR: Target is more poisonous than source

Example:
double %x = #xfff0000000000000 (-oo)

Source:
i1 %cmp = #x1 (1)
double %negX = poison
double %sel = #xfff0000000000000 (-oo)

Target:
double %#1 = poison
double %sel = poison
Source value: #xfff0000000000000 (-oo)
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'
Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_Qo1Ikl3w_tvpt.bc"


------------------- SMT STATS -------------------
Num queries: 13
Num invalid: 0
Num skips:   0
Num trivial: 6 (31.6%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     10 (76.9%)
Num UNSAT:   3 (23.1%)
Alive2: Transform doesn't verify; aborting!

stderr:

RUN: at line 2: /home/nlopes/alive2/build/opt-alive.sh < /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/fneg-fabs.ll -passes=instcombine -S | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/fneg-fabs.ll
+ /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

 

<-- Back