From 9b009d452a9006b65eec19d766791ee6ac970f0e Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 19 Jul 1997 17:59:19 -0400 Subject: (override_options): Allow processor of ev56 or 21164a. (input_operand, case MEM): Correct test involving TARGET_BYTE_OPS. From-SVN: r14494 --- gcc/config/alpha/alpha.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gcc') 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: -- cgit v1.1