Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx10_1-4.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=x86-64 -mavx10.1" } */
3 /* { 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 } */
4
5 #include <immintrin.h>
6
7 long long
8 foo (long long c)
9 {
10 register long long a __asm ("k7") = c;
11 long long b = foo (a);
12 asm volatile ("" : "+k" (b));
13 return b;
14 }