diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-12-14 13:28:24 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-12-14 13:28:24 +0000 |
commit | d1cbb4db761d593ea18e8cd3526b0167f857b788 (patch) | |
tree | 40e98ca3ffe6976f1ea0fe2264123d47733767e0 /gas/config | |
parent | b0956e015259731f445bd7b649ea66608bc1fbf8 (diff) | |
download | gdb-d1cbb4db761d593ea18e8cd3526b0167f857b788.zip gdb-d1cbb4db761d593ea18e8cd3526b0167f857b788.tar.gz gdb-d1cbb4db761d593ea18e8cd3526b0167f857b788.tar.bz2 |
2006-12-14 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (match_template): Simplify 3 and 4 operand
match.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 959afe6..3b54ed5 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -2734,10 +2734,14 @@ match_template () else { /* Found a forward 2 operand match here. */ - if (t->operands > 2) - overlap2 = i.types[2] & operand_types[2]; - if (t->operands > 3) - overlap3 = i.types[3] & operand_types[3]; + switch (t->operands) + { + case 4: + overlap3 = i.types[3] & operand_types[3]; + case 3: + overlap2 = i.types[2] & operand_types[2]; + break; + } switch (t->operands) { |