[clang] [clang][Sema] Allow splat initialization of a sizeless vector in a C++ code (PR #205432)

Paul Osmialowski via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 24 08:59:04 PDT 2026


================
@@ -0,0 +1,81 @@
+// RUN: %clang_cc1 -triple aarch64 -target-feature +sve %s -emit-llvm -o - | FileCheck %s
+
+#include <stdint.h>
+
+// CHECK-LABEL: @__SVInt8_t_fun(
+// CHECK: store <vscale x {{[0-9]*}} x i8> splat (i8 123), ptr %[[RETPTR:.*]]
+// CHECK: %[[RETVAL:.*]] = load <vscale x {{[0-9]*}} x i8>, ptr %[[RETPTR]]
+// CHECK: ret <vscale x {{[0-9]*}} x i8> %[[RETVAL]]
+extern "C" {
----------------
pawosm-arm wrote:

Ok, so the labels could be adjusted and be mangling-resistant. I've also added test cases for assignment.

https://github.com/llvm/llvm-project/pull/205432


More information about the cfe-commits mailing list