| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O -Wno-psabi" } */ |
| 3 |
|
| 4 |
#include <x86intrin.h> |
| 5 |
|
| 6 |
__attribute__((target ("no-avx"))) |
| 7 |
void |
| 8 |
foo (__m256 *x) |
| 9 |
{ |
| 10 |
x[0] = _mm256_sub_ps (x[1], x[2]); |
| 11 |
} |
| 12 |
|
| 13 |
/* { dg-error "target specific option mismatch" "" { target *-*-* } 0 } */ |