re PR middle-end/36578 (cast to long double not taken into account when result stored to a double)
PR middle-end/36578 * convert.c (convert_to_real): Do not optimize conversions of binary arithmetic operations between binary and decimal floating-point types. Consider mode of target type in determining decimal type for arithmetic. Unless flag_unsafe_math_optimizations, do not optimize binary conversions where this may change rounding behavior. * real.c (real_can_shorten_arithmetic): New. * real.h (real_can_shorten_arithmetic): Declare. testsuite: * gcc.dg/dfp/convert-bfp-13.c, gcc.dg/dfp/convert-bfp-14.c, gcc.dg/dfp/convert-dfp-fold-2.c, gcc.target/i386/pr36578-1.c, gcc.target/i386/pr36578-2.c: New tests. From-SVN: r141432
Showing
gcc/testsuite/gcc.dg/dfp/convert-bfp-13.c
0 → 100644
gcc/testsuite/gcc.dg/dfp/convert-bfp-14.c
0 → 100644
gcc/testsuite/gcc.target/i386/pr36578-1.c
0 → 100644
gcc/testsuite/gcc.target/i386/pr36578-2.c
0 → 100644
Please
register
or
sign in
to comment