diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-03-01 14:19:22 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-03-01 14:19:22 +0000 |
commit | 6620997bdc9419cd243613ecb7b958788ab082cc (patch) | |
tree | f3c4d0012231dd9aab67fc273f4cb2e9b4af2b84 | |
parent | 82b4dc2e26f010e00fb3145b31b452f99f19355b (diff) | |
download | gcc-6620997bdc9419cd243613ecb7b958788ab082cc.zip gcc-6620997bdc9419cd243613ecb7b958788ab082cc.tar.gz gcc-6620997bdc9419cd243613ecb7b958788ab082cc.tar.bz2 |
h8300.c (bit_operand): Accept MEM only if it satisfies EXTRA_CONSTRAINT 'U'.
* config/h8300/h8300.c (bit_operand): Accept MEM only if it
satisfies EXTRA_CONSTRAINT 'U'.
From-SVN: r63611
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f7f6fd..90086bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2003-03-01 Kazu Hirata <kazu@cs.umass.edu> + * config/h8300/h8300.c (bit_operand): Accept MEM only if it + satisfies EXTRA_CONSTRAINT 'U'. + +2003-03-01 Kazu Hirata <kazu@cs.umass.edu> + * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch register. (*tst_extzv_memqi_1_n): Change to a splitter. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 08a7cc6..ef9dbdd 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -980,12 +980,8 @@ bit_operand (op, mode) return 1; if (GET_CODE (op) == SUBREG) return 1; - if (!rtx_equal_function_value_matters) - /* We're building rtl. */ - return GET_CODE (op) == MEM; - else - return (GET_CODE (op) == MEM - && EXTRA_CONSTRAINT (op, 'U')); + return (GET_CODE (op) == MEM + && EXTRA_CONSTRAINT (op, 'U')); } int |