Re: PowerPC code gen question

2006-11-16 Thread David Edelsohn
> Michael Eager writes: Michael> Can someone explain to me why FP regs should contain int values? Michael> Is this to support the fcfid conversion instruction? Yes, for FP conversion instructions. Michael> What keeps FP regs from being used to contain integer values? Nothin

PowerPC code gen question

2006-11-16 Thread Michael Eager
rs6000.c contains the following: rs6000_hard_regno_mode_ok (int regno, enum machine_mode mode) { . . . /* The float registers can only hold floating modes and DImode. */ if (FP_REGNO_P (regno)) return (GET_MODE_CLASS (mode) == MODE_FLOAT && FP_REGNO_P (regno + HARD_REGNO_