diff options
author | Richard Henderson <rth@cygnus.com> | 1999-02-15 08:58:14 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-02-15 08:58:14 -0800 |
commit | 2e79e5cb5db2d4f9c692956f7cd9cea777567577 (patch) | |
tree | ef7cb9f1469a92b8db7ce7c44775514a65fc6cd3 /gcc | |
parent | 73cd870fc36763c0fef36c92740c6c0e5e70fa49 (diff) | |
download | gcc-2e79e5cb5db2d4f9c692956f7cd9cea777567577.zip gcc-2e79e5cb5db2d4f9c692956f7cd9cea777567577.tar.gz gcc-2e79e5cb5db2d4f9c692956f7cd9cea777567577.tar.bz2 |
* i386.md (addsi3): Allow lea for any constant_p.
From-SVN: r25220
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/i386/i386.md | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 76d941a..168c407 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Feb 15 16:57:38 1999 Richard Henderson <rth@cygnus.com> + + * i386.md (addsi3): Allow lea for any constant_p. + 1999-02-15 17:11 -0500 Zack Weinberg <zack@rabi.columbia.edu> * toplev.c (documented_lang_options): Remove -fident and diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 4883317..5ba6dca 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -3055,7 +3055,7 @@ "* { if (REG_P (operands[0]) && REG_P (operands[1]) - && (REG_P (operands[2]) || GET_CODE (operands[2]) == CONST_INT) + && (REG_P (operands[2]) || CONSTANT_P (operands[2])) && REGNO (operands[0]) != REGNO (operands[1])) { if (REG_P (operands[2]) && REGNO (operands[0]) == REGNO (operands[2])) |