get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226896,
    "url": "http://patchwork.ozlabs.org/api/patches/2226896/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhuph3sz8c.gcc.gcc-TEST.clyon.121.2.13@forge-stage.sourceware.org/",
    "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": "<bmm.hhuph3sz8c.gcc.gcc-TEST.clyon.121.2.13@forge-stage.sourceware.org>",
    "list_archive_url": null,
    "date": "2026-04-22T19:01:47",
    "name": "[v2,13/14] arm: [MVE intrinsics] rework vuninitialized",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "babef6821f36a4ccef95c3d404551ff0379c739c",
    "submitter": {
        "id": 92734,
        "url": "http://patchwork.ozlabs.org/api/people/92734/?format=api",
        "name": "Christophe Lyon via Sourceware Forge",
        "email": "forge-bot+clyon@forge-stage.sourceware.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhuph3sz8c.gcc.gcc-TEST.clyon.121.2.13@forge-stage.sourceware.org/mbox/",
    "series": [
        {
            "id": 501104,
            "url": "http://patchwork.ozlabs.org/api/series/501104/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501104",
            "date": "2026-04-22T19:01:35",
            "name": "arm: [MVE intrinsics] rework vpnot, vgetq_lane, vsetq_lane, vuninitialized and scalar shifts",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/501104/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226896/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226896/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=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; dmarc=none (p=none dis=none)\n header.from=forge-stage.sourceware.org",
            "sourceware.org;\n spf=pass smtp.mailfrom=forge-stage.sourceware.org",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=38.145.34.39"
        ],
        "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 4g1Bx91fQ0z1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 07:21:33 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id A965545DF0EB\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 21:21:23 +0000 (GMT)",
            "from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id 8C0EE40A1E9E\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 19:02:50 +0000 (GMT)",
            "from forge-stage.sourceware.org (localhost [IPv6:::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256)\n (No client certificate requested)\n by forge-stage.sourceware.org (Postfix) with ESMTPS id E8B8443613;\n Wed, 22 Apr 2026 19:02:46 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org A965545DF0EB",
            "OpenDKIM Filter v2.11.0 sourceware.org 8C0EE40A1E9E"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 8C0EE40A1E9E",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 8C0EE40A1E9E",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776884570; cv=none;\n b=PCAgXrWseRb6QdKPYC21EGAt6fTaTMZ9+NdyTTXWcZiovIqfBV0RQK5fIy6KDXSR/XxCJj6uFILBekbIQIogN26whI0EiNNM0Uo3Ij1/30Yd4YzcUG6gNu7jhMwRVlVmJo20Zl/RfCbqYE2DAwJeeIyFca0mE3IIwZhJGQBTViY=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776884570; c=relaxed/simple;\n bh=WU+mSiIeJ4mzEI731iNzJ5RfCY3Mz0oNyDssdA037uw=;\n h=From:Date:Subject:To:Message-ID;\n b=D4UNtGf2vVN/M961UE4KqZkQSZSjiVzEzFBVqs0kAyyB4JRj/JyyCyESRjiBp4uYEcRdkKG4NBYNPwTO0CcHJN+rVUs/9iL+uV96YKHAOI9kUjqEkuV3MSK+l+I9m3EvYLlBzazX0d0JWV/LVQhzIjmejbbw/S2SxazaT9LZ24k=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "From": "Christophe Lyon via Sourceware Forge\n <forge-bot+clyon@forge-stage.sourceware.org>",
        "Date": "Wed, 22 Apr 2026 19:01:47 +0000",
        "Subject": "[PATCH v2 13/14] arm: [MVE intrinsics] rework vuninitialized",
        "To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>",
        "Cc": "sloosemore@baylibre.com",
        "Message-ID": "\n <bmm.hhuph3sz8c.gcc.gcc-TEST.clyon.121.2.13@forge-stage.sourceware.org>",
        "X-Mailer": "batrachomyomachia",
        "X-Pull-Request-Organization": "gcc",
        "X-Pull-Request-Repository": "gcc-TEST",
        "X-Pull-Request": "https://forge.sourceware.org/gcc/gcc-TEST/pulls/121",
        "References": "\n <bmm.hhuph3sz8c.gcc.gcc-TEST.clyon.121.2.0@forge-stage.sourceware.org>",
        "In-Reply-To": "\n <bmm.hhuph3sz8c.gcc.gcc-TEST.clyon.121.2.0@forge-stage.sourceware.org>",
        "X-Patch-URL": "\n https://forge.sourceware.org/clyon/gcc-TEST/commit/1719971088263c850ae9353531ad4b0ba089bd56",
        "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>",
        "Reply-To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>,\n sloosemore@baylibre.com, clyon@gcc.gnu.org",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "From: Christophe Lyon <christophe.lyon@linaro.org>\n\nImplement vuninitialized using the new MVE builtins framework.\n\nIntroduce a new inherent1 shape to support 'vuninitializedq' with no\ntype suffix, where the expected type is taken from the first argument.\nThis can only work in C++, because C does not support such overloading.\n\ngcc/ChangeLog:\n\t* config/arm/arm-mve-builtins-base.def (vuninitializedq): Add\n\tinherent1 version.\n\t* config/arm/arm-mve-builtins-shapes.cc (nonoverloaded_base): Add\n\tno_type_suffix_p default implementation.\n\t(overloaded_base): Likewise.\n\t(inherent1): New.\n\t* config/arm/arm-mve-builtins-shapes.h (inherent1): New.\n\t* config/arm/arm-mve-builtins.cc (get_name): Add support for\n\tno_type_suffix_p.\n\t* config/arm/arm-mve-builtins.h (function_base): Add\n\tno_type_suffix_p.\n\t* config/arm/arm_mve.h (vuninitializedq_u8): Delete.\n\t(vuninitializedq_u16): Delete.\n\t(vuninitializedq_u32): Delete.\n\t(vuninitializedq_u64): Delete.\n\t(vuninitializedq_s8): Delete.\n\t(vuninitializedq_s16): Delete.\n\t(vuninitializedq_s32): Delete.\n\t(vuninitializedq_s64): Delete.\n\t(vuninitializedq_f16): Delete.\n\t(vuninitializedq_f32): Delete.\n\t(vuninitializedq): Move to not __cplusplus section.\n---\n gcc/config/arm/arm-mve-builtins-base.def  |  2 +\n gcc/config/arm/arm-mve-builtins-shapes.cc | 40 +++++++++-\n gcc/config/arm/arm-mve-builtins-shapes.h  |  1 +\n gcc/config/arm/arm-mve-builtins.cc        | 10 ++-\n gcc/config/arm/arm-mve-builtins.h         |  1 +\n gcc/config/arm/arm_mve.h                  | 92 +----------------------\n 6 files changed, 52 insertions(+), 94 deletions(-)",
    "diff": "diff --git a/gcc/config/arm/arm-mve-builtins-base.def b/gcc/config/arm/arm-mve-builtins-base.def\nindex 9b9603e87b00..b831cd8de462 100644\n--- a/gcc/config/arm/arm-mve-builtins-base.def\n+++ b/gcc/config/arm/arm-mve-builtins-base.def\n@@ -216,6 +216,7 @@ DEF_MVE_FUNCTION (vstrdq_scatter_base, store_scatter_base, integer_64, p_or_none\n DEF_MVE_FUNCTION (vstrdq_scatter_shifted, store_scatter_offset, integer_64, p_or_none)\n DEF_MVE_FUNCTION (vsubq, binary_opt_n, all_integer, mx_or_none)\n DEF_MVE_FUNCTION (vuninitializedq, inherent, all_integer_with_64, none)\n+DEF_MVE_FUNCTION (vuninitializedq, inherent1, all_integer_with_64, none)\n #undef REQUIRES_FLOAT\n \n #define REQUIRES_FLOAT true\n@@ -302,4 +303,5 @@ DEF_MVE_FUNCTION (vstrwq_scatter_base, store_scatter_base, float_32, p_or_none)\n DEF_MVE_FUNCTION (vstrwq_scatter_shifted, store_scatter_offset, float_32, p_or_none)\n DEF_MVE_FUNCTION (vsubq, binary_opt_n, all_float, mx_or_none)\n DEF_MVE_FUNCTION (vuninitializedq, inherent, all_float, none)\n+DEF_MVE_FUNCTION (vuninitializedq, inherent1, all_float, none)\n #undef REQUIRES_FLOAT\ndiff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc\nindex 741c582cef4d..3463f6184014 100644\n--- a/gcc/config/arm/arm-mve-builtins-shapes.cc\n+++ b/gcc/config/arm/arm-mve-builtins-shapes.cc\n@@ -26,6 +26,7 @@\n #include \"memmodel.h\"\n #include \"insn-codes.h\"\n #include \"optabs.h\"\n+#include \"langhooks.h\"\n #include \"arm-mve-builtins.h\"\n #include \"arm-mve-builtins-shapes.h\"\n \n@@ -403,6 +404,11 @@ struct nonoverloaded_base : public function_shape\n     return true;\n   }\n \n+  bool no_type_suffix_p () const override\n+  {\n+    return false;\n+  }\n+\n   tree\n   resolve (function_resolver &) const override\n   {\n@@ -439,6 +445,11 @@ struct overloaded_base : public function_shape\n   {\n     return true;\n   }\n+\n+  bool no_type_suffix_p () const override\n+  {\n+    return false;\n+  }\n };\n \n /* <T0>_t vfoo[_t0](<T0>_t, <T0>_t)\n@@ -1511,8 +1522,7 @@ SHAPE (getq_lane)\n /* <T0>[xN]_t vfoo_t0().\n \n    Example: vuninitializedq.\n-   int8x16_t [__arm_]vuninitializedq_s8(void)\n-   int8x16_t [__arm_]vuninitializedq(int8x16_t t)  */\n+   int8x16_t [__arm_]vuninitializedq_s8(void)  */\n struct inherent_def : public nonoverloaded_base\n {\n   void\n@@ -1524,6 +1534,32 @@ struct inherent_def : public nonoverloaded_base\n };\n SHAPE (inherent)\n \n+/* <T0>[xN]_t vfoo(<T0>_t).\n+\n+   Example: vuninitializedq.\n+   int8x16_t [__arm_]vuninitializedq(int8x16_t t)  */\n+struct inherent1_def : public nonoverloaded_base\n+{\n+  bool no_type_suffix_p () const override\n+  {\n+    return true;\n+  }\n+\n+  void\n+  build (function_builder &b, const function_group_info &group,\n+\t bool preserve_user_namespace) const override\n+  {\n+    /* Similar to inherent, but applies only to C++ because in C one cannot\n+       distinguish\n+       int16x8_t vuninitializedq(int16x8_t t) from\n+       int16x8_t vuninitializedq(int16x8_t t).\n+       In C, we still rely on the preprocessor definition in arm_mve.h.  */\n+    if (lang_GNU_CXX ())\n+      build_all (b, \"t0,t0\", group, MODE_none, preserve_user_namespace);\n+  }\n+};\n+SHAPE (inherent1)\n+\n /* <T0>_t vfoo[_t0](const <s0>_t *)\n \n    where <s0> is the scalar name of <T0>.\ndiff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/arm-mve-builtins-shapes.h\nindex 22d06ce0ebd3..c87821a8e567 100644\n--- a/gcc/config/arm/arm-mve-builtins-shapes.h\n+++ b/gcc/config/arm/arm-mve-builtins-shapes.h\n@@ -62,6 +62,7 @@ namespace arm_mve\n     extern const function_shape *const create;\n     extern const function_shape *const getq_lane;\n     extern const function_shape *const inherent;\n+    extern const function_shape *const inherent1;\n     extern const function_shape *const load;\n     extern const function_shape *const load_ext;\n     extern const function_shape *const load_ext_gather_offset;\ndiff --git a/gcc/config/arm/arm-mve-builtins.cc b/gcc/config/arm/arm-mve-builtins.cc\nindex b37c91c541bc..6ab2a1895e37 100644\n--- a/gcc/config/arm/arm-mve-builtins.cc\n+++ b/gcc/config/arm/arm-mve-builtins.cc\n@@ -907,11 +907,13 @@ function_builder::get_name (const function_instance &instance,\n     append_name (pred_suffixes[instance.pred]);\n \n   for (unsigned int i = 0; i < 2; ++i)\n-    if (!overloaded_p\n-\t|| instance.shape->explicit_type_suffix_p (i, instance.pred,\n-\t\t\t\t\t\t   instance.mode_suffix_id,\n-\t\t\t\t\t\t   instance.type_suffix (i)))\n+    if ((!overloaded_p\n+\t || instance.shape->explicit_type_suffix_p (i, instance.pred,\n+\t\t\t\t\t\t    instance.mode_suffix_id,\n+\t\t\t\t\t\t    instance.type_suffix (i)))\n+\t&& !instance.shape->no_type_suffix_p ())\n       append_name (instance.type_suffix (i).string);\n+\n   return finish_name ();\n }\n \ndiff --git a/gcc/config/arm/arm-mve-builtins.h b/gcc/config/arm/arm-mve-builtins.h\nindex 3a0d50dc64ce..66eb7cff33ca 100644\n--- a/gcc/config/arm/arm-mve-builtins.h\n+++ b/gcc/config/arm/arm-mve-builtins.h\n@@ -586,6 +586,7 @@ public:\n   virtual bool skip_overload_p (enum predication_index,\n \t\t\t\tenum mode_suffix_index) const = 0;\n   virtual bool mode_after_pred () const = 0;\n+  virtual bool no_type_suffix_p () const = 0;\n \n   /* Define all functions associated with the given group.  */\n   virtual void build (function_builder &,\ndiff --git a/gcc/config/arm/arm_mve.h b/gcc/config/arm/arm_mve.h\nindex 9710be53911a..e34c6a768b9c 100644\n--- a/gcc/config/arm/arm_mve.h\n+++ b/gcc/config/arm/arm_mve.h\n@@ -44,96 +44,8 @@\n #pragma GCC arm \"arm_mve.h\" false\n #endif\n \n-#ifndef __ARM_MVE_PRESERVE_USER_NAMESPACE\n-#define vuninitializedq(__v) __arm_vuninitializedq(__v)\n-\n-\n-#define vuninitializedq_u8(void) __arm_vuninitializedq_u8(void)\n-#define vuninitializedq_u16(void) __arm_vuninitializedq_u16(void)\n-#define vuninitializedq_u32(void) __arm_vuninitializedq_u32(void)\n-#define vuninitializedq_u64(void) __arm_vuninitializedq_u64(void)\n-#define vuninitializedq_s8(void) __arm_vuninitializedq_s8(void)\n-#define vuninitializedq_s16(void) __arm_vuninitializedq_s16(void)\n-#define vuninitializedq_s32(void) __arm_vuninitializedq_s32(void)\n-#define vuninitializedq_s64(void) __arm_vuninitializedq_s64(void)\n-#define vuninitializedq_f16(void) __arm_vuninitializedq_f16(void)\n-#define vuninitializedq_f32(void) __arm_vuninitializedq_f32(void)\n-#endif\n-\n #ifdef __cplusplus\n \n-__extension__ extern __inline uint8x16_t\n-__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))\n-__arm_vuninitializedq (uint8x16_t /* __v ATTRIBUTE UNUSED */)\n-{\n- return __arm_vuninitializedq_u8 ();\n-}\n-\n-__extension__ extern __inline uint16x8_t\n-__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))\n-__arm_vuninitializedq (uint16x8_t /* __v ATTRIBUTE UNUSED */)\n-{\n- return __arm_vuninitializedq_u16 ();\n-}\n-\n-__extension__ extern __inline uint32x4_t\n-__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))\n-__arm_vuninitializedq (uint32x4_t /* __v ATTRIBUTE UNUSED */)\n-{\n- return __arm_vuninitializedq_u32 ();\n-}\n-\n-__extension__ extern __inline uint64x2_t\n-__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))\n-__arm_vuninitializedq (uint64x2_t /* __v ATTRIBUTE UNUSED */)\n-{\n- return __arm_vuninitializedq_u64 ();\n-}\n-\n-__extension__ extern __inline int8x16_t\n-__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))\n-__arm_vuninitializedq (int8x16_t /* __v ATTRIBUTE UNUSED */)\n-{\n- return __arm_vuninitializedq_s8 ();\n-}\n-\n-__extension__ extern __inline int16x8_t\n-__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))\n-__arm_vuninitializedq (int16x8_t /* __v ATTRIBUTE UNUSED */)\n-{\n- return __arm_vuninitializedq_s16 ();\n-}\n-\n-__extension__ extern __inline int32x4_t\n-__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))\n-__arm_vuninitializedq (int32x4_t /* __v ATTRIBUTE UNUSED */)\n-{\n- return __arm_vuninitializedq_s32 ();\n-}\n-\n-__extension__ extern __inline int64x2_t\n-__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))\n-__arm_vuninitializedq (int64x2_t /* __v ATTRIBUTE UNUSED */)\n-{\n- return __arm_vuninitializedq_s64 ();\n-}\n-\n-#if (__ARM_FEATURE_MVE & 2) /* MVE Floating point.  */\n-__extension__ extern __inline float16x8_t\n-__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))\n-__arm_vuninitializedq (float16x8_t /* __v ATTRIBUTE UNUSED */)\n-{\n- return __arm_vuninitializedq_f16 ();\n-}\n-\n-__extension__ extern __inline float32x4_t\n-__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))\n-__arm_vuninitializedq (float32x4_t /* __v ATTRIBUTE UNUSED */)\n-{\n- return __arm_vuninitializedq_f32 ();\n-}\n-#endif /* __ARM_FEATURE_MVE & 2 (MVE floating point)  */\n-\n #else\n enum {\n     __ARM_mve_type_fp_n = 1,\n@@ -369,6 +281,10 @@ extern void *__ARM_undef;\n     _Generic(param, type: param, const type: param, default: _Generic (param, float*: param, default: *(type *)__ARM_undef))\n #endif\n \n+#ifndef __ARM_MVE_PRESERVE_USER_NAMESPACE\n+#define vuninitializedq(__v) __arm_vuninitializedq(__v)\n+#endif\n+\n #if (__ARM_FEATURE_MVE & 2) /* MVE Floating point.  */\n \n #define __arm_vuninitializedq(p0) ({ __typeof(p0) __p0 = (p0); \\\n",
    "prefixes": [
        "v2",
        "13/14"
    ]
}