get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226948,
    "url": "http://patchwork.ozlabs.org/api/patches/2226948/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/45d9d703-a091-4613-9b9b-6398b913f934@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": "<45d9d703-a091-4613-9b9b-6398b913f934@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-04-22T19:39:38",
    "name": "[to-be-committed,PR,target/124029,RISC-V] Adjust cost of comparisons",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "41bd58b0471e45a85bca3271f058f76f044d41bf",
    "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/45d9d703-a091-4613-9b9b-6398b913f934@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 501117,
            "url": "http://patchwork.ozlabs.org/api/series/501117/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501117",
            "date": "2026-04-22T19:39:38",
            "name": "[to-be-committed,PR,target/124029,RISC-V] Adjust cost of comparisons",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501117/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226948/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226948/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=lZ8a4a4m;\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=fGNbuWAq;\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 (2048-bit key,\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=lZ8a4a4m;\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=fGNbuWAq",
            "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.180.131"
        ],
        "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 4g1Cfm4XN0z1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 07:54:08 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id CBC9F4858454\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 21:54:06 +0000 (GMT)",
            "from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com\n [205.220.180.131])\n by sourceware.org (Postfix) with ESMTPS id 1126343B2630\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 19:39:43 +0000 (GMT)",
            "from pps.filterd (m0279873.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63MG6a0T872740\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 19:39:42 GMT",
            "from mail-dy1-f197.google.com (mail-dy1-f197.google.com\n [74.125.82.197])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dq1jh0sj2-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 19:39:42 +0000 (GMT)",
            "by mail-dy1-f197.google.com with SMTP id\n 5a478bee46e88-2bdf6fe90a9so7797518eec.1\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 12:39:42 -0700 (PDT)",
            "from [10.46.1.215] ([156.39.10.100])\n by smtp.gmail.com with ESMTPSA id\n 5a478bee46e88-2e539fa244csm23831445eec.2.2026.04.22.12.39.39\n for <gcc-patches@gcc.gnu.org>\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Wed, 22 Apr 2026 12:39:39 -0700 (PDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org CBC9F4858454",
            "OpenDKIM Filter v2.11.0 sourceware.org 1126343B2630"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 1126343B2630",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 1126343B2630",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776886783; cv=none;\n b=asYJGjzpSjUOqq31B5uyvQlPyCyNPQiDCHUV7sUDJTnjnz3G9w4oniYaVeZJIb+W2VwZ4U0y+Y+8mZ3Mf9QdulRBMs8ZqObOyV9BAQGAqatQqK73JxZMLyMlzRFU9x7Q1YTgeuWybX7U4+HrlQ1LpjDsFaemlUd8IEs1i6CdfdM=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776886783; c=relaxed/simple;\n bh=AgGJ9q+WjwPCJOwKdBLPS8f1SbrLUxvg/ja+SaBwBxM=;\n h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version:To:\n From:Subject;\n b=j2GZuXRKC2hj+jLJsBLbCfG4umXyymOyDf485NQyaCoO1lEHYEKgT8VCKmsrg2TYI1ZzCuG4pYGwgiEV0lWylfBYCmPC3X4GpruUXWYQ6FonnAfNM2TvTWN+jCAIOakCKvSnFsWlYqLtnfZPMZBpTZOBd3jejbaUWERzcNeM+ZY=",
        "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=iMhuapSIKYYYkIEjFDJCAwYmmbjPpgBZUumCzuWSKa8=; b=lZ\n 8a4a4mud0VbiXuqbz4xkOnEHZ7/FyHH3WCH1hKFNkcRUDqB6wr1haLpTmJZYIYyJ\n oXKny22cRmBEqlolMoFY1iD3aTbIeFvuJnwOGi+olbSJKiVwSnN8P9Hze5c7hMRu\n IIo5HKpcGvyCIU5pJNYooZebM2q6F8QMs5aPrEE+8QdlBA3YKHQbA4SNdvFZohyS\n tqK1r5HdS7b9PZ4uTizk3pUuY+mTe52eiVdnQDAjUGVuB6OrYJ5osQPNgNJwyWUi\n EU7oInDAXBH2LOHWqAEDxWiJP2LKrN00N2C5E+pyV3qw6vb4xDm0EdZhgjW+QYBy\n 9JsCBL6lBohfHkGtN2uw==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1776886781; x=1777491581; 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=iMhuapSIKYYYkIEjFDJCAwYmmbjPpgBZUumCzuWSKa8=;\n b=fGNbuWAqLPZidUq/sAWCWdLsw+nMyqvDkHW9imTB756U8bZYvHFQ8hGuhes+5roY2y\n rLXo4iAAnlURxCXNQS6qqb/UAxPrlFJIe0JqgIJL3L0OGJ+glYE3aUntzJq5Ppp7BWBE\n OfYetGRUwQCWSxov4qW05mir6wIc1fxNj1jLuFF6ZDlySmtYokbHvWakSIVlq29zwgr+\n 5XPsrMOrLDsdl3ocDK/ozNuiwQnzXWe3YfTMwb/5khETrxFxBGV9RVRxdrzxxEaCUL9X\n TnvbsUbAO1PElPdfkRTyYMurjUZC/ioZMGEWHwKG7R+QTUKAHXI9sr17tWEuiNuDFaip\n hipA=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776886781; x=1777491581;\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=iMhuapSIKYYYkIEjFDJCAwYmmbjPpgBZUumCzuWSKa8=;\n b=Z6hanR25N9e/7shjLDKBaHWGo13xLMozPuHGZz0KhUMmJgpGoy1Qj0MMcmkVMIHOeZ\n GGSNp6MWTLM/681eMTUR7PY4KYdStbMPmUtH8nTfVoZMtzdwcZ3oiM4ImaKe/BJxGQtD\n yLMIEmdTbYAHaREBBZyysyOTcJ6MlBCXo1I+ta0vA56JytYvvBWYmIhp17setdEf5a5L\n vbvJ4RatqtqIjglXMsjLJItrcir6DTHuVwAG7B6NYNU1pgCyyCpFk8ZjCnej7FVv6ZsS\n 3r8xLhG4B3vAjHK1HiMR6DC2Xd1FajBNZt8T/VdPXvA2ozd7k8NRovG+oYnAfTHzFnHZ\n QpSQ==",
        "X-Gm-Message-State": "AOJu0Yx9E1RAXYd4MRm8E9ap+I+kZpZKAZ5mhX8K9nd3ic8owBk6usp2\n Eg0gKhuahWCuhQPJuuk+HpEGnm9IzsMMtq1dh2lQIpdm2Ly1QjSoQmnfXv1LR/niz2KbTEoWsiw\n jFoHS52PFVl6OwfPRZaXnJZUa8togRj8ePEMCDHdXbtUbkwfpZQsPFLQqTNlMjbuGP8ED",
        "X-Gm-Gg": "AeBDieuyxXPy213P31C7yggrg7SnzHg5kWiCY2MwRPlxBTnHURtkw86bdwyvr6sHKVE\n SXpr3BDJrUmu7fljofT5KceMsOueI1avgFQkL4v8zATjOVtYaW9o0XBbnV2Jl5hVMtAhoTmjzjh\n BEcmXb78nosb40oRaYK3PjTorQEan3E7CkXKG9GkFPVRatZDktaaUwlFdjsDT5MP0SZUnGy8z4D\n ywclmeDSGws9Zv1H2J90wXwvzG9HDiqsLR0V+ykAz+HEHwRL2Pde2WtlaPfWGDBOXvr7wrpDNOC\n H5gt/BBgCyWT00WPKxzcC/o16P3bM1ywdCt3GU3lck2KjMaLItXLqd6Uep3l/TLfd0G5X42oR+H\n vROK1nt3jqPTqbYis43q7FEAJZy08+V6dN2mBDF516GtSPSPPQmZS9GUAiKk=",
        "X-Received": [
            "by 2002:a05:7300:4311:b0:2e2:185b:87d9 with SMTP id\n 5a478bee46e88-2e478a31a3dmr13971838eec.20.1776886781147;\n Wed, 22 Apr 2026 12:39:41 -0700 (PDT)",
            "by 2002:a05:7300:4311:b0:2e2:185b:87d9 with SMTP id\n 5a478bee46e88-2e478a31a3dmr13971820eec.20.1776886780469;\n Wed, 22 Apr 2026 12:39:40 -0700 (PDT)"
        ],
        "Content-Type": "multipart/mixed; boundary=\"------------fcQ0i082f0iisjr0A0zZEh0n\"",
        "Message-ID": "<45d9d703-a091-4613-9b9b-6398b913f934@oss.qualcomm.com>",
        "Date": "Wed, 22 Apr 2026 13:39:38 -0600",
        "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": "[to-be-committed] [PR target/124029][RISC-V] Adjust cost of\n comparisons",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDIyMDE5MCBTYWx0ZWRfX+HidGAm/1FNV\n xQlP1sAHZ4CsfOePXJcCoVkT7GyW6aSrDfOL1lNp8PtxQD9iGanIGtVKI6ag+OEHm41boTCzx3N\n qAurRQUX06hVFBtbPIJwkkQSGl9a7OSWmvgTknLGeaITKhasTlNNWpopJxy7z2Ol6WvNXRPpBR7\n 8i5WVZD2Wxm02CF9jlyDqh21LnNvGJI1bhT4QkHHvhOO1Sht3WhS33oVDF1tCl3cX1077V5OwKQ\n SOCl+ntbv4oXPWSkTJl7s0GXOzf6pADpOQxgZYPmjzyNDal8/Ei4VNFzolyydMri9Dju8ArmTq5\n 7qIQyMkdiD4Omp1P4gIgCAej4OJh3HPa8OEXbhUPHuJjLJmqIbK7c/yt3NhpYJkQmbeawv8RSOG\n 45DwCHXyzYdXe00iIcOIGl99CVJrDrvbcBtVx/1ukb20fYDuZkHGA8G5mYIzNzNlDvNiTUWfaQ2\n UfxIb3CDEV3y9ROLIZg==",
        "X-Authority-Analysis": "v=2.4 cv=OeyoyBTY c=1 sm=1 tr=0 ts=69e923fe cx=c_pps\n a=Uww141gWH0fZj/3QKPojxA==:117 a=kJYw8c1j/Urq+f/btClceA==:17\n a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=r77TgQKjGQsHNAKrUKIA:9\n a=EUspDBNiAAAA:8 a=5kkBzLU9rFzGSQnAyFQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10\n a=dyhysQozTCvwF45XDxsA:9 a=B2y7HmGcmWMA:10 a=PxkB5W3o20Ba91AHUih5:22",
        "X-Proofpoint-GUID": "Z3mv4hGHd7re0-XrE5bQmjKQqnUV_159",
        "X-Proofpoint-ORIG-GUID": "Z3mv4hGHd7re0-XrE5bQmjKQqnUV_159",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-22_02,2026-04-21_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n impostorscore=0 bulkscore=0 adultscore=0 suspectscore=0 phishscore=0\n clxscore=1015 spamscore=0 lowpriorityscore=0 malwarescore=0\n priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000\n definitions=main-2604220190",
        "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": "[PR target/124029][RISC-V] Adjust cost of comparisons\n\n     > Given this is a relatively straightforward define_split, it is \nlikely a good\n     > case for Austin to chase down.\n\n     Actually it is easier than that\n     The middle-end has a costing mechism for this already:\n     ```\n     ;; cmp: le, old cst: (const_int 268435455 [0xfffffff]) new cst: \n(const_int 268435456 [0x10000000])\n     ;; old cst cost: 4, new cst cost: 4\n     ```\n\n     You need to implement a COMPARE cost part of the riscv_rtx_costs \nlike it is\n     done for aarch64_rtx_costs.\n\n     It won't be 100% exact because in riscv case there is no COMPARE \ninstruction.\n     But at least it might be more about the costs of generating which \nconstant and\n     all.\n\n             PR target/124029\n     gcc/\n             * config/riscv/riscv.cc (riscv_rtx_costs): Improve costing \nof COMPARE\n             nodes.\n\n     gcc/testsuite\n             * gcc.target/riscv/pr124029.c: New test.\n             * gcc.target/riscv/rvv/autovec/struct/struct_vect-2.c: Adjust\n             expected output.\n\n         Co-authored-by: Jeff Law <jeffrey.law@oss.qualcomm.com>:\n\nMy contribution was primarily testing and minor testsuite adjustment.  \nThis is going first in the RISC-V patch queue mostly because I know it \ndoesn't conflict with anything :-)  There's a ton of stuff that will \nstart trickling to the trunk.  Assuming patchwork is up (I haven't \nlooked in the last week or so), I'll wait for confirmation that this \ndoesn't regress anything.\n\n\n\nJeff\ncommit ae0d6f3550879c9e9ad32621442c41d5e98895d7\nAuthor: Andrew Pinski <andrew.pinski@oss.qualcomm.com>\nDate:   Wed Apr 22 13:29:26 2026 -0600\n\n    [PR target/124029][RISC-V] Adjust cost of comparisons\n    \n    > Given this is a relatively straightforward define_split, it is likely a good\n    > case for Austin to chase down.\n    \n    Actually it is easier than that\n    The middle-end has a costing mechism for this already:\n    ```\n    ;; cmp: le, old cst: (const_int 268435455 [0xfffffff]) new cst: (const_int 268435456 [0x10000000])\n    ;; old cst cost: 4, new cst cost: 4\n    ```\n    \n    You need to implement a COMPARE cost part of the riscv_rtx_costs like it is\n    done for aarch64_rtx_costs.\n    \n    It won't be 100% exact because in riscv case there is no COMPARE instruction.\n    But at least it might be more about the costs of generating which constant and\n    all.\n    \n            PR target/124029\n    gcc/\n            * config/riscv/riscv.cc (riscv_rtx_costs): Improve costing of COMPARE\n            nodes.\n    \n    gcc/testsuite\n            * gcc.target/riscv/pr124029.c: New test.\n            * gcc.target/riscv/rvv/autovec/struct/struct_vect-2.c: Adjust\n            expected output.\n    \n        Co-authored-by: Jeff Law  <jeffrey.law@oss.qualcomm.com>",
    "diff": "diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc\nindex 8a39c791c26..ca83c8e78d0 100644\n--- a/gcc/config/riscv/riscv.cc\n+++ b/gcc/config/riscv/riscv.cc\n@@ -4284,7 +4284,9 @@ riscv_rtx_costs (rtx x, machine_mode mode, int outer_code, int opno ATTRIBUTE_UN\n \t\tbeen to duplicate the operation than to CSE the constant.\n \t     3. TODO: make cost more accurate specially if riscv_const_insns\n \t\treturns > 1.  */\n-\t  if (outer_code == SET || GET_MODE (x) == VOIDmode)\n+\t  if (outer_code == COMPARE)\n+\t    *total = COSTS_N_INSNS (cost);\n+\t  else if (outer_code == SET || GET_MODE (x) == VOIDmode)\n \t    *total = COSTS_N_INSNS (1);\n \t}\n       else /* The instruction will be fetched from the constant pool.  */\ndiff --git a/gcc/testsuite/gcc.target/riscv/pr124029.c b/gcc/testsuite/gcc.target/riscv/pr124029.c\nnew file mode 100644\nindex 00000000000..a74258e0c0d\n--- /dev/null\n+++ b/gcc/testsuite/gcc.target/riscv/pr124029.c\n@@ -0,0 +1,18 @@\n+/* { dg-do compile */\n+/* { dg-options \"-march=rv64gcvb_zicond -mabi=lp64d\" { target { rv64 } } } */\n+/* { dg-options \"-march=rv32gcvb_zicond -mabi=ilp32\" { target { rv32 } } } */\n+/* { dg-skip-if \"\" { *-*-* } { \"-O0\" \"-O1\" \"-Og\" } } */\n+\n+void frob (void);\n+void\n+refine_subpel (int cost, int b_chroma_me)\n+{\n+\n+  int bcost = bcost = (1 << 28);\n+  if (b_chroma_me && cost < bcost)\n+    frob ();\n+}\n+\n+/* { dg-final { scan-assembler-not \"addi\\t\" } } */\n+/* { dg-final { scan-assembler-not \"seqz\\t\" } } */\n+\ndiff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect-2.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect-2.c\nindex 52ded08faf5..6a1605e2655 100644\n--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect-2.c\n+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect-2.c\n@@ -8,7 +8,7 @@\n /* { dg-final { scan-assembler-times {vlseg3e16\\.v} 8 } } */\n /* { dg-final { scan-assembler-times {vlseg4e16\\.v} 8 } } */\n /* { dg-final { scan-assembler-times {vlseg5e16\\.v} 8 } } */\n-/* { dg-final { scan-assembler-times {vlseg6e16\\.v} 4 } } */\n+/* { dg-final { scan-assembler-times {vlseg6e16\\.v} 8 } } */\n /* { dg-final { scan-assembler-times {vlseg7e16\\.v} 4 } } */\n /* { dg-final { scan-assembler-times {vlseg8e16\\.v} 4 } } */\n /* { dg-final { scan-assembler-times {vsseg2e16\\.v} 8 } } */\n@@ -16,7 +16,7 @@\n /* { dg-final { scan-assembler-times {vsseg4e16\\.v} 4 } } */\n /* { dg-final { scan-assembler-times {vsseg5e16\\.v} 4 } } */\n /* { dg-final { scan-assembler-times {vsseg6e16\\.v} 4 } } */\n-/* { dg-final { scan-assembler-times {vsseg7e16\\.v} 2 } } */\n+/* { dg-final { scan-assembler-times {vsseg7e16\\.v} 4 } } */\n /* { dg-final { scan-assembler-times {vsseg8e16\\.v} 2 } } */\n /* { dg-final { scan-assembler-times {vsetivli\\s+zero,\\s*8,\\s*e16,\\s*m1,\\s*t[au],\\s*m[au]} 14 } } */\n /* { dg-final { scan-assembler-not {vsetvli} } } */\n",
    "prefixes": [
        "to-be-committed",
        "PR",
        "target/124029",
        "RISC-V"
    ]
}