Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr82929-2.c
blobb886f1cce763562b06d731717deb196b792def13
1 /* PR tree-optimization/82929 */
2 /* { dg-do compile { target store_merge } } */
3 /* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-store-merging" } */
5 void
6 foo (short *p, short *q, short *r)
8 p = __builtin_assume_aligned (p, __alignof__ (int));
9 q = __builtin_assume_aligned (q, __alignof__ (int));
10 r = __builtin_assume_aligned (r, __alignof__ (int));
11 short a = q[0];
12 short b = q[1];
13 short c = ~a;
14 short d = r[0];
15 short e = r[1];
16 short f = ~b;
17 p[0] = c & d;
18 p[1] = e & f;
21 /* { dg-final { scan-tree-dump-times "Merging successful" 1 "store-merging" } } */