This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

64-bit host failures, ms1


This one is fairly innocuous, just affecting disassmbly of constants,
but a 64-bit host hits
ms1-elf  +FAIL: ms2

cpu/
	* mt.opc (print_dollarhex): Trim values to 32 bits.
opcodes/
	* mt-dis.c: Regenerate.

Index: cpu/mt.opc
===================================================================
RCS file: /cvs/src/src/cpu/mt.opc,v
retrieving revision 1.5
diff -u -p -r1.5 mt.opc
--- cpu/mt.opc	2 Sep 2009 07:21:03 -0000	1.5
+++ cpu/mt.opc	26 Feb 2012 03:49:25 -0000
@@ -1,5 +1,5 @@
 /* Morpho Technologies mRISC opcode support, for GNU Binutils.  -*- C -*-
-   Copyright 2001, 2007, 2008, 2009 Free Software Foundation, Inc.
+   Copyright 2001, 2007, 2008, 2009, 2012 Free Software Foundation, Inc.
 
    Contributed by Red Hat Inc; developed under contract from
    Morpho Technologies.
@@ -447,7 +447,7 @@ print_dollarhex (CGEN_CPU_DESC cd ATTRIB
 {
   disassemble_info *info = (disassemble_info *) dis_info;
 
-  info->fprintf_func (info->stream, "$%lx", value);
+  info->fprintf_func (info->stream, "$%lx", value & 0xffffffff);
 
   if (0)
     print_normal (cd, dis_info, value, attrs, pc, length);
Index: opcodes/mt-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/mt-dis.c,v
retrieving revision 1.5
diff -u -p -r1.5 mt-dis.c
--- opcodes/mt-dis.c	12 Feb 2010 04:42:28 -0000	1.5
+++ opcodes/mt-dis.c	26 Feb 2012 03:50:09 -0000
@@ -72,7 +72,7 @@ print_dollarhex (CGEN_CPU_DESC cd ATTRIB
 {
   disassemble_info *info = (disassemble_info *) dis_info;
 
-  info->fprintf_func (info->stream, "$%lx", value);
+  info->fprintf_func (info->stream, "$%lx", value & 0xffffffff);
 
   if (0)
     print_normal (cd, dis_info, value, attrs, pc, length);

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]