diff options
author | bergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-09 14:46:02 +0000 |
---|---|---|
committer | bergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-09 14:46:02 +0000 |
commit | 670fc240c6ceb4e1d163b0a512163cb5bacea3d6 (patch) | |
tree | 45e7ac905893bbbb095d8c1c1ed439710e5aaece /gcc/dojump.c | |
parent | 99c7105baaa9c40717b3373754c0d2e940d4c78d (diff) | |
download | gcc-670fc240c6ceb4e1d163b0a512163cb5bacea3d6.tar.gz |
gcc/
PR middle-end/52140
* dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
gcc/testsuite/
PR middle-end/52140
* gcc.dg/dfp/pr52140.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184045 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r-- | gcc/dojump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c index 093d3ef2d6d..91bebee1400 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -1049,7 +1049,7 @@ do_compare_rtx_and_jump (rtx op0, rtx op1, enum rtx_code code, int unsignedp, } else { - if (GET_MODE_CLASS (mode) == MODE_FLOAT + if (SCALAR_FLOAT_MODE_P (mode) && ! can_compare_p (code, mode, ccp_jump) && can_compare_p (swap_condition (code), mode, ccp_jump)) { @@ -1060,7 +1060,7 @@ do_compare_rtx_and_jump (rtx op0, rtx op1, enum rtx_code code, int unsignedp, op1 = tmp; } - else if (GET_MODE_CLASS (mode) == MODE_FLOAT + else if (SCALAR_FLOAT_MODE_P (mode) && ! can_compare_p (code, mode, ccp_jump) /* Never split ORDERED and UNORDERED. These must be implemented. */ |