strlenopt-10.c [avr-*-*]: Reduce number of expected memcpy by one.
* gcc.dg/strlenopt-10.c [avr-*-*]: Reduce number of expected memcpy by one. * gcc.dg/strlenopt-11.c [avr-*-*]: Likewise. Expect l to be optimized away. * gcc.dg/strlenopt-13.c [avr-*-*]: Likewise. From-SVN: r201741
This commit is contained in:
parent
5b5563d12d
commit
d36591c281
@ -54,6 +54,12 @@
|
||||
|
||||
* gcc.dg/pr46647.c: xfail for avr-*-*.
|
||||
|
||||
* gcc.dg/strlenopt-10.c [avr-*-*]: Reduce number of expected
|
||||
memcpy by one.
|
||||
* gcc.dg/strlenopt-11.c [avr-*-*]: Likewise.
|
||||
Expect l to be optimized away.
|
||||
* gcc.dg/strlenopt-13.c [avr-*-*]: Likewise.
|
||||
|
||||
2013-08-14 Janis Johnson <janisjo@codesourcery.com>
|
||||
|
||||
* gcc.target/arm/pr19599.c: Skip for -mthumb.
|
||||
|
@ -70,7 +70,10 @@ main ()
|
||||
}
|
||||
|
||||
/* { dg-final { scan-tree-dump-times "strlen \\(" 2 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "memcpy \\(" 8 "strlen" } } */
|
||||
/* avr has BIGGEST_ALIGNMENT 8, allowing fold_builtin_memory_op
|
||||
to expand the memcpy call at the end of fn2. */
|
||||
/* { dg-final { scan-tree-dump-times "memcpy \\(" 8 "strlen" { target { ! avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times "memcpy \\(" 7 "strlen" { target { avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times "strcpy \\(" 0 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "strcat \\(" 0 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "strchr \\(" 0 "strlen" } } */
|
||||
|
@ -59,12 +59,18 @@ main ()
|
||||
}
|
||||
|
||||
/* { dg-final { scan-tree-dump-times "strlen \\(" 3 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "memcpy \\(" 7 "strlen" } } */
|
||||
/* avr has BIGGEST_ALIGNMENT 8, allowing fold_builtin_memory_op
|
||||
to expand the memcpy call at the end of fn1. */
|
||||
/* { dg-final { scan-tree-dump-times "memcpy \\(" 7 "strlen" { target { ! avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times "memcpy \\(" 6 "strlen" { target { avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times "strcpy \\(" 0 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "strcat \\(" 0 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "strchr \\(" 0 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "stpcpy \\(" 0 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.0. = " 1 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.6. = " 1 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.9. = " 1 "strlen" } } */
|
||||
/* Where the memcpy is expanded, the assignemts to elements of l are
|
||||
propagated. */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.0. = " 1 "strlen" { target { ! avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.6. = " 1 "strlen" { target { ! avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.9. = " 1 "strlen" { target { ! avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;" 3 "strlen" { target { avr-*-* } } } } */
|
||||
/* { dg-final { cleanup-tree-dump "strlen" } } */
|
||||
|
@ -56,13 +56,19 @@ main ()
|
||||
}
|
||||
|
||||
/* { dg-final { scan-tree-dump-times "strlen \\(" 4 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "memcpy \\(" 7 "strlen" } } */
|
||||
/* avr has BIGGEST_ALIGNMENT 8, allowing fold_builtin_memory_op
|
||||
to expand the memcpy call at the end of fn1. */
|
||||
/* { dg-final { scan-tree-dump-times "memcpy \\(" 7 "strlen" { target { ! avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times "memcpy \\(" 6 "strlen" { target { avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times "strcpy \\(" 0 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "strcat \\(" 0 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "strchr \\(" 0 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times "stpcpy \\(" 0 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.0. = " 1 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.1. = " 1 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.5. = " 1 "strlen" } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.6. = " 1 "strlen" } } */
|
||||
/* Where the memcpy is expanded, the assignemts to elements of l are
|
||||
propagated. */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.0. = " 1 "strlen" { target { ! avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.1. = " 1 "strlen" { target { ! avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.5. = " 1 "strlen" { target { ! avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;\[\n\r\]* l.6. = " 1 "strlen" { target { ! avr-*-* } } } } */
|
||||
/* { dg-final { scan-tree-dump-times " _\[0-9\]* = strlen \\(\[^\n\r\]*;" 4 "strlen" { target { avr-*-* } } } } */
|
||||
/* { dg-final { cleanup-tree-dump "strlen" } } */
|
||||
|
Loading…
Reference in New Issue
Block a user