2 /* { dg-skip-if "Don't inline memset using neon instructions" { ! arm_tune_string_ops_prefer_neon } } */
3 /* { dg-options "-save-temps -O2 -fno-inline" } */
4 /* { dg-add-options "arm_neon" } */
35 check (signed char *arr
, int idx
, int len
, int v
)
38 for (i
= 0; i
< idx
; i
++)
42 for (i
= idx
; i
< len
; i
++)
51 check ((signed char *)a
, 20, sizeof (a
), -1);
54 check ((signed char *)b
, 24, sizeof (b
), 1);
57 check ((signed char *)c
, 32, sizeof (c
), -1);
62 /* { dg-final { scan-assembler-not "bl?\[ \t\]+memset" { target { arm_little_endian && arm_neon } } } } */
63 /* { dg-final { scan-assembler-times "vst1" 3 { target { arm_little_endian && arm_neon } } } } */
64 /* { dg-final { scan-assembler-times "vstr" 4 { target { arm_little_endian && arm_neon } } } } */