1 /* PR rtl-optimization/57003 */
3 /* { dg-options "-O2" } */
6 unsigned short *b
, *c
, *d
;
8 __attribute__ ((noinline
, noclone
)) unsigned
11 asm volatile ("" : : : "memory");
15 __attribute__ ((noinline
, noclone
)) unsigned short *
18 if (x
!= N
* sizeof (unsigned short) + 20)
20 asm volatile ("" : : : "memory");
24 __attribute__ ((ms_abi
, noinline
, noclone
)) void
31 e
= baz (d
* sizeof (unsigned short) + 20);
32 __builtin_memcpy (e
, b
, d
* sizeof (unsigned short));
40 unsigned short a
[2 * N
];
42 for (i
= 0; i
< 2 * N
; i
++)
46 asm volatile ("" : : : "memory");
48 for (i
= 0; i
< N
; i
++)
49 if (a
[i
] != i
+ 1 || a
[i
+ N
] != i
+ 1)