This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Committed: mmix-opc.c use macros for opcode values
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: binutils at sources dot redhat dot com
- Date: Sat, 13 Dec 2003 09:58:28 -0500 (EST)
- Subject: Committed: mmix-opc.c use macros for opcode values
I've had this in my tree for quite a while, testing combined
with gcc. Committed.
* mmix-opc.c (mmix_opcodes): Use GO_INSN_BYTE, PUSHGO_INSN_BYTE,
SETL_INSN_BYTE, INCH_INSN_BYTE, INCMH_INSN_BYTE, INCML_INSN_BYTE
and SWYM_INSN_BYTE instead of raw numbers.
Index: mmix-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/mmix-opc.c,v
retrieving revision 1.1
diff -p -c -r1.1 mmix-opc.c
*** mmix-opc.c 31 Oct 2001 02:40:19 -0000 1.1
--- mmix-opc.c 13 Dec 2003 14:48:22 -0000
***************
*** 1,5 ****
/* mmix-opc.c -- MMIX opcode table
! Copyright (C) 2001 Free Software Foundation, Inc.
Written by Hans-Peter Nilsson (hp@bitrange.com)
This file is part of GDB, GAS, and the GNU binutils.
--- 1,5 ----
/* mmix-opc.c -- MMIX opcode table
! Copyright (C) 2001, 2003 Free Software Foundation, Inc.
Written by Hans-Peter Nilsson (hp@bitrange.com)
This file is part of GDB, GAS, and the GNU binutils.
*************** const struct mmix_opcode mmix_opcodes[]
*** 227,233 ****
{"prego", Z (0x9c), OP (x_regs_z), N},
{"ldunc", Z (0x96), OP (regs_z_opt), MO},
! {"go", Z (0x9e), OP (regs_z_opt), B},
{"stb", Z (0xa0), OP (regs_z_opt), MB},
{"stt", Z (0xa8), OP (regs_z_opt), MT},
--- 227,234 ----
{"prego", Z (0x9c), OP (x_regs_z), N},
{"ldunc", Z (0x96), OP (regs_z_opt), MO},
! {"go", Z (GO_INSN_BYTE),
! OP (regs_z_opt), B},
{"stb", Z (0xa0), OP (regs_z_opt), MB},
{"stt", Z (0xa8), OP (regs_z_opt), MT},
*************** const struct mmix_opcode mmix_opcodes[]
*** 251,257 ****
{"syncid", Z (0xbc), OP (x_regs_z), M},
{"stunc", Z (0xb6), OP (regs_z_opt), MO},
! {"pushgo", Z (0xbe), OP (pushgo), J},
/* Synonym for OR with a zero Z. */
{"set", O (0xc1)
--- 252,259 ----
{"syncid", Z (0xbc), OP (x_regs_z), M},
{"stunc", Z (0xb6), OP (regs_z_opt), MO},
! {"pushgo", Z (PUSHGO_INSN_BYTE),
! OP (pushgo), J},
/* Synonym for OR with a zero Z. */
{"set", O (0xc1)
*************** const struct mmix_opcode mmix_opcodes[]
*** 287,302 ****
{"ormh", O (0xe9), OP (reg_yz), N},
{"setml", O (0xe2), OP (reg_yz), N},
! {"setl", O (0xe3), OP (reg_yz), N},
{"orml", O (0xea), OP (reg_yz), N},
{"orl", O (0xeb), OP (reg_yz), N},
! {"inch", O (0xe4), OP (reg_yz), N},
! {"incmh", O (0xe5), OP (reg_yz), N},
{"andnh", O (0xec), OP (reg_yz), N},
{"andnmh", O (0xed), OP (reg_yz), N},
! {"incml", O (0xe6), OP (reg_yz), N},
{"incl", O (0xe7), OP (reg_yz), N},
{"andnml", O (0xee), OP (reg_yz), N},
{"andnl", O (0xef), OP (reg_yz), N},
--- 289,308 ----
{"ormh", O (0xe9), OP (reg_yz), N},
{"setml", O (0xe2), OP (reg_yz), N},
! {"setl", O (SETL_INSN_BYTE),
! OP (reg_yz), N},
{"orml", O (0xea), OP (reg_yz), N},
{"orl", O (0xeb), OP (reg_yz), N},
! {"inch", O (INCH_INSN_BYTE),
! OP (reg_yz), N},
! {"incmh", O (INCMH_INSN_BYTE),
! OP (reg_yz), N},
{"andnh", O (0xec), OP (reg_yz), N},
{"andnmh", O (0xed), OP (reg_yz), N},
! {"incml", O (INCML_INSN_BYTE),
! OP (reg_yz), N},
{"incl", O (0xe7), OP (reg_yz), N},
{"andnml", O (0xee), OP (reg_yz), N},
{"andnl", O (0xef), OP (reg_yz), N},
*************** const struct mmix_opcode mmix_opcodes[]
*** 314,320 ****
{"geta", Z (0xf4), OP (regaddr), N},
{"sync", O (0xfc), OP (sync), N},
! {"swym", O (0xfd), OP (xyz_opt), N},
{"put", Z (0xf6) | 0xff00, OP (put), N},
{"get", O (0xfe) | 0xffe0, OP (get), N},
--- 320,327 ----
{"geta", Z (0xf4), OP (regaddr), N},
{"sync", O (0xfc), OP (sync), N},
! {"swym", O (SWYM_INSN_BYTE),
! OP (xyz_opt), N},
{"put", Z (0xf6) | 0xff00, OP (put), N},
{"get", O (0xfe) | 0xffe0, OP (get), N},
brgds, H-P