1 /* { dg-do assemble { target { avx512bw && { avx512vl && { ! ia32 } } } } } */
2 /* { dg-options "-O2 -mavx512bw -mavx512vl" } */
3
4 #include <x86intrin.h>
5
6 void
f1(__m128i x,__m128i y)7 f1 (__m128i x, __m128i y)
8 {
9 register __m128i a __asm ("xmm16"), b __asm ("xmm17");
10 a = x; b = y;
11 asm volatile ("" : "+v" (a), "+v" (b));
12 a = _mm_madd_epi16 (a, b);
13 asm volatile ("" : "+v" (a));
14 }
15
16 void
f2(__m256i x,__m256i y)17 f2 (__m256i x, __m256i y)
18 {
19 register __m256i a __asm ("xmm16"), b __asm ("xmm17");
20 a = x; b = y;
21 asm volatile ("" : "+v" (a), "+v" (b));
22 a = _mm256_madd_epi16 (a, b);
23 asm volatile ("" : "+v" (a));
24 }
25