[clang] [llvm] [AArch64][clang][llvm] Add support for Armv9.7-A lookup table intrinsics (PR #187046)

Kerry McLaughlin via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 14 09:02:59 PDT 2026


================
@@ -0,0 +1,19 @@
+// REQUIRES: aarch64-registered-target
+
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -verify -emit-llvm -o - %s
+
+#include <arm_sve.h>
+
+void missing_sve2p3_luti6(svint8x2_t table, svuint8_t indices) {
+  svluti6_s8(table, indices); // expected-error {{'svluti6_s8' needs target feature sve,sve2p3}}
+}
+
+__attribute__((target("sve2p3")))
+svint8_t has_sve2p3_luti6(svint8x2_t table, svuint8_t indices) {
+  return svluti6_s8(table, indices);
+}
+
+__attribute__((target("sve2p3")))
+svfloat32_t has_sve2p3_implied_sve2p2(svbool_t pg, svfloat16_t op) {
+  return svcvtlt_f32_f16_z(pg, op);
----------------
kmclaughlin-arm wrote:

Thanks for changing the sme2p3 tests! Similar to those, I think this `svcvtlt` test can be removed and the file combined with `acle_sve2p3_target_lane.c`?

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


More information about the cfe-commits mailing list