PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr78419.c
blob0f2431bef20cf8b727322df46424cfb56b4a9994
1 /* PR middle-end/78419 */
2 /* { dg-do compile } */
3 /* { dg-require-ifunc "" } */
5 static double bar (double *__restrict, double *__restrict, int)
6 __attribute__ ((target_clones("avx,foo,avx2,avx512f,default")));
8 double
9 foo (double *__restrict a, double *__restrict b, int n)
11 return bar (a,b,n);
14 double
15 bar (double *__restrict a, double *__restrict b, int n) /* { dg-error "attribute\[^\n\r]*foo\[^\n\r]* is unknown" } */
17 double s;
18 int i;
19 s = 0.0;
20 for (i=0; i<n; i++)
21 s += a[i] + b[i];
23 return s;