[clang] [llvm] [RISCV][P-ext] Support Packed Load (PR #223313)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 00:02:52 PDT 2026
================
@@ -312,6 +335,11 @@ typedef uint32_t uint32x2_t __attribute__((__vector_size__(8)));
return __builtin_bit_cast(rty, __x); \
}
+#define __packed_load(name, ty, elt_ty, ua_ty) \
+ static __inline__ ty __DEFAULT_FN_ATTRS __riscv_##name(elt_ty *__p) { \
+ return *(ua_ty *)__p; \
+ }
----------------
TelGome wrote:
Done
https://github.com/llvm/llvm-project/pull/223313
More information about the llvm-commits
mailing list