diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-08 08:33:52 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-08 09:11:56 -0400 |
commit | a7fb69fd782470e20553e90e97fcc13f9218e2ae (patch) | |
tree | 280758eb0b8846bfed7f65c49740064989c2cbf2 /rega.c | |
parent | 238bc89271c08093ffa83e0bb7fb9f6f647b5ab0 (diff) | |
download | roux-a7fb69fd782470e20553e90e97fcc13f9218e2ae.tar.gz |
prevent gcc warning in rega
Diffstat (limited to 'rega.c')
-rw-r--r-- | rega.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/rega.c b/rega.c index 3b3c215..2fac0d8 100644 --- a/rega.c +++ b/rega.c @@ -109,15 +109,12 @@ ralloc(RMap *m, int t) if (r == -1 || bshas(m->b, r)) { regs = tmp[phicls(t, tmp)].hint.m; regs |= m->b->t[0]; - switch (KBASE(tmp[t].cls)) { - case 0: + if (KBASE(tmp[t].cls) == 0) { r0 = RAX; r1 = RAX + NIReg; - break; - case 1: + } else { r0 = XMM0; r1 = XMM0 + NFReg; - break; } for (r=r0; r<r1; r++) if (!(regs & BIT(r))) |