get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 818585,
    "url": "http://patchwork.ozlabs.org/api/patches/818585/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20170926113950.5472-3-krebbel@linux.vnet.ibm.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": "<20170926113950.5472-3-krebbel@linux.vnet.ibm.com>",
    "list_archive_url": null,
    "date": "2017-09-26T11:39:47",
    "name": "[2/5] pr60656.c: New target check: vect_mult_long",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "58adba70d655f7f3f572d36b942798be0881c2f0",
    "submitter": {
        "id": 4421,
        "url": "http://patchwork.ozlabs.org/api/people/4421/?format=api",
        "name": "Andreas Krebbel",
        "email": "krebbel@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20170926113950.5472-3-krebbel@linux.vnet.ibm.com/mbox/",
    "series": [
        {
            "id": 5112,
            "url": "http://patchwork.ozlabs.org/api/series/5112/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=5112",
            "date": "2017-09-26T11:39:45",
            "name": "vect testsuite adjustments for S/390",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/5112/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818585/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818585/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-return-462958-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-462958-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"knoE9t48\"; dkim-atps=neutral",
            "sourceware.org; auth=none"
        ],
        "Received": [
            "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y1fC833h4z9t49\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 26 Sep 2017 21:40:20 +1000 (AEST)",
            "(qmail 34085 invoked by alias); 26 Sep 2017 11:40:06 -0000",
            "(qmail 33870 invoked by uid 89); 26 Sep 2017 11:40:06 -0000",
            "from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com)\n\t(148.163.156.1) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tTue, 26 Sep 2017 11:40:03 +0000",
            "from pps.filterd (m0098394.ppops.net [127.0.0.1])\tby\n\tmx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv8QBdGSr005554\tfor <gcc-patches@gcc.gnu.org>;\n\tTue, 26 Sep 2017 07:39:58 -0400",
            "from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com\n\t[195.75.94.106])\tby mx0a-001b2d01.pphosted.com with ESMTP id\n\t2d7k4hc7gs-1\t(version=TLSv1.2 cipher=AES256-SHA bits=256\n\tverify=NOT)\tfor <gcc-patches@gcc.gnu.org>;\n\tTue, 26 Sep 2017 07:39:58 -0400",
            "from localhost\tby e06smtp10.uk.ibm.com with IBM ESMTP SMTP\n\tGateway: Authorized Use Only! Violators will be\n\tprosecuted\tfor <gcc-patches@gcc.gnu.org> from\n\t<krebbel@linux.vnet.ibm.com>; Tue, 26 Sep 2017 12:39:56 +0100",
            "from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197)\tby\n\te06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP\n\tGateway: Authorized Use Only! Violators will be prosecuted;\n\tTue, 26 Sep 2017 12:39:54 +0100",
            "from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com\n\t[9.149.105.58])\tby b06cxnps4075.portsmouth.uk.ibm.com\n\t(8.14.9/8.14.9/NCO v10.0) with ESMTP id v8QBdrv621430502\tfor\n\t<gcc-patches@gcc.gnu.org>; Tue, 26 Sep 2017 11:39:53 GMT",
            "from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1])\tby IMSVA\n\t(Postfix) with ESMTP id 127CE4C044\tfor <gcc-patches@gcc.gnu.org>;\n\tTue, 26 Sep 2017 12:36:10 +0100 (BST)",
            "from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1])\tby IMSVA\n\t(Postfix) with ESMTP id EC6424C040\tfor <gcc-patches@gcc.gnu.org>;\n\tTue, 26 Sep 2017 12:36:09 +0100 (BST)",
            "from maggie.boeblingen.de.ibm.com (unknown [9.152.212.134])\tby\n\td06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS\tfor\n\t<gcc-patches@gcc.gnu.org>; Tue, 26 Sep 2017 12:36:09 +0100 (BST)"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:from\n\t:to:subject:date:in-reply-to:references:message-id; q=dns; s=\n\tdefault; b=A90DsmrzPjBB3/JMy+dnVoLrZX0lIljtBTJYmuz6CmTLuz0AjWE85\n\tk6OjOsR7w2k0U8yaS3Od8s14q9/KLSiI8ke2HO1WjnIn4JeCX7VlTW2nRGY/MX2s\n\t6bFQtfF+hULrp3H+JlyQweRNNs5sjzlZ4Qv6cQSCX74mbL7ZRa12Iw=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:from\n\t:to:subject:date:in-reply-to:references:message-id; s=default;\n\tbh=gMt7AiX+shu+hQgjBhY7+Tt363M=; b=knoE9t48RgszLH+lBnXZZdexhvGq\n\tz2VR1rCmeP6fBHX0Illon8gA7/N3Bx6MHQb2U0eeaStBdkouE8Y/gK/UBUY9FfXI\n\tP3054UlnF3e8RZMqPnTYu4XbVUPeKzo5oyWmeXcJ8nnNyWEhsJ0g979BB4InP7hL\n\tFKastwVySAqAZVc=",
        "Mailing-List": "contact gcc-patches-help@gcc.gnu.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "List-Archive": "<http://gcc.gnu.org/ml/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-help@gcc.gnu.org>",
        "Sender": "gcc-patches-owner@gcc.gnu.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-24.6 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tKAM_LAZY_DOMAIN_SECURITY,\n\tRCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=",
        "X-HELO": "mx0a-001b2d01.pphosted.com",
        "From": "Andreas Krebbel <krebbel@linux.vnet.ibm.com>",
        "To": "gcc-patches@gcc.gnu.org",
        "Subject": "[PATCH 2/5] pr60656.c: New target check: vect_mult_long",
        "Date": "Tue, 26 Sep 2017 13:39:47 +0200",
        "In-Reply-To": "<20170926113950.5472-1-krebbel@linux.vnet.ibm.com>",
        "References": "<20170926113950.5472-1-krebbel@linux.vnet.ibm.com>",
        "X-TM-AS-GCONF": "00",
        "x-cbid": "17092611-0040-0000-0000-000003DD2B42",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "17092611-0041-0000-0000-000025DE74F7",
        "Message-Id": "<20170926113950.5472-3-krebbel@linux.vnet.ibm.com>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-09-26_04:, , signatures=0",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=1 malwarescore=0 phishscore=0\n\tadultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx\n\tscancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1709260171",
        "X-IsSubscribed": "yes"
    },
    "content": "We don't have a 64 bit vector integer multiply on z.  Add a specific\ncheck for that.\n\n2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>\n\n\t* gcc.dg/vect/pr60656.c: Check vect_mult_long.\n\t* lib/target-supports.exp (check_effective_target_vect_mult_long):\n\tNew proc.\n---\n gcc/testsuite/gcc.dg/vect/pr60656.c   |  3 ++-\n gcc/testsuite/lib/target-supports.exp | 24 ++++++++++++++++++++++++\n 2 files changed, 26 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/gcc/testsuite/gcc.dg/vect/pr60656.c b/gcc/testsuite/gcc.dg/vect/pr60656.c\nindex d9e30bb..f44269a 100644\n--- a/gcc/testsuite/gcc.dg/vect/pr60656.c\n+++ b/gcc/testsuite/gcc.dg/vect/pr60656.c\n@@ -43,4 +43,5 @@ int main()\n   return 0;\n }\n \n-/* { dg-final { scan-tree-dump-times \"vectorized 1 loops\" 1 \"vect\" { target vect_widen_mult_si_to_di_pattern } } } */\n+/* P * P * P requires a widening multiplication first as well as a longxlong->long after that.  */\n+/* { dg-final { scan-tree-dump-times \"vectorized 1 loops\" 1 \"vect\" { target { vect_widen_mult_si_to_di_pattern && vect_mult_long } } } } */\ndiff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp\nindex b45a19e..7fdfbbb 100644\n--- a/gcc/testsuite/lib/target-supports.exp\n+++ b/gcc/testsuite/lib/target-supports.exp\n@@ -5166,6 +5166,30 @@ proc check_effective_target_vect_long { } {\n     return $answer\n }\n \n+# Return 1 if the target supports hardware vector multiplication of\n+# long operands with a long result, 0 otherwise.\n+#\n+# This can change for different subtargets so do not cache the result.\n+\n+proc check_effective_target_vect_mult_long { } {\n+    if { [istarget i?86-*-*] || [istarget x86_64-*-*]\n+\t || (([istarget powerpc*-*-*]\n+              && ![istarget powerpc-*-linux*paired*])\n+              && [check_effective_target_ilp32])\n+\t || [is-effective-target arm_neon]\n+\t || ([istarget sparc*-*-*] && [check_effective_target_ilp32])\n+\t || [istarget aarch64*-*-*]\n+\t || ([istarget mips*-*-*]\n+\t      && [et-is-effective-target mips_msa]) } {\n+\tset answer 1\n+    } else {\n+\tset answer 0\n+    }\n+\n+    verbose \"check_effective_target_vect_mult_long: returning $answer\" 2\n+    return $answer\n+}\n+\n # Return 1 if the target supports hardware vectors of float, 0 otherwise.\n #\n # This won't change for different subtargets so cache the result.\n",
    "prefixes": [
        "2/5"
    ]
}