public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/14084] New: Reg allocator changes REG_EXPR
@ 2004-02-09 14:10 zlomek at gcc dot gnu dot org
  2004-02-09 14:12 ` [Bug middle-end/14084] " zlomek at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: zlomek at gcc dot gnu dot org @ 2004-02-09 14:10 UTC (permalink / raw)
  To: gcc-bugs

On ppc64 and probably all 64-bit big endian machines
global register allocator IMHO wrongly changes REG_EXPR of an "int" variable
stored in 64-bit when compiling attached testcase (even at -O0).

In the following example, repcount is a 32-bit "int" variable,
subreg:SI (reg:DI 118 [ repcount ]) 4)) is changed into
(reg:SI 0 0 [orig:118 repcount+4 ] [118]))

Note that repcount is only 4 bytes wide so offset 4 makes no sense.

lreg:

(insn 4 3 5 0 (set (reg:SI 119 [ repcount ])
        (subreg:SI (reg:DI 118 [ repcount ]) 4)) 303 {*movsi_internal1} (nil)
    (expr_list:REG_DEAD (reg:DI 118 [ repcount ])
        (nil))) 
                
greg:

(insn 4 3 5 0 (set (reg:SI 0 0 [orig:119 repcount ] [119])
        (reg:SI 0 0 [orig:118 repcount+4 ] [118])) 303 {*movsi_internal1} (nil)
    (nil))

This makes variable tracking think that there are two parts of that variable.

-- 
           Summary: Reg allocator changes REG_EXPR
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zlomek at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc64-unknown-linux
  GCC host triplet: powerpc64-unknown-linux
GCC target triplet: powerpc64-unknown-linux


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-06-05 14:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-09 14:10 [Bug middle-end/14084] New: Reg allocator changes REG_EXPR zlomek at gcc dot gnu dot org
2004-02-09 14:12 ` [Bug middle-end/14084] " zlomek at gcc dot gnu dot org
2004-02-09 16:40 ` pinskia at gcc dot gnu dot org
2004-02-09 16:44 ` zlomj9am at artax dot karlin dot mff dot cuni dot cz
2004-02-09 16:49 ` pinskia at gcc dot gnu dot org
2004-02-09 17:06 ` zlomek at gcc dot gnu dot org
2004-02-14 19:46 ` [Bug middle-end/14084] Reg allocator incorrectly changes REG_OFFSET zlomek at gcc dot gnu dot org
2004-05-15 20:29 ` pinskia at gcc dot gnu dot org
2004-05-20 19:55 ` pinskia at gcc dot gnu dot org
2004-05-27 17:41 ` cvs-commit at gcc dot gnu dot org
2004-05-27 17:42 ` pinskia at gcc dot gnu dot org
2004-05-27 17:42 ` zlomek at gcc dot gnu dot org
2004-06-05 14:11 ` cvs-commit 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).