fix(asm): materialise large RISC-V immediates

Assisted-by: DeepSeek V4 Pro
This commit is contained in:
2026-08-13 16:04:08 +02:00
parent f0512a4e1c
commit 3bc7c18bc3
4 changed files with 137 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
// SPDX-License-Identifier: BSD-3-Clause
#include "textflag.h"
TEXT ·largeimm(SB), NOSPLIT, $0
ADDI $2048, X5
ADDI $4095, X5, X6
ANDI $4095, X5, X6
ORI $-4096, X5, X6
XORI $0x12345, X5, X6
RET