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

            Bug ID: 80742
           Summary: attribute target no- does not work
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andi-gcc at firstfloor dot org
  Target Milestone: ---

Disabling ISAs with attribute target doesn't seem to work on x86_64

e.g. 

typedef float __m128 __attribute__ ((vector_size (16)));

__attribute__((target("no-sse2"))) __m128 func (__m128 x, __m128 y)
{
    __m128 xmm0 = x, xmm1 = y, xmm2;
    xmm0 = __builtin_ia32_xorps (xmm1, xmm1);
    return xmm0;
}

does not error out.

Reply via email to