Commit 8746a215 by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/83195 (pr82929.c scan for "Merging successful" fail)

	PR tree-optimization/83195
	* gcc.dg/pr82929.c: Don't check for "Merging successful" on arm.
	* gcc.dg/pr82929-2.c: New test.

From-SVN: r255247
parent 9d52da2f
2017-11-29 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/83195
* gcc.dg/pr82929.c: Don't check for "Merging successful" on arm.
* gcc.dg/pr82929-2.c: New test.
2017-11-29 Richard Biener <rguenther@suse.de>
PR tree-optimization/83202
......
/* PR tree-optimization/82929 */
/* { dg-do compile { target store_merge } } */
/* { dg-options "-O2 -fdump-tree-store-merging" } */
void
foo (short *p, short *q, short *r)
{
p = __builtin_assume_aligned (p, __alignof__ (int));
q = __builtin_assume_aligned (q, __alignof__ (int));
r = __builtin_assume_aligned (r, __alignof__ (int));
short a = q[0];
short b = q[1];
short c = ~a;
short d = r[0];
short e = r[1];
short f = ~b;
p[0] = c & d;
p[1] = e & f;
}
/* { dg-final { scan-tree-dump-times "Merging successful" 1 "store-merging" } } */
......@@ -15,4 +15,4 @@ foo (short *p, short *q, short *r)
p[1] = e & f;
}
/* { dg-final { scan-tree-dump-times "Merging successful" 1 "store-merging" } } */
/* { dg-final { scan-tree-dump-times "Merging successful" 1 "store-merging" { target { ! arm*-*-* } } } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment