This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] fix PR44078
H.J.
this patch works on my thinkpad. Can you confirm that this patch fixes PR44078?
If yes, ok to apply?
There always was
fprintf (dump_file, "Marked reference %p as a nontemporal store.\n",
in the old code.
r159256 now adds
fprintf (dump_file, "Ignoring nontemporal store %p\n", (void *) ref);
The testcase prefetch-7.c matches both messages, but it should only match the
first one.
This patch changes the testcase by making the matching more strict.
FYI: For some reason I cannot change the bugzilla state. So can somebody close
that if this patch is being accepted.
2010-05-12 Christian Borntraeger <borntraeger@de.ibm.com>
PR 44078
* gcc.dg/tree-ssa/prefetch-7.c: Change pattern to match only the old
debug messages but not the newly introduced one.
Index: gcc/testsuite/gcc.dg/tree-ssa/prefetch-7.c
===================================================================
*** gcc/testsuite/gcc.dg/tree-ssa/prefetch-7.c.orig
--- gcc/testsuite/gcc.dg/tree-ssa/prefetch-7.c
*************** void test(int *p)
*** 44,50 ****
/* { dg-final { scan-tree-dump-times "Issued prefetch" 5 "aprefetch" } } */
/* { dg-final { scan-tree-dump-times "Issued nontemporal prefetch" 3 "aprefetch" } } */
! /* { dg-final { scan-tree-dump-times "nontemporal store" 2 "aprefetch" } } */
/* { dg-final { scan-tree-dump-times "builtin_prefetch" 8 "optimized" } } */
/* { dg-final { scan-tree-dump-times "=\\{nt\\}" 2 "optimized" } } */
--- 44,50 ----
/* { dg-final { scan-tree-dump-times "Issued prefetch" 5 "aprefetch" } } */
/* { dg-final { scan-tree-dump-times "Issued nontemporal prefetch" 3 "aprefetch" } } */
! /* { dg-final { scan-tree-dump-times "a nontemporal store" 2 "aprefetch" } } */
/* { dg-final { scan-tree-dump-times "builtin_prefetch" 8 "optimized" } } */
/* { dg-final { scan-tree-dump-times "=\\{nt\\}" 2 "optimized" } } */