2 * Copyright (C) 2012-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
23 #define JIT_HASH_CONSTS 1
24 #define JIT_NUM_OPERANDS 3
26 #if _MIPS_SIM != _ABIO32
37 #define jit_r(i) (_V0 + (i))
39 # define jit_r_num() 8
41 # define jit_r_num() 12
43 #define jit_v(i) (_S0 + (i))
45 #define jit_f(i) (_F0 + (i))
47 # define jit_f_num() 6
49 # define jit_f_num() 8
77 _T4, _T5, _T6, _T7, _T8, _T9,
86 _S0, _S1, _S2, _S3, _S4, _S5, _S6, _S7,
104 _F0, _F2, _F4, _F6, _F8, _F10,
105 /* callee save float registers */
109 _F20, _F22, _F24, _F26, _F28, _F30,
111 _F19, _F18, _F17, _F16, _F15, _F14, _F13, _F12,
115 #define JIT_NOREG _NOREG
120 jit_uint32_t release : 4;
121 /* set if lwc1, ldc1, swc1, sdc1, mtc1, mfc1, dmtc1, and dmfc1
122 * can be put in delay slot */
123 jit_uint32_t cop1_delay : 1;
124 /* set if sll can be put in delay slot */
125 jit_uint32_t sll_delay : 1;
126 /* set if lwl and lwr can be put in delay slot */
127 jit_uint32_t lwl_lwr_delay : 1;
128 /* generate special instructions for un{ld,st}*; ignored for mips 6
129 * that does not have unaligned load/store instructions. */
130 jit_uint32_t unaligned : 1;
136 extern jit_cpu_t jit_cpu;
138 #endif /* _jit_mips_h */