[Bug target/80742] attribute target no- does not work
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 15 12:32:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80742
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2017-05-15
CC| |marxin at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Even setting -mno-sse2 does not cause error. However this works as expected:
$ cat ~/Programming/testcases/pr80742.c && ./xgcc -B.
~/Programming/testcases/pr80742.c
typedef float __m128 __attribute__ ((vector_size (16)));
__attribute__((target("no-sse"))) __m128 func (__m128 x, __m128 y)
{
__m128 xmm0 = x, xmm1 = y, xmm2;
xmm0 = __builtin_ia32_xorps (xmm1, xmm1);
return xmm0;
}
/home/marxin/Programming/testcases/pr80742.c: In function ‘func’:
/home/marxin/Programming/testcases/pr80742.c:5:1: error: SSE register return
with SSE disabled
{
^
Negative meaning of option is definitely supported. That said, may I close the
PR?
More information about the Gcc-bugs
mailing list