get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217338,
    "url": "http://patchwork.ozlabs.org/api/patches/2217338/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260327215256.422800-1-vineet.gupta@linux.dev/",
    "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": "<20260327215256.422800-1-vineet.gupta@linux.dev>",
    "list_archive_url": null,
    "date": "2026-03-27T21:52:55",
    "name": "[1/2] bpf: md: de-duplicate mode SIM with prior AM [NFC]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "edb42917610614f0489ebb39ee257f030be48745",
    "submitter": {
        "id": 82303,
        "url": "http://patchwork.ozlabs.org/api/people/82303/?format=api",
        "name": "Vineet Gupta",
        "email": "vineet.gupta@linux.dev"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260327215256.422800-1-vineet.gupta@linux.dev/mbox/",
    "series": [
        {
            "id": 497839,
            "url": "http://patchwork.ozlabs.org/api/series/497839/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=497839",
            "date": "2026-03-27T21:52:56",
            "name": "[1/2] bpf: md: de-duplicate mode SIM with prior AM [NFC]",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497839/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217338/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217338/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 (1024-bit key;\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=bk+5Opre;\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 (1024-bit key,\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=bk+5Opre",
            "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=linux.dev",
            "sourceware.org; spf=pass smtp.mailfrom=linux.dev",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=91.218.175.170"
        ],
        "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 4fjDvN0dFrz1yGQ\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 08:54:39 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 89B384BA23F9\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 21:54:37 +0000 (GMT)",
            "from out-170.mta0.migadu.com (out-170.mta0.migadu.com\n [91.218.175.170])\n by sourceware.org (Postfix) with ESMTPS id 822514BA23D0\n for <gcc-patches@gcc.gnu.org>; Fri, 27 Mar 2026 21:53:31 +0000 (GMT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 89B384BA23F9",
            "OpenDKIM Filter v2.11.0 sourceware.org 822514BA23D0"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 822514BA23D0",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 822514BA23D0",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774648411; cv=none;\n b=Rshmb+X8ZwvKXyoAeVzJG46/d7dL0SzwS/He73af7aeQqDadQC8HwRUYP6P6N+v8RF3vvq0MV2n+J08zATVqqHiHnmTFlKxCk1cjBplBEUIsLX2BhrxiTJEGGmr8+4LLpf1mTjeBJJpFwoXSsHDbtojjaNGY/YjyPOohsXlXn7Y=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774648411; c=relaxed/simple;\n bh=TNBNiHNAMDhS0eitYYJGnEX4GkgqqSLuibVI+kbSLso=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=JFXhgCENdMs4EnQrmNDWNNXktSNHIXfEZbKn086ic7LtYu75OmYYEXRa8ma8AbuL/fCopKlvrSrZdsqDCWHuhI/u2gL4+ZPE2oDxFiD1YfT0yYVh3txZg7Q5l/vs69cgddiGkS39Xq6mmS9dBzKm2ZSNGTHfFfcaAr42RiLyeuA=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "X-Report-Abuse": "Please report any abuse attempt to abuse@migadu.com and\n include these headers.",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1;\n t=1774648410;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=qd7c8dsRaS28rsbaZk1RNhd5sUGU7zL0HS1YC50t26U=;\n b=bk+5OpreCiabRz68W2365tidOGz5r1w2lYFePZbh4K2XuN5RUVWD0EhK7KncRbdpQhwJZ8\n kXaWKDzsejSOWoiQ2MR7wTupFOWIfPymB7WcE9tbi1cekx1TxE94hhVKEzBrNjPYnMDp92\n 5WfeZf1TbncyldmjEEL42Q7lcvqFA0A=",
        "From": "Vineet Gupta <vineet.gupta@linux.dev>",
        "To": "bpf@gcc.gnu.org",
        "Cc": "gcc-patches@gcc.gnu.org, jose.marchesi@oracle.com, ast@kernel.org,\n Eduard Zingerman <eddyz87@gmail.com>,\n Yonghong Song <yonghong.song@linux.dev>,\n Vineet Gupta <vineet.gupta@linux.dev>",
        "Subject": "[PATCH 1/2] bpf: md: de-duplicate mode SIM with prior AM [NFC]",
        "Date": "Fri, 27 Mar 2026 14:52:55 -0700",
        "Message-ID": "<20260327215256.422800-1-vineet.gupta@linux.dev>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Migadu-Flow": "FLOW_OUT",
        "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": "gcc/ChangeLog:\n\n\t* config/bpf/bpf.md: Remove duplicate mode iterator SIM.\n\t(ashr<SIM:mode>3): Remove.\n\t(ashr<AM:mode>3): Add.\n\t(ashl<SIM:mode>3): Remove.\n\t(ashl<AM:mode>3): Add.\n\t(lshr<SIM:mode>3): Remove.\n\t(lshr<AM:mode>3): Add.\n\nSigned-off-by: Vineet Gupta <vineet.gupta@linux.dev>\n---\n gcc/config/bpf/bpf.md | 26 ++++++++++++--------------\n 1 file changed, 12 insertions(+), 14 deletions(-)",
    "diff": "diff --git a/gcc/config/bpf/bpf.md b/gcc/config/bpf/bpf.md\nindex bc739f2746c0..48fa94fd4650 100644\n--- a/gcc/config/bpf/bpf.md\n+++ b/gcc/config/bpf/bpf.md\n@@ -392,28 +392,26 @@\n \n ;;;; Shifts\n \n-(define_mode_iterator SIM [(SI \"bpf_has_alu32\") DI])\n-\n-(define_insn \"ashr<SIM:mode>3\"\n-  [(set (match_operand:SIM 0 \"register_operand\"                 \"=r,r\")\n-        (ashiftrt:SIM (match_operand:SIM 1 \"register_operand\"   \" 0,0\")\n-                      (match_operand:SIM 2 \"reg_or_imm_operand\" \" r,I\")))]\n+(define_insn \"ashr<AM:mode>3\"\n+  [(set (match_operand:AM 0 \"register_operand\"                 \"=r,r\")\n+        (ashiftrt:AM (match_operand:AM 1 \"register_operand\"   \" 0,0\")\n+                      (match_operand:AM 2 \"reg_or_imm_operand\" \" r,I\")))]\n   \"\"\n   \"{arsh<msuffix>\\t%0,%2|%w0 s>>= %w2}\"\n   [(set_attr \"type\" \"<mtype>\")])\n \n-(define_insn \"ashl<SIM:mode>3\"\n-  [(set (match_operand:SIM 0 \"register_operand\"               \"=r,r\")\n-        (ashift:SIM (match_operand:SIM 1 \"register_operand\"   \" 0,0\")\n-                    (match_operand:SIM 2 \"reg_or_imm_operand\" \" r,I\")))]\n+(define_insn \"ashl<AM:mode>3\"\n+  [(set (match_operand:AM 0 \"register_operand\"               \"=r,r\")\n+        (ashift:AM (match_operand:AM 1 \"register_operand\"   \" 0,0\")\n+                    (match_operand:AM 2 \"reg_or_imm_operand\" \" r,I\")))]\n   \"\"\n   \"{lsh<msuffix>\\t%0,%2|%w0 <<= %w2}\"\n   [(set_attr \"type\" \"<mtype>\")])\n \n-(define_insn \"lshr<SIM:mode>3\"\n-  [(set (match_operand:SIM 0 \"register_operand\"                 \"=r,r\")\n-        (lshiftrt:SIM (match_operand:SIM 1 \"register_operand\"   \" 0,0\")\n-                      (match_operand:SIM 2 \"reg_or_imm_operand\" \" r,I\")))]\n+(define_insn \"lshr<AM:mode>3\"\n+  [(set (match_operand:AM 0 \"register_operand\"                 \"=r,r\")\n+        (lshiftrt:AM (match_operand:AM 1 \"register_operand\"   \" 0,0\")\n+                      (match_operand:AM 2 \"reg_or_imm_operand\" \" r,I\")))]\n   \"\"\n   \"{rsh<msuffix>\\t%0,%2|%w0 >>= %w2}\"\n   [(set_attr \"type\" \"<mtype>\")])\n",
    "prefixes": [
        "1/2"
    ]
}