summaryrefslogtreecommitdiff
path: root/gcc/dojump.c
diff options
context:
space:
mode:
authorbergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-09 14:46:02 +0000
committerbergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-09 14:46:02 +0000
commit670fc240c6ceb4e1d163b0a512163cb5bacea3d6 (patch)
tree45e7ac905893bbbb095d8c1c1ed439710e5aaece /gcc/dojump.c
parent99c7105baaa9c40717b3373754c0d2e940d4c78d (diff)
downloadgcc-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.c4
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. */