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 target/63762] [ARM]GCC generates UNPREDICTABLE STR with Rn = Rt when hard-float abi is used


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63762

--- Comment #4 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
(In reply to Renlin Li from comment #2)
> r278 is derived from r224 which is a VFP_LO_REGS.
> 
> find_cost_and_classes assigns r278's class as GENERAL_REGS, and assign it
> hard_reg 2. Another new pseudo register r290 is created from r278, and
> assigned to the same hard_register and register class (GENERAL_REGS).
> 
> The pref_class of r290 is derived from its original reg (r224), which is
> VFP_LO_REGS
> 
> In lra during the hard register assignment process, conflict is checked for
> r302 which is a GENERAL_REGS. r290 is not considered, because of different
> register classes(reg_pref[290].pref_class == VFP_LO_REGS ). Hard register
> number 2 is chosen in this case.

R2 should not be in VFP_LO_REGS - how does IRA end up choosing that ?


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