This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
allocate new register in find_auto_inc
- From: Jonah Graham <gccmail at whalesolutions dot ca>
- To: gcc at gcc dot gnu dot org
- Cc: gccmail at whalesolutions dot ca
- Date: Thu, 14 Nov 2002 09:48:04 -0500 (EST)
- Subject: allocate new register in find_auto_inc
Can someone give me advice on how to allocate a new register during life analysis, specifically in find_auto_inc? I am working on an arch with no HAVE_POST_MODIFY_DISP but with HAVE_POST_MODIFY_REG. What I would like to do is load the immediate into the newly created register and then attempt_auto_inc.
I have tried using gen_reg_rtx() but that causes the compiler to ICE. I have also looked through some of the source code to try to figure out what I needed to do to create a register, but I got a little confused.
Any help would be greatly appreciated.
Thanks,
Jonah