Debian Codegraph @

gcc/testsuite/g++.target/i386/pr102639.C

raw
1 /* PR target/102639 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -std=c++14 -mavx512fp16" } */
4 /* { dg-final { scan-assembler-times "vminsh" 1 } } */
5
6 typedef _Float16 v16hf __attribute__((vector_size(2)));
7 v16hf vcond_v16hfv16hfge_b, vcond_v16hfv16hfge_c, vcond_v16hfv16hfge_d,
8 __attribute__vcond_v16hfv16hfge_a;
9 v16hf __attribute__vcond_v16hfv16hfge() {
10 return __attribute__vcond_v16hfv16hfge_a >= vcond_v16hfv16hfge_b
11 ? vcond_v16hfv16hfge_c
12 : vcond_v16hfv16hfge_d;
13 }
14
15 v16hf __attribute__vcond_v16hfv16hfmax() {
16 return __attribute__vcond_v16hfv16hfge_a < vcond_v16hfv16hfge_b
17 ? __attribute__vcond_v16hfv16hfge_a
18 : vcond_v16hfv16hfge_b;
19 }