Files
gasm-sdk/testdata/add_riscv64.s
T

13 lines
286 B
ArmAsm
Raw Normal View History

// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
// SPDX-License-Identifier: BSD-3-Clause
#include "textflag.h"
// func add(a, b int64) int64
TEXT ·add(SB), NOSPLIT, $0-24
LD a+0(FP), A0
LD b+8(FP), A1
ADD A0, A1, A0
SD A0, ret+16(FP)
RET