aboutsummaryrefslogtreecommitdiff
path: root/rv64/isel.c
diff options
context:
space:
mode:
Diffstat (limited to 'rv64/isel.c')
-rw-r--r--rv64/isel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rv64/isel.c b/rv64/isel.c
index 000c112..ca62359 100644
--- a/rv64/isel.c
+++ b/rv64/isel.c
@@ -31,6 +31,7 @@ fixarg(Ref *r, int k, Ins *i, Fn *fn)
c = &fn->con[r0.val];
if (c->type == CAddr && memarg(r, op, i))
break;
+ if (KBASE(k) == 0)
if (c->type == CBits && immarg(r, op, i))
if (-2048 <= c->bits.i && c->bits.i < 2048)
break;