qbe

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

commit fb76791b97c3ba8878d5db47bb77d440f8a1ef75
parent f135a0b1fdfd22b0f32e5021ab4e486e681129a1
Author: Quentin Carbonneaux <quentin@c9x.me>
Date:   Thu,  1 Sep 2022 19:04:45 +0200

remove two unsigned

We have a uint alias that we use
everywhere else. I also added a
todo about unhandled large offsets
in arm64/emit.

Diffstat:
Marm64/emit.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arm64/emit.c b/arm64/emit.c @@ -158,7 +158,7 @@ emitf(char *s, Ins *i, E *e) Ref r; int k, c; Con *pc; - unsigned n, sp; + uint n, sp; fputc('\t', e->f); @@ -255,6 +255,7 @@ loadcon(Con *c, int r, int k, FILE *f) if (c->type == CAddr) { rn = rname(r, Kl); if (n) + /* todo, handle large offsets */ sprintf(off, "+%"PRIi64, n); else off[0] = 0; @@ -278,7 +279,7 @@ loadcon(Con *c, int r, int k, FILE *f) if ((!w && sh == 32) || sh == 64) break; fprintf(f, "\tmovk\t%s, #0x%x, lsl #%d\n", - rn, (unsigned)(n & 0xffff), sh); + rn, (uint)(n & 0xffff), sh); } } }