[clang] [AARCH64] Fix failing builtin tests (PR #245400)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 23 13:49:59 PST 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Andy Kaylor (andykaylor)

<details>
<summary>Changes</summary>

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.

---

Patch is 37.00 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/245400.diff


4 Files Affected:

- (modified) clang/test/CodeGen/AArch64/sve/rinta.c (+24-24) 
- (modified) clang/test/CodeGen/AArch64/sve/rintm.c (+24-24) 
- (modified) clang/test/CodeGen/AArch64/sve/rintn.c (+24-24) 
- (modified) clang/test/CodeGen/AArch64/sve/rintp.c (+24-24) 


``````````diff
diff --git a/clang/test/CodeGen/AArch64/sve/rinta.c b/clang/test/CodeGen/AArch64/sve/rinta.c
index e107d903a09a0..a839642ca7371 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 2293419b4b388..bb6bc80af700b 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 18872bcaf29a3..9486fb72baa86 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__SVFloa...
[truncated]

``````````

</details>


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


More information about the cfe-commits mailing list