aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2019-09-10 20:39:23 +0000
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2019-09-10 20:39:23 +0000
commit88c24c35a1a4731a56fe4a23f4f47a3ad2a0fc4a (patch)
treeb58d20e9bc610d62913b3d3249404088620fb7d5
parenta255584643440452ca609f1ffe4c80807f1559d1 (diff)
[Darwin, X86, testsuite] Amend popcnt spelling for Darwin.
Darwin uses a different spelling for popcnt (popcnt instead of popcntw). Check for this in the test. 2019-09-10 Iain Sandoe <iain@sandoe.co.uk> Backport from mainline. 2019-05-25 Iain Sandoe <iain@sandoe.co.uk> * gcc.target/i386/pr59874-3.c: Use the spelling of popcnt expected for Darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@275610 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog8
-rw-r--r--gcc/testsuite/gcc.target/i386/pr59874-3.c3
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1043cf256d1..8505ca0d1ec 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2019-09-10 Iain Sandoe <iain@sandoe.co.uk>
+
+ Backport from mainline.
+ 2019-05-25 Iain Sandoe <iain@sandoe.co.uk>
+
+ * gcc.target/i386/pr59874-3.c: Use the spelling of popcnt
+ expected for Darwin.
+
2019-09-09 Iain Sandoe <iain@sandoe.co.uk>
Backport from mainline.
diff --git a/gcc/testsuite/gcc.target/i386/pr59874-3.c b/gcc/testsuite/gcc.target/i386/pr59874-3.c
index ec55a12e2a0..0332f04a977 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)