1 /* { dg-do assemble { target aarch64_asm_sve_ok } } */
2 /* { dg-options "-O -ftree-vectorize -march=armv8.2-a+sve --save-temps" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
13 ** lsr (z[0-9]+\.b), z[0-9]+\.b, #1
14 ** lsr (z[0-9]+\.b), z[0-9]+\.b, #1
15 ** add (z[0-9]+\.b), (\1, \2|\2, \1)
16 ** and (z[0-9]+)\.d, z[0-9]+\.d, z[0-9]+\.d
17 ** and (z[0-9]+\.b), \5\.b, #0x1
18 ** add z0\.b, (\3, \6|\6, \3)
24 for( int x
= 0; x
< N
; x
++ )
25 dst
[x
] = (in1
[x
] + in2
[x
]) >> 1;
28 /* { dg-final { scan-assembler-not {\tuunpklo\t} } } */
29 /* { dg-final { scan-assembler-not {\tuunpkhi\t} } } */