This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/14084] Reg allocator changes REG_EXPR


------- Additional Comments From zlomek at gcc dot gnu dot org  2004-02-09 17:06 -------
> I see the problem here:
> (subreg/s:SI (reg/v:DI 118 [ repcount ]) 4)
> is changed to
> (reg:SI 30 [orig:118 repcount+4 ] [118])

Maybe I did not make myself clear.
IMHO the problem is that REG_EXPR is changed, i.e. [ repcount ] is changed to [
repcount+4 ]. 
If it it correct to have there [repcount+4] (because of the SImode) then it is
not correct following insn because repcount also has SImode but "repcount" in
REG_EXPR:

(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))



-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]