Test Failure: Transforms/InstCombine/fabs.ll

Test source: git

Comments: LLVM PR59279

Log:

Source: <stdin>
ERROR: Unsupported type: fp128
ERROR: Unsupported type: fp128
ERROR: Unsupported instruction:   %fmuladd = call float @llvm.fmuladd.f32(float %x, float %x, float 1.000000e+00)
ERROR: Unsupported instruction:   %fmuladd = call nnan float @llvm.fmuladd.f32(float %x, float %x, float 1.000000e+00)
ERROR: Unsupported instruction:   store volatile double %fpext, double* undef, align 8
ERROR: Unsupported type: fp128

----------------------------------------
define float @replace_fabs_call_f32(float %x) {
%0:
  %fabsf = fabs float %x
  ret float %fabsf
}
=>
define float @replace_fabs_call_f32(float %x) {
%0:
  %fabsf = fabs float %x
  ret float %fabsf
}
Transformation seems to be correct!


----------------------------------------
define double @replace_fabs_call_f64(double %x) {
%0:
  %fabs = fabs double %x
  ret double %fabs
}
=>
define double @replace_fabs_call_f64(double %x) {
%0:
  %fabs = fabs double %x
  ret double %fabs
}
Transformation seems to be correct!

ERROR: Unsupported type: fp128

----------------------------------------
define float @fmf_replace_fabs_call_f32(float %x) {
%0:
  %fabsf = fabs nnan float %x
  ret float %fabsf
}
=>
define float @fmf_replace_fabs_call_f32(float %x) {
%0:
  %fabsf = fabs nnan float %x
  ret float %fabsf
}
Transformation seems to be correct!


----------------------------------------
define float @square_fabs_intrinsic_f32(float %x) {
%0:
  %mul = fmul float %x, %x
  %fabsf = fabs float %mul
  ret float %fabsf
}
=>
define float @square_fabs_intrinsic_f32(float %x) {
%0:
  %mul = fmul float %x, %x
  %fabsf = fabs float %mul
  ret float %fabsf
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define double @square_fabs_intrinsic_f64(double %x) {
%0:
  %mul = fmul double %x, %x
  %fabs = fabs double %mul
  ret double %fabs
}
=>
define double @square_fabs_intrinsic_f64(double %x) {
%0:
  %mul = fmul double %x, %x
  %fabs = fabs double %mul
  ret double %fabs
}
Transformation doesn't verify!
ERROR: Timeout

ERROR: Unsupported type: fp128

----------------------------------------
define float @square_nnan_fabs_intrinsic_f32(float %x) {
%0:
  %mul = fmul nnan float %x, %x
  %fabsf = fabs float %mul
  ret float %fabsf
}
=>
define float @square_nnan_fabs_intrinsic_f32(float %x) {
%0:
  %mul = fmul nnan float %x, %x
  ret float %mul
}
Transformation seems to be correct!


----------------------------------------
define float @square_fabs_shrink_call1(float %x) {
%0:
  %ext = fpext float %x to double
  %sq = fmul double %ext, %ext
  %fabs = fabs double %sq
  %trunc = fptrunc double %fabs to float
  ret float %trunc
}
=>
define float @square_fabs_shrink_call1(float %x) {
%0:
  %1 = fmul float %x, %x
  %trunc = fabs float %1
  ret float %trunc
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define float @square_fabs_shrink_call2(float %x) {
%0:
  %sq = fmul float %x, %x
  %ext = fpext float %sq to double
  %fabs = fabs double %ext
  %trunc = fptrunc double %fabs to float
  ret float %trunc
}
=>
define float @square_fabs_shrink_call2(float %x) {
%0:
  %sq = fmul float %x, %x
  %1 = fabs float %sq
  ret float %1
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define float @fabs_select_constant_negative_positive(i32 %c) {
%0:
  %cmp = icmp eq i32 %c, 0
  %select = select i1 %cmp, float -1.000000, float 2.000000
  %fabs = fabs float %select
  ret float %fabs
}
=>
define float @fabs_select_constant_negative_positive(i32 %c) {
%0:
  %cmp = icmp eq i32 %c, 0
  %fabs = select i1 %cmp, float 1.000000, float 2.000000
  ret float %fabs
}
Transformation seems to be correct!


----------------------------------------
define float @fabs_select_constant_positive_negative(i32 %c) {
%0:
  %cmp = icmp eq i32 %c, 0
  %select = select i1 %cmp, float 1.000000, float -2.000000
  %fabs = fabs float %select
  ret float %fabs
}
=>
define float @fabs_select_constant_positive_negative(i32 %c) {
%0:
  %cmp = icmp eq i32 %c, 0
  %fabs = select i1 %cmp, float 1.000000, float 2.000000
  ret float %fabs
}
Transformation seems to be correct!


----------------------------------------
define float @fabs_select_constant_negative_negative(i32 %c) {
%0:
  %cmp = icmp eq i32 %c, 0
  %select = select i1 %cmp, float -1.000000, float -2.000000
  %fabs = fabs float %select
  ret float %fabs
}
=>
define float @fabs_select_constant_negative_negative(i32 %c) {
%0:
  %cmp = icmp eq i32 %c, 0
  %fabs = select i1 %cmp, float 1.000000, float 2.000000
  ret float %fabs
}
Transformation seems to be correct!


----------------------------------------
define float @fabs_select_constant_neg0(i32 %c) {
%0:
  %cmp = icmp eq i32 %c, 0
  %select = select i1 %cmp, float -0.000000, float 0.000000
  %fabs = fabs float %select
  ret float %fabs
}
=>
define float @fabs_select_constant_neg0(i32 %c) {
%0:
  ret float 0.000000
}
Transformation seems to be correct!


----------------------------------------
define float @fabs_select_var_constant_negative(i32 %c, float %x) {
%0:
  %cmp = icmp eq i32 %c, 0
  %select = select i1 %cmp, float %x, float -1.000000
  %fabs = fabs float %select
  ret float %fabs
}
=>
define float @fabs_select_var_constant_negative(i32 %c, float %x) {
%0:
  %cmp = icmp eq i32 %c, 0
  %select = select i1 %cmp, float %x, float -1.000000
  %fabs = fabs float %select
  ret float %fabs
}
Transformation seems to be correct!


----------------------------------------
define float @square_fma_fabs_intrinsic_f32(float %x) {
%0:
  %fma = fma float %x, float %x, float 1.000000
  %fabsf = fabs float %fma
  ret float %fabsf
}
=>
define float @square_fma_fabs_intrinsic_f32(float %x) {
%0:
  %fma = fma float %x, float %x, float 1.000000
  %fabsf = fabs float %fma
  ret float %fabsf
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define float @square_nnan_fma_fabs_intrinsic_f32(float %x) {
%0:
  %fma = fma nnan float %x, float %x, float 1.000000
  %fabsf = fabs float %fma
  ret float %fabsf
}
=>
define float @square_nnan_fma_fabs_intrinsic_f32(float %x) {
%0:
  %fma = fma nnan float %x, float %x, float 1.000000
  ret float %fma
}
Transformation doesn't verify!
ERROR: Timeout

ERROR: Unsupported instruction:   %fmuladd = call float @llvm.fmuladd.f32(float %x, float %x, float 1.000000e+00)
ERROR: Unsupported instruction:   %fmuladd = call nnan float @llvm.fmuladd.f32(float %x, float %x, float 1.000000e+00)
ERROR: Unsupported instruction:   store volatile double %fpext, double* undef, align 8

----------------------------------------
define double @select_fcmp_ole_zero(double %x) {
%0:
  %lezero = fcmp ole double %x, 0.000000
  %negx = fsub double 0.000000, %x
  %fabs = select i1 %lezero, double %negx, double %x
  ret double %fabs
}
=>
define double @select_fcmp_ole_zero(double %x) {
%0:
  %lezero = fcmp ole double %x, 0.000000
  %negx = fsub double 0.000000, %x
  %fabs = select i1 %lezero, double %negx, double %x
  ret double %fabs
}
Transformation seems to be correct!


----------------------------------------
define double @select_fcmp_nnan_ole_zero(double %x) {
%0:
  %lezero = fcmp ole double %x, 0.000000
  %negx = fsub nnan double 0.000000, %x
  %fabs = select i1 %lezero, double %negx, double %x
  ret double %fabs
}
=>
define double @select_fcmp_nnan_ole_zero(double %x) {
%0:
  %1 = fabs nnan double %x
  ret double %1
}
Transformation doesn't verify!
ERROR: Target is more poisonous than source

Example:
double %x = NaN

Source:
i1 %lezero = #x0 (0)
double %negx = poison
double %fabs = NaN

Target:
double %1 = poison
Source value: NaN
Target value: poison


------------------- SMT STATS -------------------
Num queries: 51
Num invalid: 0
Num skips:   0
Num trivial: 57 (52.8%)
Num timeout: 6 (11.8%)
Num errors:  0 (0.0%)
Num SAT:     18 (35.3%)
Num UNSAT:   27 (52.9%)

stderr:

+ : 'RUN: at line 2'
+ /home/nlopes/alive2/build/opt-alive.sh -mtriple=x86_64-unknown-linux-gnu -instcombine -S
+ /home/nlopes/llvm/build/bin/FileCheck --allow-unused-prefixes=false /home/nlopes/llvm/llvm/test/Transforms/InstCombine/fabs.ll

Alive2: Transform doesn't verify; aborting!
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nlopes/llvm/build/bin/FileCheck --allow-unused-prefixes=false /home/nlopes/llvm/llvm/test/Transforms/InstCombine/fabs.ll

 

<-- Back