Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx512fp16vl-conjugation-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512fp16 -mavx512vl -mavx512dq" } */
3
4 #include <immintrin.h>
5 __m256h
6 __attribute__ ((noinline, noclone))
7 test_mm256_conj_pch (__m256h __A)
8 {
9 return _mm256_conj_pch (__A);
10 }
11
12 /* { dg-final { scan-assembler-times "vpxor\[^\n\]*%ymm\[0-9\]+" 3 } } */
13
14 __m128h
15 __attribute__ ((noinline, noclone))
16 test_mm_conj_pch (__m128h __A)
17 {
18 return _mm_conj_pch (__A);
19 }
20
21 /* { dg-final { scan-assembler-times "vpxor\[^\n\]*%xmm\[0-9\]+" 3 } } */
22
23 __m256h
24 __attribute__ ((noinline, noclone))
25 test_mm256_mask_conj_pch (__m256h __W, __mmask8 __U, __m256h __A)
26 {
27 return _mm256_mask_conj_pch (__W, __U, __A);
28 }
29
30 /* { dg-final { scan-assembler-times "vmovaps\[^\n\]*%ymm\[0-9\]+" 2 } } */
31
32 __m128h
33 __attribute__ ((noinline, noclone))
34 test_mm_mask_conj_pch (__m128h __W, __mmask8 __U, __m128h __A)
35 {
36 return _mm_mask_conj_pch (__W, __U, __A);
37 }
38
39 /* { dg-final { scan-assembler-times "vmovaps\[^\n\]*%xmm\[0-9\]+" 2 } } */
40
41 __m256h
42 __attribute__ ((noinline, noclone))
43 test_mm256_maskz_conj_pch (__mmask8 __U, __m256h __A)
44 {
45 return _mm256_maskz_conj_pch (__U, __A);
46 }
47 /* { dg-final { scan-assembler-times "vmovaps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
48
49 __m128h
50 __attribute__ ((noinline, noclone))
51 test_mm_maskz_conj_pch (__mmask8 __U, __m128h __A) {
52 return _mm_maskz_conj_pch (__U, __A);
53 }
54
55 /* { dg-final { scan-assembler-times "vmovaps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */