From 09253954d27dbf9d5d882372215c14d778f1cc74 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sat, 25 May 2019 19:46:53 +0000 Subject: [PATCH] darwin, x86, testsuite - Amend popcnt match string for Darwin. Darwin uses a different spelling for popcnt (popcnt instead of popcntw). Check for this in the test. 2019-05-25 Iain Sandoe * gcc.target/i386/pr59874-3.c: Use the spelling of popcnt expected for Darwin. From-SVN: r271623 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/pr59874-3.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 14ba78b2fd9..1866afe21bc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-05-25 Iain Sandoe + + * gcc.target/i386/pr59874-3.c: Use the spelling of popcnt + expected for Darwin. + 2019-05-25 Iain Sandoe * gcc.target/i386/pr89261.c: Test that the alignment required 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) -- 2.30.2