fix(asm): materialise RISC-V MOV immediates
Test / vet (push) Successful in 44s
Test / test (push) Failing after 1m56s
Test / build (push) Skipped

This commit is contained in:
2026-08-13 17:41:16 +02:00
parent 3bc7c18bc3
commit 31a2cee382
5 changed files with 85 additions and 25 deletions
+19
View File
@@ -0,0 +1,19 @@
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
// SPDX-License-Identifier: BSD-3-Clause
#include "textflag.h"
TEXT ·movimm(SB), NOSPLIT, $0
MOV $0, X10
MOV $5, X10
MOV $42, X10
MOV $-1, X10
MOV $-2048, X10
MOV $-2049, X10
MOV $2047, X10
MOV $2048, X10
MOV $4095, X10
MOV $-4096, X10
MOV $0x12345, X10
MOV $2147483647, X10
RET