Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/general/perm_1.c

raw
1 /* { dg-options "-O2 -msve-vector-bits=256" } */
2
3 #include <arm_sve.h>
4 typedef svbfloat16_t vls_bfloat16_t __attribute__((arm_sve_vector_bits(32 * 8)));
5 svbfloat16_t foo(vls_bfloat16_t a, vls_bfloat16_t b)
6 {
7 svbfloat16_t zero = svreinterpret_bf16_f32 (svdup_n_f32 (0.0f));
8 return svzip2_bf16(zero, svuzp1_bf16(a,b));
9 }
10
11
12 /* { dg-final { scan-assembler-times {\tuzp1\t} 1 } } */
13 /* { dg-final { scan-assembler-times {\tzip2\t} 1 } } */
14 /* { dg-final { scan-assembler-not {\ttbl\t} } } */