Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx10_2-512-bf16-vector-cmp-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=x86-64-v3 -mavx10.2 -O2 -mprefer-vector-width=512" } */
3 /* { dg-final { scan-assembler-times "vcmpbf16" 5 } } */
4
5 typedef __bf16 v32bf __attribute__ ((__vector_size__ (64)));
6
7 #define VCMPMN(type, op, name) \
8 type \
9 __attribute__ ((noinline, noclone)) \
10 vec_cmp_##type##type##name (type a, type b) \
11 { \
12 return a op b; \
13 }
14
15 VCMPMN (v32bf, <, lt)
16 VCMPMN (v32bf, <=, le)
17 VCMPMN (v32bf, >, gt)
18 VCMPMN (v32bf, >=, ge)
19 VCMPMN (v32bf, ==, eq)