[clang] [AARCH64] Fix failing builtin tests (PR #245400)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 23 13:49:16 PST 2026
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/245400
A recent change to add SVE vector kind information in CIR missed a few tests in the clang/test/CodeGen/AArch64/sve directory. This change updates those tests.
>From 0128895d7a2251a7ecf46821bb3eae65702fa56e Mon Sep 17 00:00:00 2001
From: Andy Kaylor <akaylor at nvidia.com>
Date: Mon, 23 Nov 2026 13:46:20 -0800
Subject: [PATCH] [AARCH64] Fix failing builtin tests
A recent change to add SVE vector kind information in CIR missed a few
tests in the clang/test/CodeGen/AArch64/sve directory. This change updates
those tests.
---
clang/test/CodeGen/AArch64/sve/rinta.c | 48 +++++++++++++-------------
clang/test/CodeGen/AArch64/sve/rintm.c | 48 +++++++++++++-------------
clang/test/CodeGen/AArch64/sve/rintn.c | 48 +++++++++++++-------------
clang/test/CodeGen/AArch64/sve/rintp.c | 48 +++++++++++++-------------
4 files changed, 96 insertions(+), 96 deletions(-)
diff --git a/clang/test/CodeGen/AArch64/sve/rinta.c b/clang/test/CodeGen/AArch64/sve/rinta.c
index e107d903a09a0d..a839642ca73713 100644
--- a/clang/test/CodeGen/AArch64/sve/rinta.c
+++ b/clang/test/CodeGen/AArch64/sve/rinta.c
@@ -43,11 +43,11 @@
// CPP-LABEL: @_Z18test_svrinta_f16_zu10__SVBool_tu13__SVFloat16_t(
svfloat16_t test_svrinta_f16_z(svbool_t pg, svfloat16_t op) MODE_ATTR
{
-// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[8] x !cir.f16>
+// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[8] x !cir.f16, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frinta" %[[CONST_0]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -60,11 +60,11 @@ svfloat16_t test_svrinta_f16_z(svbool_t pg, svfloat16_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrinta_f32_zu10__SVBool_tu13__SVFloat32_t(
svfloat32_t test_svrinta_f32_z(svbool_t pg, svfloat32_t op) MODE_ATTR
{
-// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[4] x !cir.float>
+// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[4] x !cir.float, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frinta" %[[CONST_0]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -77,11 +77,11 @@ svfloat32_t test_svrinta_f32_z(svbool_t pg, svfloat32_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrinta_f64_zu10__SVBool_tu13__SVFloat64_t(
svfloat64_t test_svrinta_f64_z(svbool_t pg, svfloat64_t op) MODE_ATTR
{
-// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[2] x !cir.double>
+// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[2] x !cir.double, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frinta" %[[CONST_0]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
@@ -95,9 +95,9 @@ svfloat64_t test_svrinta_f64_z(svbool_t pg, svfloat64_t op) MODE_ATTR
svfloat16_t test_svrinta_f16_m(svfloat16_t inactive, svbool_t pg, svfloat16_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frinta" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 8 x half> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -111,9 +111,9 @@ svfloat16_t test_svrinta_f16_m(svfloat16_t inactive, svbool_t pg, svfloat16_t op
svfloat32_t test_svrinta_f32_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frinta" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 4 x float> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -127,9 +127,9 @@ svfloat32_t test_svrinta_f32_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op
svfloat64_t test_svrinta_f64_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frinta" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 2 x double> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
@@ -142,11 +142,11 @@ svfloat64_t test_svrinta_f64_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op
// CPP-LABEL: @_Z18test_svrinta_f16_xu10__SVBool_tu13__SVFloat16_t(
svfloat16_t test_svrinta_f16_x(svbool_t pg, svfloat16_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[8] x !cir.f16>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[8] x !cir.f16, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frinta" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -159,11 +159,11 @@ svfloat16_t test_svrinta_f16_x(svbool_t pg, svfloat16_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrinta_f32_xu10__SVBool_tu13__SVFloat32_t(
svfloat32_t test_svrinta_f32_x(svbool_t pg, svfloat32_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[4] x !cir.float>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[4] x !cir.float, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frinta" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -176,11 +176,11 @@ svfloat32_t test_svrinta_f32_x(svbool_t pg, svfloat32_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrinta_f64_xu10__SVBool_tu13__SVFloat64_t(
svfloat64_t test_svrinta_f64_x(svbool_t pg, svfloat64_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[2] x !cir.double>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[2] x !cir.double, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frinta" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
diff --git a/clang/test/CodeGen/AArch64/sve/rintm.c b/clang/test/CodeGen/AArch64/sve/rintm.c
index 2293419b4b3884..bb6bc80af700ba 100644
--- a/clang/test/CodeGen/AArch64/sve/rintm.c
+++ b/clang/test/CodeGen/AArch64/sve/rintm.c
@@ -43,11 +43,11 @@
// CPP-LABEL: @_Z18test_svrintm_f16_zu10__SVBool_tu13__SVFloat16_t(
svfloat16_t test_svrintm_f16_z(svbool_t pg, svfloat16_t op) MODE_ATTR
{
-// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[8] x !cir.f16>
+// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[8] x !cir.f16, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frintm" %[[CONST_0]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -60,11 +60,11 @@ svfloat16_t test_svrintm_f16_z(svbool_t pg, svfloat16_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintm_f32_zu10__SVBool_tu13__SVFloat32_t(
svfloat32_t test_svrintm_f32_z(svbool_t pg, svfloat32_t op) MODE_ATTR
{
-// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[4] x !cir.float>
+// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[4] x !cir.float, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frintm" %[[CONST_0]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -77,11 +77,11 @@ svfloat32_t test_svrintm_f32_z(svbool_t pg, svfloat32_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintm_f64_zu10__SVBool_tu13__SVFloat64_t(
svfloat64_t test_svrintm_f64_z(svbool_t pg, svfloat64_t op) MODE_ATTR
{
-// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[2] x !cir.double>
+// CIR: %[[CONST_0:.*]] = cir.const #cir.zero : !cir.vector<[2] x !cir.double, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frintm" %[[CONST_0]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
@@ -95,9 +95,9 @@ svfloat64_t test_svrintm_f64_z(svbool_t pg, svfloat64_t op) MODE_ATTR
svfloat16_t test_svrintm_f16_m(svfloat16_t inactive, svbool_t pg, svfloat16_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frintm" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 8 x half> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -111,9 +111,9 @@ svfloat16_t test_svrintm_f16_m(svfloat16_t inactive, svbool_t pg, svfloat16_t op
svfloat32_t test_svrintm_f32_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frintm" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 4 x float> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -127,9 +127,9 @@ svfloat32_t test_svrintm_f32_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op
svfloat64_t test_svrintm_f64_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frintm" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 2 x double> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
@@ -142,11 +142,11 @@ svfloat64_t test_svrintm_f64_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op
// CPP-LABEL: @_Z18test_svrintm_f16_xu10__SVBool_tu13__SVFloat16_t(
svfloat16_t test_svrintm_f16_x(svbool_t pg, svfloat16_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[8] x !cir.f16>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[8] x !cir.f16, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frintm" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -159,11 +159,11 @@ svfloat16_t test_svrintm_f16_x(svbool_t pg, svfloat16_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintm_f32_xu10__SVBool_tu13__SVFloat32_t(
svfloat32_t test_svrintm_f32_x(svbool_t pg, svfloat32_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[4] x !cir.float>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[4] x !cir.float, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frintm" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -176,11 +176,11 @@ svfloat32_t test_svrintm_f32_x(svbool_t pg, svfloat32_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintm_f64_xu10__SVBool_tu13__SVFloat64_t(
svfloat64_t test_svrintm_f64_x(svbool_t pg, svfloat64_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[2] x !cir.double>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[2] x !cir.double, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: %[[RES:.*]] = cir.call_llvm_intrinsic "aarch64.sve.frintm" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
diff --git a/clang/test/CodeGen/AArch64/sve/rintn.c b/clang/test/CodeGen/AArch64/sve/rintn.c
index 18872bcaf29a30..9486fb72baa860 100644
--- a/clang/test/CodeGen/AArch64/sve/rintn.c
+++ b/clang/test/CodeGen/AArch64/sve/rintn.c
@@ -43,11 +43,11 @@
// CPP-LABEL: @_Z18test_svrintn_f16_zu10__SVBool_tu13__SVFloat16_t(
svfloat16_t test_svrintn_f16_z(svbool_t pg, svfloat16_t op) MODE_ATTR
{
-// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[8] x !cir.f16>
+// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[8] x !cir.f16, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintn" %[[ZERO]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -60,11 +60,11 @@ svfloat16_t test_svrintn_f16_z(svbool_t pg, svfloat16_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintn_f32_zu10__SVBool_tu13__SVFloat32_t(
svfloat32_t test_svrintn_f32_z(svbool_t pg, svfloat32_t op) MODE_ATTR
{
-// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[4] x !cir.float>
+// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[4] x !cir.float, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintn" %[[ZERO]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -77,11 +77,11 @@ svfloat32_t test_svrintn_f32_z(svbool_t pg, svfloat32_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintn_f64_zu10__SVBool_tu13__SVFloat64_t(
svfloat64_t test_svrintn_f64_z(svbool_t pg, svfloat64_t op) MODE_ATTR
{
-// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[2] x !cir.double>
+// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[2] x !cir.double, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintn" %[[ZERO]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
@@ -95,9 +95,9 @@ svfloat64_t test_svrintn_f64_z(svbool_t pg, svfloat64_t op) MODE_ATTR
svfloat16_t test_svrintn_f16_m(svfloat16_t inactive, svbool_t pg, svfloat16_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintn" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 8 x half> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -111,9 +111,9 @@ svfloat16_t test_svrintn_f16_m(svfloat16_t inactive, svbool_t pg, svfloat16_t op
svfloat32_t test_svrintn_f32_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintn" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 4 x float> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -127,9 +127,9 @@ svfloat32_t test_svrintn_f32_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op
svfloat64_t test_svrintn_f64_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintn" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 2 x double> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
@@ -142,11 +142,11 @@ svfloat64_t test_svrintn_f64_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op
// CPP-LABEL: @_Z18test_svrintn_f16_xu10__SVBool_tu13__SVFloat16_t(
svfloat16_t test_svrintn_f16_x(svbool_t pg, svfloat16_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[8] x !cir.f16>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[8] x !cir.f16, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintn" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -159,11 +159,11 @@ svfloat16_t test_svrintn_f16_x(svbool_t pg, svfloat16_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintn_f32_xu10__SVBool_tu13__SVFloat32_t(
svfloat32_t test_svrintn_f32_x(svbool_t pg, svfloat32_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[4] x !cir.float>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[4] x !cir.float, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintn" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -176,11 +176,11 @@ svfloat32_t test_svrintn_f32_x(svbool_t pg, svfloat32_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintn_f64_xu10__SVBool_tu13__SVFloat64_t(
svfloat64_t test_svrintn_f64_x(svbool_t pg, svfloat64_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[2] x !cir.double>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[2] x !cir.double, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintn" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
diff --git a/clang/test/CodeGen/AArch64/sve/rintp.c b/clang/test/CodeGen/AArch64/sve/rintp.c
index 46d9dd5fcf16d5..214f0e5b3a9b09 100644
--- a/clang/test/CodeGen/AArch64/sve/rintp.c
+++ b/clang/test/CodeGen/AArch64/sve/rintp.c
@@ -43,11 +43,11 @@
// CPP-LABEL: @_Z18test_svrintp_f16_zu10__SVBool_tu13__SVFloat16_t(
svfloat16_t test_svrintp_f16_z(svbool_t pg, svfloat16_t op) MODE_ATTR
{
-// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[8] x !cir.f16>
+// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[8] x !cir.f16, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintp" %[[ZERO]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -60,11 +60,11 @@ svfloat16_t test_svrintp_f16_z(svbool_t pg, svfloat16_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintp_f32_zu10__SVBool_tu13__SVFloat32_t(
svfloat32_t test_svrintp_f32_z(svbool_t pg, svfloat32_t op) MODE_ATTR
{
-// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[4] x !cir.float>
+// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[4] x !cir.float, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintp" %[[ZERO]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -77,11 +77,11 @@ svfloat32_t test_svrintp_f32_z(svbool_t pg, svfloat32_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintp_f64_zu10__SVBool_tu13__SVFloat64_t(
svfloat64_t test_svrintp_f64_z(svbool_t pg, svfloat64_t op) MODE_ATTR
{
-// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[2] x !cir.double>
+// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.vector<[2] x !cir.double, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintp" %[[ZERO]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
@@ -95,9 +95,9 @@ svfloat64_t test_svrintp_f64_z(svbool_t pg, svfloat64_t op) MODE_ATTR
svfloat16_t test_svrintp_f16_m(svfloat16_t inactive, svbool_t pg, svfloat16_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintp" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 8 x half> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -111,9 +111,9 @@ svfloat16_t test_svrintp_f16_m(svfloat16_t inactive, svbool_t pg, svfloat16_t op
svfloat32_t test_svrintp_f32_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintp" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 4 x float> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -127,9 +127,9 @@ svfloat32_t test_svrintp_f32_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op
svfloat64_t test_svrintp_f64_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op) MODE_ATTR
{
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintp" %{{.*}}, %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 2 x double> [[INACTIVE:%.*]], <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
@@ -142,11 +142,11 @@ svfloat64_t test_svrintp_f64_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op
// CPP-LABEL: @_Z18test_svrintp_f16_xu10__SVBool_tu13__SVFloat16_t(
svfloat16_t test_svrintp_f16_x(svbool_t pg, svfloat16_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[8] x !cir.f16>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[8] x !cir.f16, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[8] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintp" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[8] x !cir.f16>
+// CIR-SAME: -> !cir.vector<[8] x !cir.f16, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 8 x half> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG]])
@@ -159,11 +159,11 @@ svfloat16_t test_svrintp_f16_x(svbool_t pg, svfloat16_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintp_f32_xu10__SVBool_tu13__SVFloat32_t(
svfloat32_t test_svrintp_f32_x(svbool_t pg, svfloat32_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[4] x !cir.float>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[4] x !cir.float, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[4] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintp" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[4] x !cir.float>
+// CIR-SAME: -> !cir.vector<[4] x !cir.float, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 4 x float> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG]])
@@ -176,11 +176,11 @@ svfloat32_t test_svrintp_f32_x(svbool_t pg, svfloat32_t op) MODE_ATTR
// CPP-LABEL: @_Z18test_svrintp_f64_xu10__SVBool_tu13__SVFloat64_t(
svfloat64_t test_svrintp_f64_x(svbool_t pg, svfloat64_t op) MODE_ATTR
{
-// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[2] x !cir.double>
+// CIR: %[[UNDEF:.*]] = cir.const #cir.undef : !cir.vector<[2] x !cir.double, sve_data>
// CIR: %[[CONVERT_PG:.*]] = cir.call_llvm_intrinsic "aarch64.sve.convert.from.svbool" %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>>
+// CIR-SAME: -> !cir.vector<[2] x !cir.int<u, 1>, sve_predicate>
// CIR: cir.call_llvm_intrinsic "aarch64.sve.frintp" %[[UNDEF]], %[[CONVERT_PG]], %{{.*}} :
-// CIR-SAME: -> !cir.vector<[2] x !cir.double>
+// CIR-SAME: -> !cir.vector<[2] x !cir.double, sve_data>
// LLVM-SAME: <vscale x 16 x i1> [[PG:%.*]], <vscale x 2 x double> [[OP:%.*]])
// LLVM: [[TMP0:%.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG]])
More information about the cfe-commits
mailing list