mirror of
git://c9x.me/qbe.git
synced 2026-04-05 09:59:47 +00:00
rv64: fix invalid float immediates
Thanks to Luke Graham for reporting and fixing this issue.
This commit is contained in:
parent
120f316162
commit
03da40271f
@ -31,6 +31,7 @@ fixarg(Ref *r, int k, Ins *i, Fn *fn)
|
|||||||
c = &fn->con[r0.val];
|
c = &fn->con[r0.val];
|
||||||
if (c->type == CAddr && memarg(r, op, i))
|
if (c->type == CAddr && memarg(r, op, i))
|
||||||
break;
|
break;
|
||||||
|
if (KBASE(k) == 0)
|
||||||
if (c->type == CBits && immarg(r, op, i))
|
if (c->type == CBits && immarg(r, op, i))
|
||||||
if (-2048 <= c->bits.i && c->bits.i < 2048)
|
if (-2048 <= c->bits.i && c->bits.i < 2048)
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user