2 * Copyright (C) 2013-2019 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
31 #define jit_r(i) (_G2 + (i))
33 #define jit_v(i) (_L0 + (i))
36 # define jit_f(i) (_F0 + ((i) << 1))
37 # define jit_f_num() 8
39 # define jit_f(i) (_F32 - (i))
40 # define jit_f_num() 16
53 _G0, _G1, _G2, _G3, _G4, _G5, _G6, _G7,
54 _O0, _O1, _O2, _O3, _O4, _O5, _SP, _O7,
55 _L0, _L1, _L2, _L3, _L4, _L5, _L6, _L7,
56 _I0, _I1, _I2, _I3, _I4, _I5, _FP, _I7,
66 _F0, _F1, _F2, _F3, _F4, _F5, _F6, _F7,
67 _F8, _F9, _F10, _F11, _F12, _F13, _F14, _F15,
69 /* All single precision operations have a high cost due to being
70 * stored on registers only encodable as double precision.
71 * The cost is due to needing to move values to a register with
73 * This is a limitation due to using fixed named registers in
91 _F62, _F60, _F58, _F56, _F54, _F52, _F50, _F48,
92 _F46, _F44, _F42, _F40, _F38, _F36, _F34, _F32,
93 _F31, _F30, _F29, _F28, _F27, _F26, _F25, _F24,
94 _F23, _F22, _F21, _F20, _F19, _F18, _F17, _F16,
95 _F15, _F14, _F13, _F12, _F11, _F10, _F9, _F8,
96 _F7, _F6, _F5, _F4, _F3, _F2, _F1, _F0,
98 #define JIT_NOREG _NOREG
102 #endif /* _jit_sparc_h */