bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/25184] or1k gas errors on any backwards jump on 32-bit host


From: shorne at sourceware dot org
Subject: [Bug gas/25184] or1k gas errors on any backwards jump on 32-bit host
Date: Mon, 02 Dec 2019 21:42:52 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25184

Stafford Horne <shorne at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shorne at sourceware dot org

--- Comment #1 from Stafford Horne <shorne at sourceware dot org> ---
I have reproduced this.  There are a few issues here:

  1. One reason for the truncations seems to be related to including 64-bit and
32-bit targets in the OR1K architecture definitions.  If I remove the 64-bit
bit definitions everything seems to work fine.
  2. The other reason is that the PC Address type is 'unsigned int'.  Doing the
computation of ((int)value - (unsigned int)pc)  results in an unsigned int.  We
want for PC to be casted to a signed int, However it seems CGEN doesn't support
that.  It may required a patch to cgen.

My thought it to remove the 64-bit definitions, we don't really use them (2-
lines).  If we need it we can add them back as a separate architecture.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]