From: Iain Sandoe Date: Sun, 4 Aug 2019 10:53:48 +0000 (+0000) Subject: Darwin, X86, backport test fix for pr59874-3. X-Git-Tag: releases/gcc-9.2.0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68c80719add0d2a86a417e91902727e9465c1a6e;p=thirdparty%2Fgcc.git Darwin, X86, backport test fix for pr59874-3. This test fails on Darwin because the port has a different spelling for popcnt. 2019-08-04 Iain Sandoe Backport from mainline. 2019-05-25 Iain Sandoe * gcc.target/i386/pr59874-3.c: Use the spelling of popcnt expected for Darwin. From-SVN: r274067 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 21ee08ced9b2..d0131de1d809 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2019-08-04 Iain Sandoe + + Backport from mainline. + 2019-05-25 Iain Sandoe + + * gcc.target/i386/pr59874-3.c: Use the spelling of popcnt + expected for Darwin. + 2019-08-04 Iain Sandoe Backport from mainline. diff --git a/gcc/testsuite/gcc.target/i386/pr59874-3.c b/gcc/testsuite/gcc.target/i386/pr59874-3.c index ec55a12e2a0d..0332f04a977a 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)