parse: fix loadw when assigned to l temporary
The documentation states that loadw is syntactic sugar for loadsw, but it actually got parsed as Oload. If the result is an l temporary, Oload behaves like Oloadl, not Oloadsw. To fix this, parse Tloadw as Oloadsw explicitly.
This commit is contained in:
parent
52c8eb48ee
commit
bb16529b34
1 changed files with 3 additions and 1 deletions
4
parse.c
4
parse.c
|
@ -633,7 +633,9 @@ DoOp:
|
|||
arg[1] = R;
|
||||
goto Ins;
|
||||
}
|
||||
if (op >= Tloadw && op <= Tloadd)
|
||||
if (op == Tloadw)
|
||||
op = Oloadsw;
|
||||
if (op >= Tloadl && op <= Tloadd)
|
||||
op = Oload;
|
||||
if (op == Talloc1 || op == Talloc2)
|
||||
op = Oalloc;
|
||||
|
|
Loading…
Add table
Reference in a new issue