2 /* { dg-options "-O3 --save-temps -fno-inline" } */
4 extern void abort (void);
9 movi_msl8 (int *__restrict a
)
13 /* { dg-final { scan-assembler "movi\\tv\[0-9\]+\.\[42\]s, 0xab, msl 8" } } */
14 for (i
= 0; i
< N
; i
++)
19 movi_msl16 (int *__restrict a
)
23 /* { dg-final { scan-assembler "movi\\tv\[0-9\]+\.\[42\]s, 0xab, msl 16" } } */
24 for (i
= 0; i
< N
; i
++)
29 mvni_msl8 (int *__restrict a
)
33 /* { dg-final { scan-assembler "mvni\\tv\[0-9\]+\.\[42\]s, 0xab, msl 8" } } */
34 for (i
= 0; i
< N
; i
++)
39 mvni_msl16 (int *__restrict a
)
43 /* { dg-final { scan-assembler "mvni\\tv\[0-9\]+\.\[42\]s, 0xab, msl 16" } } */
44 for (i
= 0; i
< N
; i
++)
49 movi_float_lsl24 (float * a
)
53 /* { dg-final { scan-assembler {\tmovi\tv[0-9]+\.[42]s, 0x43, lsl 24\n} } } */
54 for (i
= 0; i
< N
; i
++)
65 #define CHECK_ARRAY(a, val) \
66 for (i = 0; i < N; i++) \
71 CHECK_ARRAY (a
, 0xabff);
74 CHECK_ARRAY (a
, 0xabffff);
77 CHECK_ARRAY (a
, 0xffff5400);
80 CHECK_ARRAY (a
, 0xff540000);
83 CHECK_ARRAY (b
, 128.0);