[clang] [CIR][AArch64] Upstream vrshrd_n_s64/u64 and vrshr_n_v vector rounding shift right (PR #185992)
Andrzej WarzyĆski via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 16 02:30:34 PDT 2026
================
@@ -397,66 +411,8 @@ uint64x2_t test_vceqzq_p64(poly64x2_t a) {
return vceqzq_p64(a);
}
-// LLVM-LABEL: @test_vceqzd_s64
-// CIR-LABEL: @vceqzd_s64
-uint64_t test_vceqzd_s64(int64_t a) {
-// CIR: [[C_0:%.*]] = cir.const #cir.int<0>
-// CIR: [[CMP:%.*]] = cir.cmp eq %{{.*}}, [[C_0]] : !s64i
-// CIR: [[RES:%.*]] = cir.cast bool_to_int [[CMP]] : !cir.bool -> !cir.int<s, 1>
-// CIR: cir.cast integral [[RES]] : !cir.int<s, 1> -> !u64i
-
-// LLVM-SAME: i64{{.*}} [[A:%.*]])
-// LLVM: [[TMP0:%.*]] = icmp eq i64 [[A]], 0
-// LLVM-NEXT: [[VCEQZ_I:%.*]] = sext i1 [[TMP0]] to i64
-// LLVM-NEXT: ret i64 [[VCEQZ_I]]
- return (uint64_t)vceqzd_s64(a);
-}
-
-// LLVM-LABEL: @test_vceqzd_u64(
----------------
banach-space wrote:
Unrelated change, please revert.
https://github.com/llvm/llvm-project/pull/185992
More information about the cfe-commits
mailing list