[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Re: pcc arm ++
From: Havard Eidnes <he () uninett ! no>
Date: 2008-03-19 22:51:58
Message-ID: 20080319.235158.74731145.he () uninett ! no
[Download RAW message or body]
Hi,
I tried the 18 Mar bits, and it appears that one of the
instructions for arm are mis-encoded in table.c; gas didn't
appreciate being passed "neg r2,r2". More arm-knowledgeable
folks tell me that should be "rsb r2,r2,#0" instead. So:
--- arch/arm/table.c.orig 2008-03-07 03:42:16.000000000 +0100
+++ arch/arm/table.c
@@ -1704,7 +1704,7 @@ struct optab table[] = {
SAREG, TWORD|TPOINT|TSHORT|TUSHORT|TCHAR|TUCHAR,
SAREG, TWORD|TPOINT|TSHORT|TUSHORT|TCHAR|TUCHAR,
NAREG|NASL, RESC1,
- " neg A1,AL" COM "negation\n", },
+ " rsb A1,AL,#0" COM "negation\n", },
{ UMINUS, INBREG,
SBREG, TLONGLONG|TULONGLONG,
Please someone sufficiently knowledgeable double-check the order
of A1 and AL in that specification.
Regards,
- Havard
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic