compiling instrinstics
Ian Lance Taylor
iant@google.com
Mon Feb 5 20:21:00 GMT 2007
ranjith kumar <ranjit_kumar_b4u@yahoo.co.uk> writes:
> I know xmmintrin.h header file provides functions
> called intrinstics to exploit simd features of a
> processor.
> Can anyone tell at which compilation phase (of gcc),
> each of those intrinstics(functions) is replaced by a
> single assembly instruction.
When the tree data structure is expanded into RTL, each call to a
recognized intrinsic function is replaced with one or more RTL
instructions. A single RTL instruction roughly corresponds to a
single assembly language instruction.
(This answer only applies to gcc 4.0 and later).
Ian
More information about the Gcc-help
mailing list