aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-03-19 18:29:14 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-03-19 18:29:14 +0000
commite493ab45b14a1970aa89dedd408aaf12645a278b (patch)
treec0c1dc1d20070197fd469a1948008ecf519d1539 /opcodes
parentcabd4ccc81f3c5bd0fb1f40306139b2cdc45b258 (diff)
downloadfsf-binutils-gdb-e493ab45b14a1970aa89dedd408aaf12645a278b.zip
fsf-binutils-gdb-e493ab45b14a1970aa89dedd408aaf12645a278b.tar.gz
fsf-binutils-gdb-e493ab45b14a1970aa89dedd408aaf12645a278b.tar.bz2
2005-03-19 H.J. Lu <hongjiu.lu@intel.com>
* mmix-opc.c (O): Use 24UL instead of 24 for unsigned long. (Z): Likewise.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/mmix-opc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 192c47b..53a23fe 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-19 H.J. Lu <hongjiu.lu@intel.com>
+
+ * mmix-opc.c (O): Use 24UL instead of 24 for unsigned long.
+ (Z): Likewise.
+
2005-03-19 Hans-Peter Nilsson <hp@bitrange.com>
* mmix-opc.c (O, Z): Force expression as unsigned long.
diff --git a/opcodes/mmix-opc.c b/opcodes/mmix-opc.c
index 0298818..ecd3cb4 100644
--- a/opcodes/mmix-opc.c
+++ b/opcodes/mmix-opc.c
@@ -67,11 +67,11 @@ const struct mmix_spec_reg mmix_spec_regs[] =
/* All bits in the opcode-byte are significant. Add "| ..." expressions
to add zero-bits. */
#undef O
-#define O(m) ((unsigned long) (m) << 24UL), ((~(unsigned long) (m) & 255) << 24)
+#define O(m) ((unsigned long) (m) << 24UL), ((~(unsigned long) (m) & 255) << 24UL)
/* Bits 7..1 of the opcode are significant. */
#undef Z
-#define Z(m) ((unsigned long) (m) << 24), ((~(unsigned long) (m) & 254) << 24)
+#define Z(m) ((unsigned long) (m) << 24UL), ((~(unsigned long) (m) & 254) << 24UL)
/* For easier overview of the table. */
#define N mmix_type_normal