2 * Copyright (C) 2023 Free Software Foundation, Inc.
4 * This file is part of GNU lightning.
6 * GNU lightning is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; either version 3, or (at your option)
11 * GNU lightning is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 * License for more details.
17 * Paulo Cesar Pereira de Andrade
20 #ifndef _jit_loongarch_h
21 #define _jit_loongarch_h
29 #define jit_r(i) (_T0 - (i))
39 _T8, _T7, _T6, _T5, _T4, _T3, _T2, _T1, _T0,
41 #define jit_v(i) (_S0 - (i))
51 _S8, _S7, _S6, _S5, _S4, _S3, _S2, _S1, _S0,
52 _A7, _A6, _A5, _A4, _A3, _A2, _A1, _A0,
59 _FT0, _FT1, _FT2, _FT3, _FT4, _FT5, _FT6, _FT7,
60 _FT8, _FT9, _FT10, _FT11, _FT12, _FT13, _FT14, _FT15,
61 _FA7, _FA6, _FA5, _FA4, FA3, _FA2, _FA1, _FA0,
63 #define jit_f(i) (_FS0 - (i))
72 _FS7, _FS6, _FS5, _FS4, _FS3, _FS2, _FS1, _FS0,
73 #define JIT_NOREG _NOREG
77 #endif /* _jit_loongarch_h */