[clang] [llvm] [RISCV][P-ext] Support Packed Element Extract (PR #221565)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 7 08:50:49 PDT 2026


================
@@ -66,6 +66,15 @@ typedef uint32_t uint32x2_t __attribute__((__vector_size__(8)));
     return op __rs1;                                                           \
   }
 
+#define __packed_extract(name, rty, ty, max_idx)                               \
+  static __inline__ rty __DEFAULT_FN_ATTRS __riscv_##name(                     \
+      ty __v, const unsigned __idx)                                            \
----------------
topperc wrote:

Drop the `const`. It doesn't do anything.

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


More information about the cfe-commits mailing list