Test Failure: Transforms/InstCombine/fpcast.ll

Test source: git

Comments: LLVM PR49080

Log:

Source: <stdin>

----------------------------------------
define i8 @test1() {
%0:
  %x = fptoui float 255.000000 to i8
  ret i8 %x
}
=>
define i8 @test1() {
%0:
  ret i8 255
}
Transformation seems to be correct!


----------------------------------------
define i8 @test2() {
%0:
  %x = fptosi float -1.000000 to i8
  ret i8 %x
}
=>
define i8 @test2() {
%0:
  ret i8 255
}
Transformation seems to be correct!


----------------------------------------
define half @test3(float %a) {
%0:
  %b = fabs float %a
  %c = fptrunc float %b to half
  ret half %c
}
=>
define half @test3(float %a) {
%0:
  %1 = fptrunc float %a to half
  %c = fabs half %1
  ret half %c
}
Transformation seems to be correct!


----------------------------------------
define half @fneg_fptrunc(float %a) {
%0:
  %b = fsub float -0.000000, %a
  %c = fptrunc float %b to half
  ret half %c
}
=>
define half @fneg_fptrunc(float %a) {
%0:
  %1 = fptrunc float %a to half
  %c = fneg half %1
  ret half %c
}
Transformation seems to be correct!


----------------------------------------
define half @unary_fneg_fptrunc(float %a) {
%0:
  %b = fneg float %a
  %c = fptrunc float %b to half
  ret half %c
}
=>
define half @unary_fneg_fptrunc(float %a) {
%0:
  %1 = fptrunc float %a to half
  %c = fneg half %1
  ret half %c
}
Transformation seems to be correct!


----------------------------------------
define <2 x half> @fneg_fptrunc_vec_undef(<2 x float> %a) {
%0:
  %b = fsub <2 x float> { -0.000000, undef }, %a
  %c = fptrunc <2 x float> %b to <2 x half>
  ret <2 x half> %c
}
=>
define <2 x half> @fneg_fptrunc_vec_undef(<2 x float> %a) {
%0:
  %1 = fptrunc <2 x float> %a to <2 x half>
  %c = fneg <2 x half> %1
  ret <2 x half> %c
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define <2 x half> @unary_fneg_fptrunc_vec(<2 x float> %a) {
%0:
  %b = fneg <2 x float> %a
  %c = fptrunc <2 x float> %b to <2 x half>
  ret <2 x half> %c
}
=>
define <2 x half> @unary_fneg_fptrunc_vec(<2 x float> %a) {
%0:
  %1 = fptrunc <2 x float> %a to <2 x half>
  %c = fneg <2 x half> %1
  ret <2 x half> %c
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define half @test4-fast(float %a) {
%0:
  %b = fsub fast float -0.000000, %a
  %c = fptrunc float %b to half
  ret half %c
}
=>
define half @test4-fast(float %a) {
%0:
  %1 = fptrunc float %a to half
  %c = fneg fast half %1
  ret half %c
}
Transformation doesn't verify!
ERROR: Target is more poisonous than source

Example:
float %a = #x4f804250 (4303659008)

Source:
float %b = NaN
half %c = NaN

Target:
half %1 = #x7c00 (+oo)
half %c = poison
Source value: NaN
Target value: poison


------------------- SMT STATS -------------------
Num queries: 21
Num invalid: 0
Num skips:   0
Num trivial: 36 (63.2%)
Num timeout: 2 (9.5%)
Num errors:  0 (0.0%)
Num SAT:     10 (47.6%)
Num UNSAT:   9 (42.9%)
Alive2: Transform doesn't verify; aborting!

stderr:

+ : 'RUN: at line 3'
+ /home/nlopes/alive2/build/opt-alive.sh -instcombine -S
+ /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/fpcast.ll

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/fpcast.ll

 

<-- Back