This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: REG_CLASS_CONTENTS, >32 registers and 64-bit hosts
- From: Richard Henderson <rth at redhat dot com>
- To: Marek Michalkiewicz <marekm at amelek dot gda dot pl>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 10 Jul 2002 09:00:05 -0700
- Subject: Re: REG_CLASS_CONTENTS, >32 registers and 64-bit hosts
- References: <E17RdEJ-0003pg-00@alf.amelek.gda.pl>
On Mon, Jul 08, 2002 at 08:27:23PM +0200, Marek Michalkiewicz wrote:
> STACK_POINTER_REGNUM is 32 (so it's bit 0 of the second value in the
> REG_CLASS_CONTENTS initializer), and without the small patch below,
> test_hard_reg_class (STACK_REG, X) returns false when it should
> return true (because X is the stack pointer register), resulting
> in assembler errors.
How odd. HOST_WIDE_INT should be "unsigned long" and therefore
64-bits, which should work find with the REG_CLASS_CONTENTS.
Do you have a specific example? I could try it on one of my alphas.
r~