From f8fdc8504199983f6ab2c203cfbb45094040ef46 Mon Sep 17 00:00:00 2001 From: Jie Zhang Date: Sun, 28 May 2006 00:53:08 +0000 Subject: [PATCH] * config/bfin-parse.y (check_macfunc): Loose the condition of calling check_multiply_halfregs (). --- gas/ChangeLog | 5 +++++ gas/config/bfin-parse.y | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 039badef731..449f6359f74 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-05-28 Jie Zhang + + * config/bfin-parse.y (check_macfunc): Loose the condition of + calling check_multiply_halfregs (). + 2006-05-25 Jie Zhang * config/bfin-parse.y (asm_1): Better check and deal with diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y index a04b3f56e62..35c4c8103f0 100644 --- a/gas/config/bfin-parse.y +++ b/gas/config/bfin-parse.y @@ -298,9 +298,10 @@ check_macfuncs (Macfunc *aa, Opt_mode *opa, return yyerror ("Vector AxMACs can't be same"); } - /* If both ops are != 3, we have multiply_halfregs in both + /* If both ops are one of 0, 1, or 2, we have multiply_halfregs in both assignment_or_macfuncs. */ - if (aa->op == ab->op && aa->op != 3) + if (aa->op < 3 && aa->op >=0 + && ab->op < 3 && ab->op >= 0) { if (check_multiply_halfregs (aa, ab) < 0) return -1; -- 2.30.2