diff options
| author | Quentin Carbonneaux <[email protected]> | 2025-04-16 10:23:25 +0200 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2025-04-16 10:29:00 +0200 |
| commit | 8d5b86ac4c24e24802a60e5e9df2dd5902fe0a5c (patch) | |
| tree | 36805bd0dd0a942740c2ba9b9223a89c2cc9978e /rv64 | |
| parent | 348f2eac90ffc0f3f8fa35e8a211ef8048589cb8 (diff) | |
fix fp constants on big endian hosts
Diffstat (limited to 'rv64')
| -rw-r--r-- | rv64/isel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rv64/isel.c b/rv64/isel.c index 55fb645..000c112 100644 --- a/rv64/isel.c +++ b/rv64/isel.c @@ -41,7 +41,7 @@ fixarg(Ref *r, int k, Ins *i, Fn *fn) * immediates */ assert(c->type == CBits); - n = stashbits(&c->bits, KWIDE(k) ? 8 : 4); + n = stashbits(c->bits.i, KWIDE(k) ? 8 : 4); vgrow(&fn->con, ++fn->ncon); c = &fn->con[fn->ncon-1]; sprintf(buf, "\"%sfp%d\"", T.asloc, n); |
