public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/20695] New: sh64-*-* port deos not handle 32 / 64 bit conversions properly
@ 2005-03-30 19:14 amylaar at gcc dot gnu dot org
  2005-04-01 15:28 ` [Bug target/20695] " amylaar at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2005-03-30 19:14 UTC (permalink / raw)
  To: gcc-bugs

The sh64-*-* port plays fast and loos with the distinction between 32 and 64 bit
values.  In particular, it pretends a truncation from 64 to 32 bit is a no-op,
while a sign extension is needed, and that the sh5-32media and sh-compact
subtargets can expose the indexed addressing mode directly to the compiler,
which is wrong, too, since this addressing mode uses 64 bit arithmetic and
traps on all existing hardware if the result is not a valid 64 bit address.
On the other hand, sign extensions are usually no-ops.
Moreover, the target address of a branch should not be hardwired to DImode,
but always be Pmode.

The merge I am working on addresses all these issues, but it depends on all
LABEL_REFS to have Pmode; VOIDmode LABEL_REFs cause reload failures.

-- 
           Summary: sh64-*-* port deos not handle 32 / 64 bit conversions
                    properly
           Product: gcc
           Version: 3.0.4
            Status: UNCONFIRMED
          Keywords: wrong-code, missed-optimization
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: sh64-*-*
 BugsThisDependsOn: 20413


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20695


^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <bug-20695-5394@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-11-15 15:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-30 19:14 [Bug target/20695] New: sh64-*-* port deos not handle 32 / 64 bit conversions properly amylaar at gcc dot gnu dot org
2005-04-01 15:28 ` [Bug target/20695] " amylaar at gcc dot gnu dot org
2005-04-04 20:51 ` amylaar at gcc dot gnu dot org
2005-04-08 17:45 ` cvs-commit at gcc dot gnu dot org
2005-04-08 18:28 ` cvs-commit at gcc dot gnu dot org
2005-04-12 17:19 ` giovannibajo at libero dot it
2005-04-25 13:10 ` amylaar at gcc dot gnu dot org
2005-05-09 17:46 ` cvs-commit at gcc dot gnu dot org
2005-05-13 13:37 ` amylaar at gcc dot gnu dot org
2005-05-13 18:30 ` amylaar at gcc dot gnu dot org
2005-05-13 18:34 ` amylaar at gcc dot gnu dot org
2005-08-16 12:10 ` pinskia at gcc dot gnu dot org
     [not found] <bug-20695-5394@http.gcc.gnu.org/bugzilla/>
2005-10-24  3:14 ` pinskia at gcc dot gnu dot org
2006-11-15 15:57 ` amylaar at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).