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

Kazuhiro Inaoka inaoka.kazuhiro@renesas.com
Wed Oct 26 06:21:00 GMT 2005


That's OK.

Thanks,
Kazuhiro Inaoka

Alan Modra wrote:

>On Wed, Oct 26, 2005 at 02:39:35PM +0900, Kazuhiro Inaoka wrote:
>  
>
>>This patch is to fix FAIL at testsuite/gas/m32r/seth on x86_64 host.
>>    
>>
>
>Should high() be treated the same, as follows?
>
>Index: cpu/m32r.opc
>===================================================================
>RCS file: /cvs/src/src/cpu/m32r.opc,v
>retrieving revision 1.9
>diff -u -p -r1.9 m32r.opc
>--- cpu/m32r.opc	19 Oct 2005 14:44:17 -0000	1.9
>+++ cpu/m32r.opc	26 Oct 2005 06:03:13 -0000
>@@ -127,7 +127,10 @@ parse_hi16 (CGEN_CPU_DESC cd,
>       ++*strp;
>       if (errmsg == NULL
>   	  && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
>-	value >>= 16;
>+	{
>+	  value >>= 16;
>+	  value &= 0xffff;
>+	}
>       *valuep = value;
>       return errmsg;
>     }
>@@ -142,8 +145,9 @@ parse_hi16 (CGEN_CPU_DESC cd,
>       if (errmsg == NULL
> 	  && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
>         {
>-          value = value + (value & 0x8000 ? 0x10000 : 0);
>+          value += 0x8000;
>           value >>= 16;
>+          value &= 0xffff;
>         }
>       *valuep = value;
>       return errmsg;
>
>  
>



More information about the Binutils mailing list