qbe

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

commit 2c351452b1e5b7eeeb0b15847730676fec46c6eb
parent 8d1f2f9d2c720e8eb8d0b5ef4e2f81f7316f765b
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Fri, 29 Jan 2016 10:48:14 -0500

add cheapo static assert in isel

Diffstat:
Mlisc/isel.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lisc/isel.c b/lisc/isel.c @@ -461,11 +461,14 @@ classify(Ins *i0, Ins *i1, AClass *ac, int op) return (6-nint) << 4; } -int rsave[NRSave] = { +int rsave[/* NRSave */] = { RDI, RSI, RDX, RCX, R8, R9, R10, R11, RAX, - XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7, XMM8, - XMM9, XMM10, XMM11, XMM12, XMM13, XMM14, XMM15 + XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7, + XMM8, XMM9, XMM10, XMM11, XMM12, XMM13, XMM14 }; +typedef char make_sure_rsave_has_correct_size[ + sizeof rsave == NRSave * sizeof(int) ? 1 : -1 +]; int rclob[NRClob] = {RBX, R12, R13, R14, R15}; ulong