1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-dse1-details" } */
4 void f(int n
, char *p0
, char *p1
, char *p2
, char *o
)
7 __builtin_memcpy(&t0
, p0
, 1);
8 __builtin_memcpy(&t1
, p1
, 1);
10 __builtin_memcpy(o
+2, p2
, 1);
11 __builtin_memcpy(o
+0, &t0
, 1);
12 __builtin_memcpy(o
+1, &t1
, 1);
15 /* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1" } } */