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]

Re: [PATCH] m32r-*-as For a code depended for host word size.


> No need - I have checked this patch in and attributed it to Andreas.

Thanks Nick,

I checked your committed patch. But It's not so good.

I think Andreas meant the attached patch.

Regards,

Kazuhiro Inaoka
Index: m32r.opc
===================================================================
RCS file: /cvs/src/src/cpu/m32r.opc,v
retrieving revision 1.8
diff -u -r1.8 m32r.opc
--- m32r.opc	18 Oct 2005 07:53:17 -0000	1.8
+++ m32r.opc	18 Oct 2005 08:55:24 -0000
@@ -180,9 +180,7 @@
       if (errmsg == NULL
 	  && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
         {
-	  value &= 0xffff;
-          if (value & 0x8000)
-	    value = ((value & 0xffff) ^ 0x8000) - 0x8000;
+	  value = ((value & 0xffff) ^ 0x8000) - 0x8000;
 	}
       *valuep = value;
       return errmsg;

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