blob: 992364af6d80d4c215c8d134ad363e9a4dad632b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* { dg-do compile } */
/* { dg-options "-O2 -march=x86-64 -mavx10.1" } */
/* { dg-warning "'-mavx10.1' is aliased to 512 bit since GCC14.3 and GCC15.1 while '-mavx10.1-256' and '-mavx10.1-512' will be deprecated in GCC 16 due to all machines 512 bit vector size supported" "" { target *-*-* } 0 } */
#include <immintrin.h>
int
foo (int c)
{
register int a __asm ("k7") = c;
int b = foo (a);
asm volatile ("" : "+k" (b));
return b;
}
|