[clang] [CIR][AArch64] Upstream NEON shift left builtins (PR #186406)

Andrzej WarzyƄski via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 16 01:31:50 PDT 2026


================
@@ -936,3 +936,45 @@ 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);
 }
+
+// LLVM-LABEL: @test_vshld_n_s64
+// CIR-LABEL: @test_vshld_n_s64
+int64_t test_vshld_n_s64(int64_t a) {
+  // CIR: cir.shift(left, {{.*}})
+
+  // LLVM-SAME: i64 noundef [[A:%.*]])
----------------
banach-space wrote:

We don't really check the attributes.
```suggestion
  // LLVM-SAME: i64 {{.*}} [[A:%.*]])
```

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


More information about the cfe-commits mailing list