Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2223311/?format=api
{ "id": 2223311, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2223311/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260415013645.5271-1-chenglulu@loongson.cn/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/1.2/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, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260415013645.5271-1-chenglulu@loongson.cn>", "list_archive_url": null, "date": "2026-04-15T01:36:45", "name": "LoongArch: Add rtx_cost support for ORDERED comparison.", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "bf7fa6af877f80b8bb21a77f2b6ea7f6119e34fb", "submitter": { "id": 82960, "url": "http://patchwork.ozlabs.org/api/1.2/people/82960/?format=api", "name": "Lulu Cheng", "email": "chenglulu@loongson.cn" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260415013645.5271-1-chenglulu@loongson.cn/mbox/", "series": [ { "id": 499904, "url": "http://patchwork.ozlabs.org/api/1.2/series/499904/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=499904", "date": "2026-04-15T01:36:45", "name": "LoongArch: Add rtx_cost support for ORDERED comparison.", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499904/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2223311/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223311/checks/", "tags": {}, "related": [], "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 spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.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 dmarc=none (p=none dis=none) header.from=loongson.cn", "sourceware.org; spf=pass smtp.mailfrom=loongson.cn", "server2.sourceware.org;\n arc=none smtp.remote-ip=114.242.206.163" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 4fwNyS2NMqz1yHM\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 11:35:58 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 987674BA2E15\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 01:35:56 +0000 (GMT)", "from mail.loongson.cn (mail.loongson.cn [114.242.206.163])\n by sourceware.org (Postfix) with ESMTP id 3F4C44BA2E04\n for <gcc-patches@gcc.gnu.org>; Wed, 15 Apr 2026 01:35:29 +0000 (GMT)", "from loongson.cn (unknown [10.20.4.107])\n by gateway (Coremail) with SMTP id _____8DxLupa695pVq8AAA--.2793S3;\n Wed, 15 Apr 2026 09:35:22 +0800 (CST)", "from loongson-pc.loongson.cn (unknown [10.20.4.107])\n by front1 (Coremail) with SMTP id qMiowJBx68FZ695pv1ttAA--.9084S2;\n Wed, 15 Apr 2026 09:35:21 +0800 (CST)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 987674BA2E15", "OpenDKIM Filter v2.11.0 sourceware.org 3F4C44BA2E04" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 3F4C44BA2E04", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 3F4C44BA2E04", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776216930; cv=none;\n b=s1L2cKmQUeYHa4n5OLGd0p2hKPOyNr4oOZ1l4KX/1EzopFQQlZy/W0p8hnNoBefdCPGpfzD4bdDWTH87vwIpIy/Eckvdpv+8rt6yUZOLzZwio0z7mWecBBm3JqdIFpf2cK5Mqe/KuCK/sA/QD4q9OTABSS/wPvuk6LmXLy97h0E=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776216930; c=relaxed/simple;\n bh=wZRY2gfOArEfjiZCZAuIASEoqpPWzChUKboVMYuNoqM=;\n h=From:To:Subject:Date:Message-Id:MIME-Version;\n b=qsOB5SVmEsVZrDDFtDgs0qutqrSQz7kqQKWeR8qh+33vW2ZFR5huh/lHmtKAG8AlI4J0VGDhBK9PcjM2e9zpl8jlXctTo0Jsq0CBIn5QTTGtqWeGTYMM9dlKZUa1iL6sjaH3VBw6KC/IMBCFs9uC8OS2rhrnp5JMEUCK8geQdVQ=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "From": "Lulu Cheng <chenglulu@loongson.cn>", "To": "gcc-patches@gcc.gnu.org,\n\tchenglulu@loongson.cn", "Cc": "xry111@xry111.site,\n\ti@xen0n.name,\n\txuchenghua@loongson.cn", "Subject": "[PATCH] LoongArch: Add rtx_cost support for ORDERED comparison.", "Date": "Wed, 15 Apr 2026 09:36:45 +0800", "Message-Id": "<20260415013645.5271-1-chenglulu@loongson.cn>", "X-Mailer": "git-send-email 2.20.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-CM-TRANSID": "qMiowJBx68FZ695pv1ttAA--.9084S2", "X-CM-SenderInfo": "xfkh0wpoxo3qxorr0wxvrqhubq/", "X-Coremail-Antispam": "1Uk129KBj93XoW7Gw4UJFW7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07j8yCJUUUUU=", "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" }, "content": "In commit 16-8400-g48c2ea1750efe4, VCOND_MASK is inverted\n(if that would be an improvement). However, since the LoongArch\nbackend does not define the rtx_cost for the ORDERED RTX, the\ncalculated cost for UNORDERED becomes greater than that of ORDERED.\nThis triggers an inversion from UNORDERED to ORDERED, leading to\ntest failures in lasx-vcond-2.c and lsx-vcond-2.c.\n\nSince the assembly sequences generated for ORDERED and UNORDERED\nare identical on LoongArch, I have set the rtx_cost for ORDERED\nto match that of UNORDERED. This ensures consistent cost\nevaluation and allows the related test cases to pass.\n\ngcc/ChangeLog:\n\n\t* config/loongarch/loongarch.cc (loongarch_rtx_costs): Add\n\tRTX cost handling for the ORDERED RTX code.\n\n---\n gcc/config/loongarch/loongarch.cc | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/gcc/config/loongarch/loongarch.cc b/gcc/config/loongarch/loongarch.cc\nindex 33e728ddf5a..677d19c8550 100644\n--- a/gcc/config/loongarch/loongarch.cc\n+++ b/gcc/config/loongarch/loongarch.cc\n@@ -4280,6 +4280,7 @@ loongarch_rtx_costs (rtx x, machine_mode mode, int outer_code,\n case EQ:\n case NE:\n case UNORDERED:\n+ case ORDERED:\n case LTGT:\n case UNGE:\n case UNGT:\n", "prefixes": [] }