fix(asm): materialise large RISC-V immediates
Assisted-by: DeepSeek V4 Pro
This commit is contained in:
Vendored
+12
@@ -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
|
||||
Reference in New Issue
Block a user