aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2019-05-25 19:46:53 +0000
committerIain Sandoe <iains@gcc.gnu.org>2019-05-25 19:46:53 +0000
commit09253954d27dbf9d5d882372215c14d778f1cc74 (patch)
treeabda21a3dfa9ac98195e91eb31282e53b457fc90
parent262fb6f113b547051cc4f8c6e66040477b47f21b (diff)
downloadgcc-09253954d27dbf9d5d882372215c14d778f1cc74.zip
gcc-09253954d27dbf9d5d882372215c14d778f1cc74.tar.gz
gcc-09253954d27dbf9d5d882372215c14d778f1cc74.tar.bz2
darwin, x86, testsuite - Amend popcnt match string for Darwin.
Darwin uses a different spelling for popcnt (popcnt instead of popcntw). Check for this in the test. 2019-05-25 Iain Sandoe <iain@sandoe.co.uk> * gcc.target/i386/pr59874-3.c: Use the spelling of popcnt expected for Darwin. From-SVN: r271623
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/i386/pr59874-3.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 14ba78b..1866afe 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2019-05-25 Iain Sandoe <iain@sandoe.co.uk>
+ * gcc.target/i386/pr59874-3.c: Use the spelling of popcnt
+ expected for Darwin.
+
+2019-05-25 Iain Sandoe <iain@sandoe.co.uk>
+
* gcc.target/i386/pr89261.c: Test that the alignment required
by the test correctly produces the expected error on Darwin.
diff --git a/gcc/testsuite/gcc.target/i386/pr59874-3.c b/gcc/testsuite/gcc.target/i386/pr59874-3.c
index ec55a12..0332f04 100644
--- a/gcc/testsuite/gcc.target/i386/pr59874-3.c
+++ b/gcc/testsuite/gcc.target/i386/pr59874-3.c
@@ -1,7 +1,8 @@
/* PR target/59874 */
/* { dg-do compile } */
/* { dg-options "-O2 -mpopcnt -masm=att" } */
-/* { dg-final { scan-assembler "popcntw" } } */
+/* { dg-final { scan-assembler "\tpopcntw" { target { ! *-*-darwin* } } } } */
+/* { dg-final { scan-assembler "\tpopcnt" { target *-*-darwin* } } } */
unsigned int
foo (unsigned short x)