diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-01-29 10:48:14 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-01-29 10:48:14 -0500 |
commit | 2c351452b1e5b7eeeb0b15847730676fec46c6eb (patch) | |
tree | d7fb8c699b5eff2e694a26191d3f0e27502334c6 /lisc/isel.c | |
parent | 8d1f2f9d2c720e8eb8d0b5ef4e2f81f7316f765b (diff) | |
download | roux-2c351452b1e5b7eeeb0b15847730676fec46c6eb.tar.gz |
add cheapo static assert in isel
Diffstat (limited to 'lisc/isel.c')
-rw-r--r-- | lisc/isel.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisc/isel.c b/lisc/isel.c index ec2fdd0..8d80299 100644 --- 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 |