diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1997-07-19 17:59:19 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1997-07-19 17:59:19 -0400 |
commit | 9b009d452a9006b65eec19d766791ee6ac970f0e (patch) | |
tree | 5f9bfdf4e4ee35b65708054bcff3686689900a07 | |
parent | 818b66cca8d0fb62d6d4dbf9a63d9d790c44ae63 (diff) | |
download | gcc-9b009d452a9006b65eec19d766791ee6ac970f0e.zip gcc-9b009d452a9006b65eec19d766791ee6ac970f0e.tar.gz gcc-9b009d452a9006b65eec19d766791ee6ac970f0e.tar.bz2 |
(override_options): Allow processor of ev56 or 21164a.
(input_operand, case MEM): Correct test involving TARGET_BYTE_OPS.
From-SVN: r14494
-rw-r--r-- | gcc/config/alpha/alpha.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index df88831..25943ff 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -39,7 +39,7 @@ Boston, MA 02111-1307, USA. */ #include "tree.h" /* Specify which cpu to schedule for. */ - enum processor_type alpha_cpu; +enum processor_type alpha_cpu; /* Specify how accurate floating-point traps need to be. */ @@ -115,6 +115,12 @@ override_options () else if (! strcmp (alpha_cpu_string, "ev5") || ! strcmp (alpha_cpu_string, "21164")) alpha_cpu = PROCESSOR_EV5; + else if (! strcmp (alpha_cpu_string, "ev56") + || ! strcmp (alpha_cpu_string, "21164a")) + { + alpha_cpu = PROCESSOR_EV5; + target_flags |= MASK_BYTE_OPS; + } else error ("bad value `%s' for -mcpu switch", alpha_cpu_string); } @@ -469,7 +475,7 @@ input_operand (op, mode) return 1; /* ... fall through ... */ case MEM: - return (TARGET_BYTE_OPS || (mode != HImode && mode != QImode) + return ((TARGET_BYTE_OPS || (mode != HImode && mode != QImode)) && general_operand (op, mode)); case CONST_DOUBLE: |