dumb switch mistake in isel (abi fuzzer)
This commit is contained in:
parent
b8e3bc6aa0
commit
14628baf40
1 changed files with 6 additions and 4 deletions
10
lisc/isel.c
10
lisc/isel.c
|
@ -262,15 +262,17 @@ sel(Ins i, ANum *an, Fn *fn)
|
||||||
case ONop:
|
case ONop:
|
||||||
break;
|
break;
|
||||||
case OStored:
|
case OStored:
|
||||||
if (rtype(i.arg[0]) == RCon)
|
|
||||||
i.op = OStorel;
|
|
||||||
case OStores:
|
case OStores:
|
||||||
if (rtype(i.arg[0]) == RCon)
|
|
||||||
i.op = OStorew;
|
|
||||||
case OStorel:
|
case OStorel:
|
||||||
case OStorew:
|
case OStorew:
|
||||||
case OStoreh:
|
case OStoreh:
|
||||||
case OStoreb:
|
case OStoreb:
|
||||||
|
if (rtype(i.arg[0]) == RCon) {
|
||||||
|
if (i.op == OStored)
|
||||||
|
i.op = OStorel;
|
||||||
|
if (i.op == OStores)
|
||||||
|
i.op = OStorew;
|
||||||
|
}
|
||||||
seladdr(&i.arg[1], an, fn);
|
seladdr(&i.arg[1], an, fn);
|
||||||
goto Emit;
|
goto Emit;
|
||||||
case_OLoad:
|
case_OLoad:
|
||||||
|
|
Loading…
Add table
Reference in a new issue