diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-03-08 10:13:04 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-03-08 03:13:04 -0700 |
commit | f623349c80034f369bdab9eaa04be4b34cac7071 (patch) | |
tree | 0686f74e25bd7e8adbe81c22df0acbb6a208fb9f | |
parent | 83f3c8788c7037ee496a8f6bdf303e593dc27cc8 (diff) | |
download | gcc-f623349c80034f369bdab9eaa04be4b34cac7071.tar.gz |
emit-rtl.c (gen_lowpart_common): Handle more case where converting a CONST_INT into SFmode.
* emit-rtl.c (gen_lowpart_common): Handle more case where converting
a CONST_INT into SFmode.
From-SVN: r18442
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 10 |
2 files changed, 8 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3f119f28eec..6c222b1f9fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Mar 8 11:16:23 1998 Jeffrey A Law (law@cygnus.com) + + * emit-rtl.c (gen_lowpart_common): Handle more case where converting + a CONST_INT into SFmode. + Sat Mar 7 01:12:46 1998 Jeffrey A Law (law@cygnus.com) * i386/aix386ng.h (CPP_PREDEFINES): Put back -Di386. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 394c14a0580..2f508ebe7a3 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -820,14 +820,10 @@ gen_lowpart_common (mode, x) #endif /* We need an extra case for machines where HOST_BITS_PER_WIDE_INT is the - same as sizeof (double), such as the alpha. We only handle the - REAL_ARITHMETIC case, which is easy. Testing HOST_BITS_PER_WIDE_INT - is not strictly necessary, but is done to restrict this code to cases - where it is known to work. */ + same as sizeof (double) or when sizeof (float) is larger than the + size of a word on the target machine. */ #ifdef REAL_ARITHMETIC - else if (mode == SFmode - && GET_CODE (x) == CONST_INT - && GET_MODE_BITSIZE (mode) * 2 == HOST_BITS_PER_WIDE_INT) + else if (mode == SFmode && GET_CODE (x) == CONST_INT) { REAL_VALUE_TYPE r; HOST_WIDE_INT i; |