Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2230225/?format=api
{ "id": 2230225, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230225/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260429133524.512314BAD172@sourceware.org/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<20260429133524.512314BAD172@sourceware.org>", "date": "2026-04-29T13:34:48", "name": "[x86] Avoid gcc.target/i386/shift-gf2p8affine-?.c fails with compare costs", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "6c476f943379b7fb91c61e0c0c74de85eda44bcb", "submitter": { "id": 4338, "url": "http://patchwork.ozlabs.org/api/1.1/people/4338/?format=api", "name": "Richard Biener", "email": "rguenther@suse.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260429133524.512314BAD172@sourceware.org/mbox/", "series": [ { "id": 502063, "url": "http://patchwork.ozlabs.org/api/1.1/series/502063/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502063", "date": "2026-04-29T13:34:48", "name": "[x86] Avoid gcc.target/i386/shift-gf2p8affine-?.c fails with compare costs", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502063/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2230225/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2230225/checks/", "tags": {}, "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=pN+gQXdL;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=4Qdw5pes;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=iRtYwfUn;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=BkpKe3bd;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=pN+gQXdL;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=4Qdw5pes;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=iRtYwfUn;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=BkpKe3bd", "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=suse.de", "sourceware.org; spf=pass smtp.mailfrom=suse.de", "server2.sourceware.org;\n arc=none smtp.remote-ip=195.135.223.130", "smtp-out1.suse.de;\n\tnone" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5JG72VYqz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 23:35:26 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 512314BAD172\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 13:35:24 +0000 (GMT)", "from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130])\n by sourceware.org (Postfix) with ESMTPS id EB1264BA7988\n for <gcc-patches@gcc.gnu.org>; Wed, 29 Apr 2026 13:34:57 +0000 (GMT)", "from murzim.nue2.suse.org (unknown [10.168.4.243])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out1.suse.de (Postfix) with ESMTPS id C116E6A939;\n Wed, 29 Apr 2026 13:34:48 +0000 (UTC)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 512314BAD172", "OpenDKIM Filter v2.11.0 sourceware.org EB1264BA7988" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org EB1264BA7988", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org EB1264BA7988", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777469698; cv=none;\n b=iUZhSm0YA2iGtJciIAqB7cCQWjov7RLqfZLCPifxj8ZynpQX9DWJ8fgMTpWvqt67rqJenqwqOgjKcx2iuVD03zYgkWuYC/G81BAnOrEKkhsOQmBWTFB3V5RhNmEAAOQfKPFnAO2fcu/dlAIKYujEgd0cR35kI0JnyDc1TRhfhtQ=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777469698; c=relaxed/simple;\n bh=yjK770EQDAbdD2+BvN9CTcFBQmPNAE2bSn6BHluNE94=;\n h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date:\n From:To:Subject:MIME-Version;\n b=bldyil6MGJzBXchZha7gTGhHUF/WXRMmGB7u7X1Z0Q4Aqar3FLcO12kXJ+HiNoXF/fh1P8ccKdc0AZ/aAM/3W7Pp+m3Eihwq+fPO3+vgUw0QWSbKR2M9EUT3dzELTv3kVbpeTmayrtgzY8n9v441wED6ncQF/AFN60Y0V/vbk9A=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1777469692;\n h=from:from:reply-to:date:date:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type; bh=hlaoxOWCDtr4k7OklIsobA7Lvelnr8qjJJyu3S9Hrfk=;\n b=pN+gQXdLoZ3Bw+TEBk8XCwsOHXMrKhrhmNdsh33cTsu48xvFkgq3Y3d632dmIOsGvCNoNq\n abbUJDCzQHBcnDpFngG5fvUpGgQ5gU+AcwApsB67dmR51mXEtSFxATdkwCHuD3CrWoR2rm\n c7fb0Ar/V66OaNNteWFvssPgjIuRZeM=", "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1777469692;\n h=from:from:reply-to:date:date:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type; bh=hlaoxOWCDtr4k7OklIsobA7Lvelnr8qjJJyu3S9Hrfk=;\n b=4Qdw5pesxSyDqBVH1Q4FGKXaCBvqMjxciQYwCSnw2JPCWRUJifEApo2JLrL7SwAjMpD+L3\n nleJZF1TSnP6MODQ==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1777469688;\n h=from:from:reply-to:date:date:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type; bh=hlaoxOWCDtr4k7OklIsobA7Lvelnr8qjJJyu3S9Hrfk=;\n b=iRtYwfUnWJPwJHQmhjIJMiolJRU8GhcVwfj5DHKORiHJ55oH7emvdxLVyjpuEnW2DnFraf\n q31o4oYd2ebDvycmgL1o3FEdOG+ENX0mIJqofwk9tjOj7IeAK8nAhaDRfMkYH2FiT+8s8w\n DdZMfQvzaR9nAMtjVdMctVrXAOG1n7U=", "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1777469688;\n h=from:from:reply-to:date:date:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type; bh=hlaoxOWCDtr4k7OklIsobA7Lvelnr8qjJJyu3S9Hrfk=;\n b=BkpKe3bdvfZq3/zllBQWd7CEYepfdgeenHThVu2PLpndt0sFgO+E/2YwvmU5788ahJQvmz\n vdFOBcF36etqjnDg==" ], "Date": "Wed, 29 Apr 2026 15:34:48 +0200 (CEST)", "From": "Richard Biener <rguenther@suse.de>", "To": "gcc-patches@gcc.gnu.org", "cc": "hongtao.liu@intel.com", "Subject": "[PATCH] [x86] Avoid gcc.target/i386/shift-gf2p8affine-?.c fails with\n compare costs", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=US-ASCII", "X-Spamd-Result": "default: False [-1.80 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n MISSING_MID(2.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000];\n NEURAL_HAM_SHORT(-0.20)[-0.997]; MIME_GOOD(-0.10)[text/plain];\n MISSING_XM_UA(0.00)[]; RCVD_COUNT_ZERO(0.00)[0];\n ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2];\n DBL_BLOCKED_OPENRESOLVER(0.00)[murzim.nue2.suse.org:helo,gcc.target:url];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+];\n FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n TO_DN_NONE(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]", "X-BeenThere": "gcc-patches@gcc.gnu.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>", "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>", "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org", "Message-Id": "<20260429133524.512314BAD172@sourceware.org>" }, "content": "The following disables epilogue vectorization for the\ngcc.target/i386/shift-gf2p8affine-?.c tests so they pass with both\n--param ix86-vect-compare-costs=1 and =0.\n\nTested on x86_64-unknown-linux-gnu, OK?\n\nWith this the whole series results in (testsuite) regression free\nenabling of ix86-vect-compare-costs, I plan to push this when all\nbits are approved in \"reverse\" order, pushing flipping of the default\nlast.\n\nRichard.\n\n\t* gcc.target/i386/shift-gf2p8affine-1.c: Disable epilogue\n\tvectorization.\n\t* gcc.target/i386/shift-gf2p8affine-3.c: Likewise.\n\t* gcc.target/i386/shift-gf2p8affine-7.c: Likewise.\n---\n gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c | 4 ++--\n gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c | 4 ++--\n gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c | 4 ++--\n 3 files changed, 6 insertions(+), 6 deletions(-)", "diff": "diff --git a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c\nindex cb576eb4498..7bde8e5d3c0 100644\n--- a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c\n+++ b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c\n@@ -1,6 +1,6 @@\n /* { dg-do compile } */\n-/* { dg-options \"-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -march=x86-64 -mtune=generic\" } */\n-/* { dg-final { scan-assembler-times \"vgf2p8affineqb\" 14 } } */\n+/* { dg-options \"-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -march=x86-64 --param vect-epilogues-nomask=0 -mtune=generic\" } */\n+/* { dg-final { scan-assembler-times \"vgf2p8affineqb\" 7 } } */\n \n #ifndef N\n #define N 5\ndiff --git a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c\nindex 2099f4edddf..aea60e1a6b7 100644\n--- a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c\n+++ b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c\n@@ -1,6 +1,6 @@\n /* { dg-do compile } */\n-/* { dg-options \"-mgfni -mavx512bw -mavx512f -O3 -march=x86-64 -mtune=generic\" } */\n-/* { dg-final { scan-assembler-times \"vgf2p8affineqb\" 12 } } */\n+/* { dg-options \"-mgfni -mavx512bw -mavx512f -O3 -march=x86-64 -mtune=generic --param vect-epilogues-nomask=0\" } */\n+/* { dg-final { scan-assembler-times \"vgf2p8affineqb\" 6 } } */\n \n /* Based on a test case from Andrew Pinski */\n \ndiff --git a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c\nindex 8e93bb32e5d..7608aa141c7 100644\n--- a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c\n+++ b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c\n@@ -1,5 +1,5 @@\n /* { dg-do compile } */\n-/* { dg-options \"-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -Wno-shift-count-negative -mtune=generic -march=x86-64\" } */\n-/* { dg-final { scan-assembler-times \"vgf2p8affineqb\" 53 } } */\n+/* { dg-options \"-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -Wno-shift-count-negative -mtune=generic -march=x86-64 --param vect-epilogues-nomask=0\" } */\n+/* { dg-final { scan-assembler-times \"vgf2p8affineqb\" 27 } } */\n \n #include \"shift-gf2p8affine-2.c\"\n", "prefixes": [ "x86" ] }