]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Darwin, X86, testsuite] Amend popcnt spelling for Darwin.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 10 Sep 2019 20:39:23 +0000 (20:39 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Tue, 10 Sep 2019 20:39:23 +0000 (20:39 +0000)
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.

From-SVN: r275610

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

index 1043cf256d17b79f96e45fde7630c4192a25274c..8505ca0d1ecd020d315d5916150a272eb5310a85 100644 (file)
@@ -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.
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)