get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2194252/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2194252,
    "url": "http://patchwork.ozlabs.org/api/patches/2194252/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/674fc944-d532-468d-877f-45458a08a4ea@oss.qualcomm.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/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": "<674fc944-d532-468d-877f-45458a08a4ea@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-02-07T18:54:07",
    "name": "[committed] Fix testsuite scan failure on loongarch64",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "bb2c7f61153aaac554cc5ec4a35b71531cf75388",
    "submitter": {
        "id": 92310,
        "url": "http://patchwork.ozlabs.org/api/people/92310/?format=api",
        "name": "Jeffrey Law",
        "email": "jeffrey.law@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/674fc944-d532-468d-877f-45458a08a4ea@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 491394,
            "url": "http://patchwork.ozlabs.org/api/series/491394/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=491394",
            "date": "2026-02-07T18:54:07",
            "name": "[committed] Fix testsuite scan failure on loongarch64",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491394/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194252/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194252/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\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=SCBftMc5;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=c2hlxRIk;\n\tdkim-atps=neutral",
            "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\tdkim=pass (2048-bit key,\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=SCBftMc5;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=c2hlxRIk",
            "sourceware.org; dmarc=none (p=none dis=none)\n header.from=oss.qualcomm.com",
            "sourceware.org;\n spf=pass smtp.mailfrom=oss.qualcomm.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=205.220.168.131"
        ],
        "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 4f7gBz3WVHz1xvh\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 08 Feb 2026 05:55:18 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 280B44BA23F6\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  7 Feb 2026 18:55:15 +0000 (GMT)",
            "from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com\n [205.220.168.131])\n by sourceware.org (Postfix) with ESMTPS id 3685B4BA2E0C\n for <gcc-patches@gcc.gnu.org>; Sat,  7 Feb 2026 18:54:33 +0000 (GMT)",
            "from pps.filterd (m0279864.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 617EW5Zo3652062\n for <gcc-patches@gcc.gnu.org>; Sat, 7 Feb 2026 18:54:11 GMT",
            "from mail-dl1-f70.google.com (mail-dl1-f70.google.com\n [74.125.82.70])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4c64hngjxw-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <gcc-patches@gcc.gnu.org>; Sat, 07 Feb 2026 18:54:10 +0000 (GMT)",
            "by mail-dl1-f70.google.com with SMTP id\n a92af1059eb24-1270d885ed0so675629c88.0\n for <gcc-patches@gcc.gnu.org>; Sat, 07 Feb 2026 10:54:10 -0800 (PST)",
            "from [172.31.0.38] ([136.38.201.137])\n by smtp.gmail.com with ESMTPSA id\n 5a478bee46e88-2b86b800c47sm1343510eec.12.2026.02.07.10.54.08\n for <gcc-patches@gcc.gnu.org>\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Sat, 07 Feb 2026 10:54:08 -0800 (PST)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 sourceware.org 280B44BA23F6",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 3685B4BA2E0C",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 3685B4BA2E0C",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770490473; cv=none;\n b=h7Tdj14EOkMdR0oVmR9RQVJph7foRRTuQERvKYuhI/MWuWn0jA9wX1iQ39jAjE2YPSDdmtwHp00laWCgDbNB4dF//ZQ/7+eGvcwC4sG4Sx/1wJjxhJ7bFRXpTPAyYhd/AD7nKHHoBqtIdYUvz9JYVOPnpQ/Z4+7ztvW9TdnhS5M=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1770490473; c=relaxed/simple;\n bh=xwqIxhrSVyMd8fZLg50YyKVtWgtBkB2PtH+OjHYITuc=;\n h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version:To:\n From:Subject;\n b=Cmehpwa0Z/QPQjmvgF0DgjeKZ4Rg0K0S6Gw3UdD+mum4hkEgAj2q1yy6uGxkVVtOwnao5jBFnWApYjr+TtQeTplYg0gB9f8cGQdkJax+3lwUmOLm5WoMvFADRT5UuWtc4zcm99SeFSPmInZCHQrkZTUdJo1UdkoLraUdQoatUA4=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n content-type:date:from:message-id:mime-version:subject:to; s=\n qcppdkim1; bh=NOhwKb13MCYNK11MqTDDm60h7HDtRoU4E+aY/Qn3Ifc=; b=SC\n BftMc5DRteVyDJFWy4b1XM//Y+++APBA1uDx1KwWtwAJ9CN9SaXjaqxN7IAgD71W\n 4b8DRnq2Z7jPsBaEKh/pnQ6wf1RSmv6g3imOuh5VfDQmKaFDDS87XmL29ZL+Uji2\n /pa7BmUM2tJAVUioH+b4RaExBMy7DZ0JQy+rOvhkfTvHxSf6+tWssqECmbTEGC0B\n tQOMeZly/wtpYhW5SFAj3OW+cpQbigrZzzyKZUIWfuXbk3EZtKBZWDHME7YNv4OX\n N3Jut/fheLU3UGJrN9JmYBAVwle1MV/+p4jx/ujpF8G+Q9FLnHrTk9XZdIgB4Tcs\n l1Nrd/lw45jIvJ+MFQAA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1770490450; x=1771095250; darn=gcc.gnu.org;\n h=subject:from:to:content-language:user-agent:mime-version:date\n :message-id:from:to:cc:subject:date:message-id:reply-to;\n bh=NOhwKb13MCYNK11MqTDDm60h7HDtRoU4E+aY/Qn3Ifc=;\n b=c2hlxRIka4elMZhqgDFIfpi+eP/bgYZBQpafDCpV3GFxzkN7qRp1B8a/sDkmaL9BmC\n idmGKq8+/6hz7Yp9obyXk3baPCWEp2iWFLHU8nRkFMY0DPCFIZZ0UC2k+IY+1xM08W3P\n Z+29bEkJdaiSzwBPp9ihQ9EWv+N/C4/Khnl6U4THFtZ6q2Zp3oE6neDbZE19y5DtzlKg\n 3yNCUGLIu1pNnmfQQuVLonkP3pgKySPQnyJ6YRs4LpGzekotlUvYl3CJ59b/w7YB4oCN\n qiuHt+su5KRTmaMFkFf0Jcz5u7Im0eLfVOHP/bp+SlP1O1dgLVpc4rMyz+johOLJHD3V\n KBRQ=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770490450; x=1771095250;\n h=subject:from:to:content-language:user-agent:mime-version:date\n :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=NOhwKb13MCYNK11MqTDDm60h7HDtRoU4E+aY/Qn3Ifc=;\n b=PSbggcKHMuZEBzZFVOIZi5O/e8d23FFrO9CfmmaePBUO2GP3pmSyiPMgehdcaW/3k4\n 2QPBRtX+cDY6oI+teiujGyG+eDw5z55HmHIQYl1xX7zaVUBsrwUzbf7MKJhVvUfgmI1i\n JVY3laYYkWkwfsPcWPvcwpneZdoIHE0Hfn+goLRA3Acq/AJP87ahdXuok4DA212Tu+Z1\n FgsDM8KwIlYU75jeDvYrl554tsS3/LA6jzPueiTD/jOnGPPIRgTgt/PPBa1cNVAXsPz1\n 4cDv+7xXsLWr7wkqBeWDenOyjQ66LPJCVphQyazYOBH5FbFX0IGCeHHRyj/Qs/3jK4Qi\n 7AZQ==",
        "X-Gm-Message-State": "AOJu0Yzk46Yd7tAbeXLuKqFDP8QBL+4dXC32jFcvIHcJGRNM3/zH8uKf\n Pw1UcnOlIY6gEI2T6BVFg8xMNwI4lYtCgMeuyG66FL23EUtjfzBDIHJxdSxhBhKj5rHcC3NuR3j\n 98EIt0TJ3gqi6wxZg4h0Lxu0ErmGsanDVj2fUkvczUZDzHS07tV8qlHeo+uZv4B5skOkgMvY=",
        "X-Gm-Gg": "AZuq6aISUin5b1KFRTrkmArsOl7u8Y7h1qg/dh12q9HJJHZdW2j5I/r0GY5An2tZoXv\n ydLgyHwLwHzxg5map6KIpp8DnirMPiR156h0/PKMKFJMv4yGdtsHH6DZ6JrUe0p8Wh700wGIodU\n zYr4V7HDmPootqAMdunmVet2NSLn1lAXIvSH8d+cS6g0Jc6C5JGIzVcv+BXd6dRkIbWRaEUYJ2j\n RZc3iilRyxApCqCYIvaFQTBs1gjI7ZyOgsdzy4Bk4lMByayhDjn1LnyoOgFRMDVB1oKYtKjwOiB\n 52HPTuBL4NZZOhIrRDg0onv5E0GwNM8MqPvlK5L0nQrdUXpOyZ74tcwC/1Kt1aTLRduh0MDp/Yg\n +ShVUgSIa5Lpvsn0/tul3RufBy8rmKbpF7RnqHgOOTFqdHk7a+w==",
        "X-Received": [
            "by 2002:a05:7022:1e12:b0:123:3c65:d724 with SMTP id\n a92af1059eb24-126fc1e5039mr4079397c88.25.1770490449845;\n Sat, 07 Feb 2026 10:54:09 -0800 (PST)",
            "by 2002:a05:7022:1e12:b0:123:3c65:d724 with SMTP id\n a92af1059eb24-126fc1e5039mr4079389c88.25.1770490449187;\n Sat, 07 Feb 2026 10:54:09 -0800 (PST)"
        ],
        "Content-Type": "multipart/mixed; boundary=\"------------FcFEMoRfKWQQDHRyQLlJgysS\"",
        "Message-ID": "<674fc944-d532-468d-877f-45458a08a4ea@oss.qualcomm.com>",
        "Date": "Sat, 7 Feb 2026 11:54:07 -0700",
        "MIME-Version": "1.0",
        "User-Agent": "Mozilla Thunderbird",
        "Content-Language": "en-US",
        "To": "'GCC Patches' <gcc-patches@gcc.gnu.org>",
        "From": "Jeffrey Law <jeffrey.law@oss.qualcomm.com>",
        "Subject": "[committed] Fix testsuite scan failure on loongarch64",
        "X-Proofpoint-GUID": "D8iaAMyj4yvDb_3XSI7bQXv0fKYrRwGQ",
        "X-Proofpoint-ORIG-GUID": "D8iaAMyj4yvDb_3XSI7bQXv0fKYrRwGQ",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjA3MDE1NSBTYWx0ZWRfX0OFTcOjGQW/u\n oxWZvRR93fvDhH2lZNqDRqwk/bBzP+xcHJ328RzFsrZ1jFjV/+3LbEMbZ+o5fE4RIKn3uoi0nOy\n fNiRFvtYGcbBsp+dIl2VKxBWc8T7fxiScBKNp888gslA9yeTejurRHanf4HpZH+Mv07xI250WeN\n yFSEc5rx82g0/kfEOpfQG9Sk3vVRn6AffoDssu9j+hsVBLS40itp1ltyOVbmEC7E8KxxP2Iz+fW\n 94sOKA/OFzrt6lTeODLtp/Ea0K18IpB9jypF6PEcp6KM+7QfuBOTEmC3t4WiffhJfYrVzjjVFFy\n o7IOflAmt46e8YjuuWJZ+d/tweGlV0g+Ye50x+3jnM/OibU8vxC/qs/NmZEkwT2UEj/g9tQW7BE\n Rz2SNIGwwoOj4j0yPT1fV/v3LxCwuef2pE693cru8EzVOOx5Lq7niH+zPtCh/YjYkpW2SuiIUGU\n 0StZobY9K2StJTmnMXQ==",
        "X-Authority-Analysis": "v=2.4 cv=SNlPlevH c=1 sm=1 tr=0 ts=69878a52 cx=c_pps\n a=SvEPeNj+VMjHSW//kvnxuw==:117 a=asGLMfRmzhnGNxaIYohjRg==:17\n a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=r77TgQKjGQsHNAKrUKIA:9\n a=3ypEeHi5E1QTx-Y219QA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10\n a=2M2nnt-EG6CJXj7C_YoA:9 a=Kq8ClHjjuc5pcCNDwlU0:22",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-02-07_01,2026-02-05_03,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n bulkscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 suspectscore=0\n adultscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 malwarescore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602070155",
        "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": "Robin's patch to fix nonzero bits for the result of a popcount triggered \na minor testsuite scan failure for loongarch.  Essentially it was \nexpecting to see an ANDI for a zero-extend, but after the change we get \na slli with a count 0, which is used for sign extension on loongarch.\n\nBoth are likely equally performant.  So this just adjusts the test to \naccept both forms.  Now one could argue that the result of the popcount \nis already sign extended and you'd be right -- that's a separate missed \noptimization issue and unrelated to this testsuite regression.\n\nAnyway, pushing this to the trunk.\n\njeff\ncommit 8ad11691d3daab965fc34572e7683fe02b25e741\nAuthor: Jeff Law <jeffrey.law@oss.qualcomm.com>\nDate:   Sat Feb 7 11:49:30 2026 -0700\n\n    Fix testsuite scan failure on loongarch64\n    \n    Robin's patch to fix nonzero bits for the result of a popcount triggered a\n    minor testsuite scan failure for loongarch.  Essentially it was expecting to\n    see an ANDI for a zero-extend, but after the change we get a slli with a count\n    0, which is used for sign extension on loongarch.\n    \n    Both are likely equally performant.  So this just adjusts the test to accept\n    both forms.  Now one could argue that the result of the popcount is already\n    sign extended and you'd be right -- that's a separate missed optimization issue\n    and unrelated to this testsuite regression.\n    \n    Anyway, pushing this to the trunk.\n    \n    gcc/testsuite/\n            * gcc.dg/pr90838.c: Adjust expected output for loongarch.",
    "diff": "diff --git a/gcc/testsuite/gcc.dg/pr90838.c b/gcc/testsuite/gcc.dg/pr90838.c\nindex 8b06929cfdd..bb3567e6e75 100644\n--- a/gcc/testsuite/gcc.dg/pr90838.c\n+++ b/gcc/testsuite/gcc.dg/pr90838.c\n@@ -87,4 +87,4 @@ int ctz4 (unsigned long x)\n /* { dg-final { scan-tree-dump-times {= \\.CTZ} 4 \"forwprop2\" { target { loongarch64*-*-* } } } } */\n /* { dg-final { scan-assembler-times \"ctz.d\\t\" 1 { target { loongarch64*-*-* } } } } */\n /* { dg-final { scan-assembler-times \"ctz.w\\t\" 3 { target { loongarch64*-*-* } } } } */\n-/* { dg-final { scan-assembler-times \"andi\\t\" 4 { target { loongarch64*-*-* } } } } */\n+/* { dg-final { scan-assembler-times \"\\(andi|slli.w\\)\\t\" 4 { target { loongarch64*-*-* } } } } */\n",
    "prefixes": [
        "committed"
    ]
}