From: Dominique d'Humieres Date: Fri, 3 May 2019 10:00:27 +0000 (+0200) Subject: re PR target/88809 (do not use rep-scasb for inline strlen/memchr) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7a89a659afeaae763761dab0a7fd3f2f7ddcbe2;p=gcc.git re PR target/88809 (do not use rep-scasb for inline strlen/memchr) 2019-05-03 Dominique d'Humieres PR target/88809 * gcc.target/i386/pr88809.c: Adjust for darwin. * gcc.target/i386/pr88809-2.c: Adjust for i386 and darwin. From-SVN: r270843 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 509eb17752d..2bb56096402 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-05-03 Dominique d'Humieres + + PR target/88809 + * gcc.target/i386/pr88809.c: Adjust for darwin. + * gcc.target/i386/pr88809-2.c: Adjust for i386 and darwin. + 2019-05-03 Jakub Jelinek PR tree-optimization/90303 diff --git a/gcc/testsuite/gcc.target/i386/pr88809-2.c b/gcc/testsuite/gcc.target/i386/pr88809-2.c index b8ef51dab5b..616e9b95ea7 100644 --- a/gcc/testsuite/gcc.target/i386/pr88809-2.c +++ b/gcc/testsuite/gcc.target/i386/pr88809-2.c @@ -6,4 +6,4 @@ unsigned int foo (const char *ptr) return __builtin_strlen (ptr); } -/* { dg-final { scan-assembler "call\[ \t\]strlen" } } */ +/* { dg-final { scan-assembler "(jmp|call)\[ \t\]_?strlen" } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr88809.c b/gcc/testsuite/gcc.target/i386/pr88809.c index 20844ddb921..242c18881ca 100644 --- a/gcc/testsuite/gcc.target/i386/pr88809.c +++ b/gcc/testsuite/gcc.target/i386/pr88809.c @@ -6,4 +6,4 @@ unsigned int foo (const char *ptr) return __builtin_strlen (ptr); } -/* { dg-final { scan-assembler "call\[ \t\]strlen" } } */ +/* { dg-final { scan-assembler "call\[ \t\]_?strlen" } } */