Files
gasm-sdk/testdata/verify/movimm_riscv64.s
T
petrbalvin 31a2cee382
Test / vet (push) Successful in 44s
Test / test (push) Failing after 1m56s
Test / build (push) Skipped
fix(asm): materialise RISC-V MOV immediates
2026-08-13 17:41:16 +02:00

20 lines
383 B
ArmAsm

// 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