[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: offset calculation bug(?) in GNU as 2.13.2.1 for v850e
From: |
Miles Bader |
Subject: |
Re: offset calculation bug(?) in GNU as 2.13.2.1 for v850e |
Date: |
15 Jul 2003 11:08:48 +0900 |
Alan Modra <address@hidden> writes:
> As it is the code is fairly obviously wrong for the testcase. I'm not
> familiar enough with v850 assembly to know whether replacing the 1 with
> a 0 is correct, but that would be my guess.
Unfortunately I'm not familiar enough with gas to tell either, but ...
> No, that breaks branches. Try
> (operand->flags & V850_OPERAND_DISP) != 0
I tried this and it fixed my problem! I also recompiled the entire
linux kernel using the fixed gas, and compared disassemblies, and there
seem to be no regressions caused by this change (I think linux is a
better test than most because it uses a fair amount of embedded
assembly).
So ... looks reasonable to me.
Are you in a position to apply/send a patch, or do you want me to do
something?
Thanks very much,
-Miles
--
"Whatever you do will be insignificant, but it is very important that
you do it." Mahatma Ghandi