qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 5097cf1d42e0778991e6c8874b4c46d83297fbf3
parent e198fe6c40f745a3a94a52debe187a6a5c2d3ba5
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Mon, 30 Nov 2015 10:18:03 -0500

stores becomes storeh

Diffstat:
Mlisc/emit.c | 2+-
Mlisc/isel.c | 6+++---
Mlisc/lisc.h | 2+-
Mlisc/parse.c | 2+-
4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/lisc/emit.c b/lisc/emit.c @@ -252,7 +252,7 @@ eins(Ins i, Fn *fn, FILE *f) break; case OStorel: case OStorew: - case OStores: + case OStoreh: case OStoreb: emitf(fn, f, "mov%t %R, %M", i.op - OStorel, i.arg[0], i.arg[1]); diff --git a/lisc/isel.c b/lisc/isel.c @@ -180,8 +180,8 @@ sel(Ins i, ANum *an, Fn *fn) break; case OStorel: case OStorew: + case OStoreh: case OStoreb: - case OStores: seladdr(&i.arg[1], an, fn); goto Emit; case_OLoad: @@ -265,8 +265,8 @@ flagi(Ins *i0, Ins *i) case OCopy: /* flag-transparent */ case OStorel: case OStorew: - case OStoreb: - case OStores:; + case OStoreh: + case OStoreb:; } return 0; } diff --git a/lisc/lisc.h b/lisc/lisc.h @@ -171,7 +171,7 @@ enum Op { OCmp1 = OCmp + NCmp-1, OStorel, OStorew, - OStores, + OStoreh, OStoreb, OLoad, OLoad1 = OLoad + NTy-1, diff --git a/lisc/parse.c b/lisc/parse.c @@ -11,7 +11,7 @@ OpDesc opdesc[NOp] = { [OAnd] = { "and", 2 }, [OStorel] = { "storel", 0 }, [OStorew] = { "storew", 0 }, - [OStores] = { "stores", 0 }, + [OStoreh] = { "storeh", 0 }, [OStoreb] = { "storeb", 0 }, [OCopy] = { "copy", 1 }, [ONop] = { "nop", 0 },