Commit bece580c by Martin Sebor Committed by Martin Sebor

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
parent 4ddf9709
2017-07-14 Martin Sebor <msebor@redhat.com>
* 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 <dmalcolm@redhat.com> 2017-07-14 David Malcolm <dmalcolm@redhat.com>
* g++.dg/cpp0x/missing-initializer_list-include.C: New test case. * g++.dg/cpp0x/missing-initializer_list-include.C: New test case.
......
...@@ -8,7 +8,7 @@ void test_bcopy (const void *s) ...@@ -8,7 +8,7 @@ void test_bcopy (const void *s)
{ {
char d[33]; 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 inline in EVRP, before DSE runs, so this test doesn't actually
verify that DSE does its job. */ verify that DSE does its job. */
__builtin_bcopy (s, d, sizeof d); __builtin_bcopy (s, d, sizeof d);
...@@ -28,4 +28,4 @@ void test_bzero (void) ...@@ -28,4 +28,4 @@ void test_bzero (void)
} }
/* { dg-final { scan-tree-dump-times "builtin_memset" 1 "dse1" } } */ /* { 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" } } */
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