darwin, x86, testsuite - Amend popcnt match string for Darwin.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 25 May 2019 19:46:53 +0000 (19:46 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 25 May 2019 19:46:53 +0000 (19:46 +0000)
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

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

index 14ba78b2fd985feb24223018c938f39c9d434cb3..1866afe21bcad2042e90d2a83b518639485e121b 100644 (file)
@@ -1,3 +1,8 @@
+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
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)