1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-additional-options "-minline-stringops-dynamically" { target { i?86-*-* x86_64-*-* } } } */
5 extern void abort (void);
7 #define MAX_OFFSET (sizeof (long long))
9 #define MAX_COPY (1024 + 8192)
11 #define MAX_EXTRA (sizeof (long long))
13 #define MAX_LENGTH (MAX_OFFSET + MAX_COPY + MAX_EXTRA)
29 for (i
= 0; i
< MAX_LENGTH
; i
++)
32 for (off
= 0; off
< MAX_OFFSET
; off
++)
33 for (len
= 1; len
< MAX_COPY
; len
++)
35 for (i
= 0; i
< MAX_LENGTH
; i
++)
38 p
= __builtin_memcpy (u
.buf
+ off
, A
, len
);
43 for (i
= 0; i
< off
; i
++, q
++)
47 for (i
= 0; i
< len
; i
++, q
++)
51 for (i
= 0; i
< MAX_EXTRA
; i
++, q
++)