Select instruction support in GCC

Ian Lance Taylor iant@google.com
Tue Oct 24 17:09:00 GMT 2006


Nikolaos Kavvadias <nkavv@physics.auth.gr> writes:

> 1. How should I code the pattern for a SELECT instruction in an *.md file?

Add movMODEcc instructions.  See the docs.

> 2. Does any available backend define (and is able to match) something
> like a conditional move?

Yes, several.  E.g., i386 movsicc and movdicc, MIPS mov<mode>cc, etc.

> 3. Should I devise a peephole pattern for matching SELECT constructs?

That shouldn't be necessary.

Ian



More information about the Gcc-help mailing list