Darwin, x86, testsuite - Make match strings more specific.
authorIain Sandoe <iains@gcc.gnu.org>
Fri, 24 May 2019 07:24:26 +0000 (07:24 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Fri, 24 May 2019 07:24:26 +0000 (07:24 +0000)
commit66885312cbbdbcd923eb06501756747cb4349441
tree2418bf28f05c5ca2f6e7d72011d02c58deb3e471
parent4ef1d2e235e7990e499c91fcc7760e681c242983
Darwin, x86, testsuite - Make match strings more specific.

Some of the i386.exp tests fail on Darwin (and at least one passes
incorrectly on Linux) because their scan-asm match strings are too
general.  In some cases the strings also match instances in the .file
and size directives or in comment output.  This patch makes the match
strings more specific.

2019-05-24  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/i386/pconfig-1.c: Scan for the string in the generated
code, not in comments or miscellaneous directives. Adjust expected
count.
* gcc.target/i386/pr18041-1.c: Likewise.
* gcc.target/i386/pr18041-2.c: Likewise.
* gcc.target/i386/wbinvd-1.c: Likewise.
* gcc.target/i386/wbnoinvd-1.c: Likewise.
* gcc.target/i386/pr66819-3.c: Specifically, check that there is no
call to "bar".
* gcc.target/i386/pr66819-4.c: Likewise.
* gcc.target/i386/pr82662.c
* gcc.target/i386/ptwrite2.c: Make the checks look for the specific
destination register, don't try the m32 test on m64 targets.

From-SVN: r271591
gcc/testsuite/gcc.target/i386/pconfig-1.c
gcc/testsuite/gcc.target/i386/pr18041-1.c
gcc/testsuite/gcc.target/i386/pr18041-2.c
gcc/testsuite/gcc.target/i386/pr66819-3.c
gcc/testsuite/gcc.target/i386/pr66819-4.c
gcc/testsuite/gcc.target/i386/pr82662.c
gcc/testsuite/gcc.target/i386/ptwrite2.c
gcc/testsuite/gcc.target/i386/wbinvd-1.c
gcc/testsuite/gcc.target/i386/wbnoinvd-1.c