This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc] Re: RTL templates names
> Hello,
> Thanks, I was not so sure about this.
> I have another question : Do I have to use define_insn for all templates
> known by the compiler ?
You are not obliged to define templates for all the standard names. The
compiler knows how to combine simpler insns to simulate complex ones. For
instance, if you don't define casesi (used for switch cases to use a dispatch
table) the compiler will generate a series of tests and jumps.
Of course, the basic insns (operands moving, basic arithmetic, comparisons and
jumps) will always be mandatory.
Alex.