Debian Codegraph @

gcc/testsuite/gcc.target/i386/sse2-extendbf2sf.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-msse2 -O2 -ffast-math" } */
3 /* { dg-final { scan-assembler-times {(?n)(?:vpermi2w|punpcklwd)} 2 { target { ! ia32 } } } } */
4
5 typedef float v2sf __attribute__((vector_size(8)));
6 typedef __bf16 v2bf __attribute__((vector_size(4)));
7
8 v2sf
9 foo (v2bf b, v2bf a)
10 {
11 return __builtin_convertvector (a, v2sf);
12 }
13
14
15 v2sf
16 foo_mem (v2bf* a)
17 {
18 return __builtin_convertvector (*a, v2sf);
19 }
20