https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90129

Thiago Macieira <thiago at kde dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thiago at kde dot org

--- Comment #3 from Thiago Macieira <thiago at kde dot org> ---
Another test:

$ cat test.c
#include <immintrin.h>

__attribute__((target("arch=haswell")))
int hsw_test32(float f)
{
    __m128 m = _mm_set_ss(f);
    m = _mm_cmpeq_ss(m, m);
    return _mm_movemask_ps(m);
}
$ gcc -c test.c 
In file included from
/usr/lib64/gcc/x86_64-suse-linux/10/include/immintrin.h:29,
                 from test.c:1:
test.c: In function ‘hsw_test32’:
/usr/lib64/gcc/x86_64-suse-linux/10/include/xmmintrin.h:814:1: error: inlining
failed in call to ‘always_inline’ ‘_mm_movemask_ps’: target specific option
mismatch
[...]
$ clang -c test.c && echo No error
No error
$ gcc -march=haswell -c test.c && echo No error
No error

Reply via email to