aboutsummaryrefslogtreecommitdiff
path: root/arm64
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2025-04-16 10:23:25 +0200
committerQuentin Carbonneaux <[email protected]>2025-04-16 10:29:00 +0200
commit8d5b86ac4c24e24802a60e5e9df2dd5902fe0a5c (patch)
tree36805bd0dd0a942740c2ba9b9223a89c2cc9978e /arm64
parent348f2eac90ffc0f3f8fa35e8a211ef8048589cb8 (diff)
fix fp constants on big endian hosts
Diffstat (limited to 'arm64')
-rw-r--r--arm64/isel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arm64/isel.c b/arm64/isel.c
index 7d85b92..ff3b30b 100644
--- a/arm64/isel.c
+++ b/arm64/isel.c
@@ -109,7 +109,7 @@ fixarg(Ref *pr, int k, int phi, Fn *fn)
if (KBASE(k) == 0) {
emit(Ocopy, k, r1, r0, R);
} else {
- 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);