================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits