From: Richard Henderson Date: Mon, 31 Mar 2003 21:02:10 +0000 (-0800) Subject: real.c (real_identical): Reorg so as to not compare signalling for normals. X-Git-Tag: releases/gcc-3.4.0~7545 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c06208f54a47b93c18a858dd24d2e083fe0692f;p=thirdparty%2Fgcc.git real.c (real_identical): Reorg so as to not compare signalling for normals. * real.c (real_identical): Reorg so as to not compare signalling for normals. From-SVN: r65111 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 760026309238..3dcc8be7cb97 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-31 Richard Henderson + + * real.c (real_identical): Reorg so as to not compare + signalling for normals. + 2003-03-31 Stephane Carrez * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode. diff --git a/gcc/real.c b/gcc/real.c index 04bf718a7434..29d5de1f0144 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -1227,24 +1227,26 @@ real_identical (a, b) { case rvc_zero: case rvc_inf: - break; + return true; case rvc_normal: if (a->exp != b->exp) return false; - /* FALLTHRU */ + break; + case rvc_nan: if (a->signalling != b->signalling) return false; - for (i = 0; i < SIGSZ; ++i) - if (a->sig[i] != b->sig[i]) - return false; break; default: abort (); } + for (i = 0; i < SIGSZ; ++i) + if (a->sig[i] != b->sig[i]) + return false; + return true; }