// Assume __v4sf is defined by the compiler
pragma(set_attribute, _mm_add_ps, always_inline, artificial);
__v4sf _mm_add_ps (__v4sf __A, __v4sf __B)
{
    return __builtin_ia32_addps(__A, __B);
}

2 notes:
Isn't it pragma(GNU_set_attribute?

And you should be able to do
pragma(GNU_attribute, always_inline, artificial)
__v4sf _mm_add_ps....

as well.

Reply via email to