Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.dg/fold-bcopy.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/gcc.dg/fold-bcopy.c Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/testsuite/gcc.dg/fold-bcopy.c Thu Feb 13 11:34:05 2020 +0900 @@ -1,6 +1,6 @@ /* PR tree-optimization/80933 - redundant bzero/bcopy calls not eliminated { dg-do compile } - { dg-options "-O0 -Wall -fdump-tree-gimple" } */ + { dg-options "-O1 -Wall -fdump-tree-lower" } */ void f0 (void *dst, const void *src, unsigned n) { @@ -46,9 +46,9 @@ /* Verify that calls to bcmp, bcopy, and bzero have all been removed and one of each replaced with memcmp, memmove, and memset, respectively. The remaining three should be eliminated. - { dg-final { scan-tree-dump-not "bcmp|bcopy|bzero" "gimple" } } - { dg-final { scan-tree-dump-times "memcmp|memmove|memset" 3 "gimple" } } + { dg-final { scan-tree-dump-not "bcmp|bcopy|bzero" "lower" } } + { dg-final { scan-tree-dump-times "memcmp|memmove|memset" 3 "lower" } } Verify that the bcopy to memmove transformation correctly transposed the source and destination pointer arguments. - { dg-final { scan-tree-dump-times "memmove \\(dst, src" 1 "gimple" } } */ + { dg-final { scan-tree-dump-times "memmove \\(dst, src" 1 "lower" } } */