[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


================
@@ -936,3 +874,233 @@ uint32x4_t test_vabaq_u32(uint32x4_t v1, uint32x4_t v2, uint32x4_t v3) {
 // LLVM-NEXT:    ret <4 x i32> [[ADD_I]]
   return vabaq_u32(v1, v2, v3);
 }
+
+//===----------------------------------------------------------------------===//
+// 2.x. Vector rounding shift right
+// https://arm-software.github.io/acle/neon_intrinsics/advsimd.html#vector-rounding-shift-right
+//===----------------------------------------------------------------------===//
+
+// LLVM-LABEL: @test_vrshr_n_s8(
+// CIR-LABEL: @test_vrshr_n_s8(
----------------
banach-space wrote:

If labels are identical, you can re-use them. See example here: https://github.com/llvm/llvm-project/blob/3b3f3730351cd59a849663700b07d7643a7f74a1/clang/test/CodeGen/AArch64/neon/fullfp16.c?plain=1#L53

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


More information about the cfe-commits mailing list