From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id 04640385772A; Fri, 21 Apr 2023 18:24:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04640385772A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682101467; bh=+nnpXNhIAIdc3VgPK1fbqHeDm84S5Ez650/vd0ZWuuo=; h=From:To:Subject:Date:From; b=OnujPH/SZgBf4OBL88dYkV9SLN/TYfywPfEtqo6CadOmZesqzBM+NprUN/+jJya+B ixT/MdPxVUXUyU92JTS4mPH14huE5p2F9/9UUyo1eZ9anbqmQXhoYP7/I4BUaIPldj mSXguedr5csGYHuNLG8w7OCjQQ+tBFpsltwRQP3I= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jeff Law To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-156] Adjust x86 testsuite for recent if-conversion cost checking X-Act-Checkin: gcc X-Git-Author: Jeff Law X-Git-Refname: refs/heads/master X-Git-Oldrev: 88195141aea9561b26a72023c446ce9c1151340e X-Git-Newrev: f1f18198b069f461155191ecba41bc87bf5689dd Message-Id: <20230421182427.04640385772A@sourceware.org> Date: Fri, 21 Apr 2023 18:24:27 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f1f18198b069f461155191ecba41bc87bf5689dd commit r14-156-gf1f18198b069f461155191ecba41bc87bf5689dd Author: Jeff Law Date: Fri Apr 21 12:22:24 2023 -0600 Adjust x86 testsuite for recent if-conversion cost checking gcc/testsuite PR testsuite/109549 * gcc.target/i386/cmov6.c: No longer expect this test to generate 'cmov' instructions. Diff: --- gcc/testsuite/gcc.target/i386/cmov6.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/cmov6.c b/gcc/testsuite/gcc.target/i386/cmov6.c index 535326e4c2a..5111c8a9099 100644 --- a/gcc/testsuite/gcc.target/i386/cmov6.c +++ b/gcc/testsuite/gcc.target/i386/cmov6.c @@ -1,6 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -march=k8" } */ -/* { dg-final { scan-assembler "cmov\[^6\]" } } */ +/* if-converting this sequence would require two cmov + instructions and seems to always cost more independent + of the TUNE_ONE_IF_CONV setting. */ +/* { dg-final { scan-assembler-not "cmov\[^6\]" } } */ /* Verify that blocks are converted to conditional moves. */ extern int bar (int, int);