diff options
author | Jie Zhang <jie.zhang@analog.com> | 2006-05-28 00:53:08 +0000 |
---|---|---|
committer | Jie Zhang <jie.zhang@analog.com> | 2006-05-28 00:53:08 +0000 |
commit | f8fdc8504199983f6ab2c203cfbb45094040ef46 (patch) | |
tree | f044d58446b0ed1a24927682e08ff11d4037dee1 /gas/config/bfin-parse.y | |
parent | 4c80105b71eef43499e382632fc0cfffcf6202ea (diff) | |
download | gdb-f8fdc8504199983f6ab2c203cfbb45094040ef46.zip gdb-f8fdc8504199983f6ab2c203cfbb45094040ef46.tar.gz gdb-f8fdc8504199983f6ab2c203cfbb45094040ef46.tar.bz2 |
* config/bfin-parse.y (check_macfunc): Loose the condition of
calling check_multiply_halfregs ().
Diffstat (limited to 'gas/config/bfin-parse.y')
-rw-r--r-- | gas/config/bfin-parse.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y index a04b3f5..35c4c81 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; |