qbe

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

commit d1c6c305f7244775541c3ba6e0422e9a0bb5d521
parent 3f3dce67f442d637a2f933f7fd5accbcf836b9a2
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Fri, 18 Mar 2016 14:43:41 -0400

set eax before call (for variadics...)

Diffstat:
Mlisc/isel.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lisc/isel.c b/lisc/isel.c @@ -737,6 +737,7 @@ selcall(Fn *fn, Ins *i0, Ins *i1, RAlloc **rap) } } emit(OCall, i1->cls, R, i1->arg[0], CALL(ca)); + emit(OCopy, Kw, TMP(RAX), getcon((ca >> 8) & 15, fn), R); ni = ns = 0; if (ra && aret.inmem)