The documentation for builtin functions need a serious overhaul, trying to use several builtins as documented will result in the linker complaining about missing functions. As reference (I`m not sure how accurate this is) take this post: http://www.mail-archive.com/g...@gcc.gnu.org/msg03309.html
Also the correct alternative of using xmmintrin.h is mentioned nowhere in the documentation, neither the correct typedefs (or even which variation should be prefered). eg. defining v8qi as typedef uint_8 v8qi __attribute__ ((vector_size (8))); will result in errors with function requiring a 8*8 vector of integers. Its not obvious that you have to use typedef char v8qi __attribute__ ((vector_size (8))); instead -- Summary: Documentation for x86 builtins is outdated Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: npl at chello dot at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38836