Debian Codegraph @

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

raw
1 /* { dg-do compile { target { ! ia32 } } } */
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 void
8 f1 ()
9 {
10 register __m256d a __asm ("ymm17");
11 register __m256d b __asm ("ymm16");
12 a = _mm256_add_pd (a, b);
13 asm volatile ("" : "+v" (a));
14 }
15
16 void
17 f2 ()
18 {
19 register __m128d a __asm ("xmm17");
20 register __m128d b __asm ("xmm16");
21 a = _mm_add_pd (a, b);
22 asm volatile ("" : "+v" (a));
23 }