3
3
THIS FILE IS MACHINE GENERATED WITH CGEN.
5
Copyright 1996-2005 Free Software Foundation, Inc.
5
Copyright 1996-2010 Free Software Foundation, Inc.
7
7
This file is part of the GNU simulators.
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 3 of the License, or
12
(at your option) any later version.
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
19
You should have received a copy of the GNU General Public License
20
along with this program. If not, see <http://www.gnu.org/licenses/>.
9
This file is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 3, or (at your option)
14
It is distributed in the hope that it will be useful, but WITHOUT
15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17
License for more details.
19
You should have received a copy of the GNU General Public License along
20
with this program; if not, write to the Free Software Foundation, Inc.,
21
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
206
207
#define EXTRACT_IFMT_BF_COMPACT_CODE \
208
209
f_op8 = EXTRACT_MSB0_UINT (insn, 16, 0, 8); \
209
f_disp8 = ((((EXTRACT_MSB0_INT (insn, 16, 8, 8)) << (1))) + (((pc) + (4)))); \
210
f_disp8 = ((((EXTRACT_MSB0_SINT (insn, 16, 8, 8)) << (1))) + (((pc) + (4)))); \
211
212
#define EXTRACT_IFMT_BRA_COMPACT_VARS \
215
216
#define EXTRACT_IFMT_BRA_COMPACT_CODE \
217
218
f_op4 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
218
f_disp12 = ((((EXTRACT_MSB0_INT (insn, 16, 4, 12)) << (1))) + (((pc) + (4)))); \
219
f_disp12 = ((((EXTRACT_MSB0_SINT (insn, 16, 4, 12)) << (1))) + (((pc) + (4)))); \
220
221
#define EXTRACT_IFMT_BRAF_COMPACT_VARS \
365
366
f_rm = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
366
367
f_sub4 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
367
368
f_16_4 = EXTRACT_MSB0_UINT (insn, 32, 16, 4); \
368
f_imm12x8 = ((EXTRACT_MSB0_INT (insn, 32, 20, 12)) << (3)); \
369
f_imm12x8 = ((EXTRACT_MSB0_SINT (insn, 32, 20, 12)) << (3)); \
370
371
#define EXTRACT_IFMT_FMOV9_COMPACT_VARS \
384
385
f_11_1 = EXTRACT_MSB0_UINT (insn, 32, 11, 1); \
385
386
f_sub4 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
386
387
f_16_4 = EXTRACT_MSB0_UINT (insn, 32, 16, 4); \
387
f_imm12x8 = ((EXTRACT_MSB0_INT (insn, 32, 20, 12)) << (3)); \
388
f_imm12x8 = ((EXTRACT_MSB0_SINT (insn, 32, 20, 12)) << (3)); \
389
390
#define EXTRACT_IFMT_FTRV_COMPACT_VARS \
410
411
f_op4 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
411
412
f_rn = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
412
f_imm20_hi = EXTRACT_MSB0_INT (insn, 32, 8, 4); \
413
f_imm20_hi = EXTRACT_MSB0_SINT (insn, 32, 8, 4); \
413
414
f_imm20_lo = EXTRACT_MSB0_UINT (insn, 32, 16, 16); \
414
415
f_imm20 = ((((f_imm20_hi) << (16))) | (f_imm20_lo));\
415
416
f_sub4 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
473
474
f_rm = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
474
475
f_sub4 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
475
476
f_16_4 = EXTRACT_MSB0_UINT (insn, 32, 16, 4); \
476
f_imm12x4 = ((EXTRACT_MSB0_INT (insn, 32, 20, 12)) << (2)); \
477
f_imm12x4 = ((EXTRACT_MSB0_SINT (insn, 32, 20, 12)) << (2)); \
478
479
#define EXTRACT_IFMT_MOVW4_COMPACT_VARS \