Debian Codegraph @

gcc/testsuite/g++.target/i386/vect-bfloat16-1.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512fp16 -mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vpblendmw" 1 } } */
4
5 typedef short v8hi __attribute__((vector_size(16)));
6 typedef __bf16 v8bf __attribute__((vector_size(16)));
7
8 v8bf
9 foo (v8hi a, v8hi b, v8bf c, v8bf d)
10 {
11 return a > b ? c : d;
12 }
13