[clang] [llvm] [RISCV][P-ext] Support Packed Element Insert (PR #222268)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 9 18:57:32 PDT 2026
================
@@ -312,6 +312,17 @@ typedef uint32_t uint32x2_t __attribute__((__vector_size__(8)));
return __builtin_bit_cast(rty, __x); \
}
+#define __packed_insert(name, ty, elt_ty, max_idx) \
+ static __inline__ ty __DEFAULT_FN_ATTRS __riscv_##name(ty __v, elt_ty __e, \
+ unsigned __idx) \
+ __attribute__((__enable_if__( \
+ __idx <= (max_idx), \
+ "index must be a constant integer from 0 to " #max_idx))) { \
+ ty __r = __v; \
----------------
TelGome wrote:
Remove '__r'
https://github.com/llvm/llvm-project/pull/222268
More information about the cfe-commits
mailing list