mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
matches: simplify check operand size actions
We may throw out j variable (since we break anyway) and don't assign asize for free (since we don't use it after). Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
b640a917cd
commit
bc31bee760
@ -2136,12 +2136,11 @@ static enum match_result matches(const struct itemplate *itemp,
|
||||
*/
|
||||
if (itemp->flags & (IF_SM | IF_SM2)) {
|
||||
oprs = (itemp->flags & IF_SM2 ? 2 : itemp->operands);
|
||||
asize = 0;
|
||||
for (i = 0; i < oprs; i++) {
|
||||
if ((asize = itemp->opd[i] & SIZE_MASK) != 0) {
|
||||
int j;
|
||||
for (j = 0; j < oprs; j++)
|
||||
size[j] = asize;
|
||||
asize = itemp->opd[i] & SIZE_MASK;
|
||||
if (asize) {
|
||||
for (i = 0; i < oprs; i++)
|
||||
size[i] = asize;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user