diff options
author | Xianmiao Qu <xianmiao_qu@c-sky.com> | 2018-11-12 02:36:45 +0000 |
---|---|---|
committer | Xianmiao Qu <xianmiao@gcc.gnu.org> | 2018-11-12 02:36:45 +0000 |
commit | 31fad58fbb30f1fd37c57417d0e12a0cf13316b5 (patch) | |
tree | 36a799d029974cbe0451332d728c4da4f22ebcff /gcc/config/csky | |
parent | 9510b56378a931af22c6dcccb8cf62105d0a69ba (diff) | |
download | gcc-31fad58fbb30f1fd37c57417d0e12a0cf13316b5.zip gcc-31fad58fbb30f1fd37c57417d0e12a0cf13316b5.tar.gz gcc-31fad58fbb30f1fd37c57417d0e12a0cf13316b5.tar.bz2 |
csky.md (*fpuv2_nmulsf3_1, [...]): Handle -frounding-math.
2018-11-11 Xianmiao Qu <xianmiao_qu@c-sky.com>
gcc/
* config/csky/csky.md (*fpuv2_nmulsf3_1, *fpuv2_nmuldf3_1): Handle
-frounding-math.
gcc/testsuite
* gcc.target/csky/fnmul-1.c: New.
* gcc.target/csky/fnmul-2.c: New.
* gcc.target/csky/fnmul-3.c: New.
* gcc.target/csky/fnmul-4.c: New.
From-SVN: r266024
Diffstat (limited to 'gcc/config/csky')
-rw-r--r-- | gcc/config/csky/csky_insn_fpu.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/csky/csky_insn_fpu.md b/gcc/config/csky/csky_insn_fpu.md index d188ef2..0598203 100644 --- a/gcc/config/csky/csky_insn_fpu.md +++ b/gcc/config/csky/csky_insn_fpu.md @@ -131,7 +131,7 @@ [(set (match_operand:SF 0 "register_operand" "=v") (mult:SF (neg:SF (match_operand:SF 1 "register_operand" "%v")) (match_operand:SF 2 "register_operand" "v")))] - "CSKY_ISA_FEATURE (fpv2_sf)" + "CSKY_ISA_FEATURE (fpv2_sf) && !flag_rounding_math" "fnmuls\t%0, %1, %2") (define_insn "*fpuv2_nmulsf3_2" @@ -145,7 +145,7 @@ [(set (match_operand:DF 0 "register_operand" "=v") (mult:DF (neg:DF (match_operand:DF 1 "register_operand" "%v")) (match_operand:DF 2 "register_operand" "v")))] - "CSKY_ISA_FEATURE (fpv2_df)" + "CSKY_ISA_FEATURE (fpv2_df) && !flag_rounding_math" "fnmuld\t%0, %1, %2") (define_insn "*fpuv2_nmuldf3_2" |