+2004-03-30 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
+
+ * cpu/m32r.opc (parse_hi16): Fixed shigh(0xffff8000) bug.
+
2004-03-22 Dave Brolley <brolley@redhat.com>
* utils.scm (copyright-fsf): Update copyright years.
/* M32R opcode support. -*- C -*-
- Copyright (C) 2000, 2001 Red Hat, Inc.
+ Copyright (C) 2000, 2001, 2004 Red Hat, Inc.
This file is part of CGEN. */
/* This file is an addendum to m32r.cpu. Heavy use of C code isn't
<arch>-opc.c additions use: "-- opc.c"
<arch>-asm.c additions use: "-- asm.c"
<arch>-dis.c additions use: "-- dis.c"
- <arch>-ibd.h additions use: "-- ibd.h"
-*/
+ <arch>-ibd.h additions use: "-- ibd.h" */
\f
/* -- opc.h */
++*strp;
if (errmsg == NULL
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
- value = (value >> 16) + (value & 0x8000 ? 1 : 0);
+ {
+ value = value + (value & 0x8000 ? 0x10000 : 0);
+ value >>= 16;
+ }
*valuep = value;
return errmsg;
}