* [PATCH, Darwin, X86, testsuite] Adjust match string for Darwin popcnt spelling.
@ 2019-05-26 9:14 Iain Sandoe
0 siblings, 0 replies; only message in thread
From: Iain Sandoe @ 2019-05-26 9:14 UTC (permalink / raw)
To: GCC Patches; +Cc: Uros Bizjak
Darwin uses a different spelling for popcnt (popcnt instead of popcntw).
Check for this in the test.
tested on x86_64-darwin16 and x86_64-linux-gnu (--target_board=unix\{-m32,-m64\}\{,-fpic\})
aplied to mainline,
thanks
Iain
2019-05-25 Iain Sandoe <iain@sandoe.co.uk>
* gcc.target/i386/pr59874-3.c: Use the spelling of popcnt
expected for 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-25 19:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-26 9:14 [PATCH, Darwin, X86, testsuite] Adjust match string for Darwin popcnt spelling Iain Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).