================
@@ -0,0 +1,235 @@
+// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 -DSIZELESS -triple aarch64 -target-feature +sve %s
-emit-llvm -o - | FileCheck %s --check-prefix=SIZELESS
+
+#include <stdint.h>
+
+typedef int8_t vint8x1 __attribute__((ext_vector_type(1U)));
+typedef int8_t vint8x2 __attribute__((ext_vector_type(2U)));
+typedef int8_t vint8x4 __attribute__((ext_vector_type(4U)));
+typedef int8_t vint8x8 __attribute__((ext_vector_type(8U)));
+
+typedef uint32_t vuint32x1 __attribute__((ext_vector_type(1U)));
+typedef uint32_t vuint32x2 __attribute__((ext_vector_type(2U)));
+typedef uint32_t vuint32x4 __attribute__((ext_vector_type(4U)));
+
+typedef float vfloat32x1 __attribute__((ext_vector_type(1U)));
+typedef float vfloat32x2 __attribute__((ext_vector_type(2U)));
+typedef float vfloat32x4 __attribute__((ext_vector_type(4U)));
+
+#define SPLAT_INIT(type, val) extern "C" { \
----------------
pawosm-arm wrote:
> We probably need to mostly focus on the sizeless variants though, splats are
> probably already tested somewhere.
Seems I wasn't looking for them thoroughly enough and ended up with adding the
tests for both variants here.
https://github.com/llvm/llvm-project/pull/205432
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits