From 81ba3dd3a478b011367bb155daca57e5a83e3ed7 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 17 Nov 2014 21:48:05 +0000 Subject: [PATCH] Fix scan patterns for pr43864-{2,3,4].c 2014-11-17 Tom de Vries * gcc.dg/pr43864-2.c: Fix scan-tree-dump-times scan pattern. * gcc.dg/pr43864-3.c: Same. * gcc.dg/pr43864-4.c: Same. From-SVN: r217673 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/pr43864-2.c | 2 +- gcc/testsuite/gcc.dg/pr43864-3.c | 2 +- gcc/testsuite/gcc.dg/pr43864-4.c | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e8a7fbc7528..3f604491e25 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-11-17 Tom de Vries + + * gcc.dg/pr43864-2.c: Fix scan-tree-dump-times scan pattern. + * gcc.dg/pr43864-3.c: Same. + * gcc.dg/pr43864-4.c: Same. + 2014-11-17 Alan Lawrence * gcc.target/aarch64/vld1_lane.c: New test. diff --git a/gcc/testsuite/gcc.dg/pr43864-2.c b/gcc/testsuite/gcc.dg/pr43864-2.c index f00fff9fa91..6f531ba02d5 100644 --- a/gcc/testsuite/gcc.dg/pr43864-2.c +++ b/gcc/testsuite/gcc.dg/pr43864-2.c @@ -18,6 +18,6 @@ f (int c, int b, int d) } /* { dg-final { scan-tree-dump-times "if " 0 "pre"} } */ -/* { dg-final { scan-tree-dump-times "_.*\\\+.*_" 1 "pre"} } */ +/* { dg-final { scan-tree-dump-times "(?n)_.*\\+.*_" 1 "pre"} } */ /* { dg-final { scan-tree-dump-not "Invalid sum" "pre"} } */ /* { dg-final { cleanup-tree-dump "pre" } } */ diff --git a/gcc/testsuite/gcc.dg/pr43864-3.c b/gcc/testsuite/gcc.dg/pr43864-3.c index c4954e1bd72..f013ff52eb8 100644 --- a/gcc/testsuite/gcc.dg/pr43864-3.c +++ b/gcc/testsuite/gcc.dg/pr43864-3.c @@ -19,6 +19,6 @@ int f(int c, int b, int d) } /* { dg-final { scan-tree-dump-times "if " 0 "pre"} } */ -/* { dg-final { scan-tree-dump-times "_.*\\\+.*_" 1 "pre"} } */ +/* { dg-final { scan-tree-dump-times "(?n)_.*\\+.*_" 1 "pre"} } */ /* { dg-final { scan-tree-dump-not "Invalid sum" "pre"} } */ /* { dg-final { cleanup-tree-dump "pre" } } */ diff --git a/gcc/testsuite/gcc.dg/pr43864-4.c b/gcc/testsuite/gcc.dg/pr43864-4.c index 42adfeefe95..488206ed17f 100644 --- a/gcc/testsuite/gcc.dg/pr43864-4.c +++ b/gcc/testsuite/gcc.dg/pr43864-4.c @@ -23,7 +23,7 @@ int f(int c, int b, int d) } /* { dg-final { scan-tree-dump-times "if " 0 "pre"} } */ -/* { dg-final { scan-tree-dump-times "_.*\\\+.*_" 1 "pre"} } */ -/* { dg-final { scan-tree-dump-times " - " 2 "pre"} } */ +/* { dg-final { scan-tree-dump-times "(?n)_.*\\+.*_" 1 "pre"} } */ +/* { dg-final { scan-tree-dump-times "(?n)_.*-.*_" 2 "pre"} } */ /* { dg-final { scan-tree-dump-not "Invalid sum" "pre"} } */ /* { dg-final { cleanup-tree-dump "pre" } } */ -- 2.30.2