I need a hard register for a define_insn output. I have had issues before when using clobber in a define_insn pattern; I will give it another try. Is there an example I can be pointed to where a temporary hard register is obtained via secondary reload ? On Mon, Apr 27, 2015 at 11:39 AM, Jeff Law <law@xxxxxxxxxx> wrote: > On 04/27/2015 10:30 AM, ftwilliam wrote: >> >> Is there a function that can be used to obtain a temporary hard >> register without defining it in FIXED_REGISTERS and >> CALL_USED_REGISTERS ? > > For what purpose? > > If you need a scratch/temporary for reload, the way to get them is via > secondary reloads. > > If you just need a scratch register for a pattern, you can allocate a pseudo > in an expander and clobber it in the pattern. > > You can also use match_scratch. Though you might invite Vladimir's wrath > for doing that. > > Jeff >