From bece580c0ce225b1adeca3afea8d834f7fd83277 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Fri, 14 Jul 2017 16:16:23 +0000 Subject: [PATCH] ssa-dse-30.c: Correct test to look for memmove that bcopy is expected to be transformed to. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/ssa-dse-30.c: Correct test to look for memmove that bcopy is expected to be transformed to. From-SVN: r250209 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-30.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4bdeeca3213..aa4fb1de293 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-07-14 Martin Sebor + + * gcc.dg/tree-ssa/ssa-dse-30.c: Correct test to look for memmove + that bcopy is expected to be transformed to. + 2017-07-14 David Malcolm * g++.dg/cpp0x/missing-initializer_list-include.C: New test case. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-30.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-30.c index ece8cb2a80c..1d1fe82fda0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-30.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-30.c @@ -8,7 +8,7 @@ void test_bcopy (const void *s) { char d[33]; - /* Bcopy is transformed into memcpy and those calls are expanded + /* Bcopy is transformed into memmove and those calls are expanded inline in EVRP, before DSE runs, so this test doesn't actually verify that DSE does its job. */ __builtin_bcopy (s, d, sizeof d); @@ -28,4 +28,4 @@ void test_bzero (void) } /* { dg-final { scan-tree-dump-times "builtin_memset" 1 "dse1" } } */ -/* { dg-final { scan-tree-dump-not "builtin_(bcopy|bzero|memcpy)" "dse1" } } */ +/* { dg-final { scan-tree-dump-not "builtin_(bcopy|bzero|memcpy|memmove)" "dse1" } } */ -- 2.30.2