mirror of
git://c9x.me/qbe.git
synced 2026-04-07 10:59:47 +00:00
dumb switch mistake in isel (abi fuzzer)
This commit is contained in:
parent
b8e3bc6aa0
commit
14628baf40
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…
Reference in New Issue
Block a user