From 97c6d5c44f30b29b52d1dc431ab9f2df4bb47fd2 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 31 Dec 2025 11:13:15 +0100 Subject: backend: separate instrs for integer/float store --- aarch64/emit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'aarch64/emit.c') diff --git a/aarch64/emit.c b/aarch64/emit.c index 2ca3af9..564ce2a 100644 --- a/aarch64/emit.c +++ b/aarch64/emit.c @@ -680,12 +680,12 @@ emitinstr(uchar **pcode, struct function *fn, struct block *blk, int curi, struc Load: X2(pcode, cls, reg2oper(ins->reg-1), mkmemoper(8<<(ins->op - Oloads8)/2, ins->l)); break; - case Ostore8: cls = KI32; X2 = Xstrb; goto Store; - case Ostore16: cls = KI32; X2 = Xstrh; goto Store; - case Ostore32: cls = KI32; X2 = Xstr; goto Store; - case Ostore64: cls = KI64; X2 = Xstr; + case Ostorei8: cls = KI32; X2 = Xstrb; goto Store; + case Ostorei16: cls = KI32; X2 = Xstrh; goto Store; + case Ostorei32: cls = KI32; X2 = Xstr; goto Store; + case Ostorei64: cls = KI64; X2 = Xstr; Store: - X2(pcode, cls, ref2oper(ins->r), mkmemoper(8<<(ins->op-Ostore8), ins->l)); + X2(pcode, cls, ref2oper(ins->r), mkmemoper(8<<(ins->op-Ostorei8), ins->l)); break; case Ocall: Xcall(pcode, ref2oper(ins->l)); -- cgit v1.2.3