[clang] [CIR] max-across-vector (vmaxv_*) intrinsics (PR #194401)

Andrzej WarzyƄski via cfe-commits cfe-commits at lists.llvm.org
Tue May 5 03:59:02 PDT 2026


================
@@ -33,6 +33,34 @@
 
 #include <arm_fp16.h>
 
+//===------------------------------------------------------===//
+// 2.6.1.7 Maximum 
+// 
+// TODO: Implement the remaining intrinsics from this group.
+//===------------------------------------------------------===//
+
+// LLVM-LABEL: @test_vmaxv_f16(
+// CIR-LABEL: @test_vmaxv_f16(
+float16_t test_vmaxv_f16(float16x4_t a) {
+// CIR: {{%.*}} = cir.call_llvm_intrinsic "aarch64.neon.fmaxv" {{%.*}} : (!cir.vector<4 x !cir.f16>) -> !cir.f16
+
+// LLVM-SAME: <4 x half> {{.*}}[[A:%.*]])
----------------
banach-space wrote:

How do we know that `[[A]]` is used in the invocation of `@llvm.aarch64.neon.fmaxv.f16.v4f16`? Please restore the missing `CHECK` lines to verify that. Similar comment for other tests where input arguments are not tracked.

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


More information about the cfe-commits mailing list