]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin, X86, backport test fix for pr59874-3.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 4 Aug 2019 10:53:48 +0000 (10:53 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 4 Aug 2019 10:53:48 +0000 (10:53 +0000)
This test fails on Darwin because the port has a different
spelling for popcnt.

2019-08-04  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.

From-SVN: r274067

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr59874-3.c

index 21ee08ced9b20dae6990bf5eb908e1c346ad185b..d0131de1d809b58cc9b33aa4ecc7a541995fe108 100644 (file)
@@ -1,3 +1,11 @@
+2019-08-04  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-08-04  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline.
index ec55a12e2a0db526b1d76c103b4e8230b9952d22..0332f04a977a489a3a17dfa764b3f037f6c960f5 100644 (file)
@@ -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)