[clang] [llvm] [RISCV][P-ext] Support Packed Absolute Value and Absolute Difference (PR #203840)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 16 22:16:18 PDT 2026
================
@@ -92,6 +92,17 @@ typedef uint32_t uint32x2_t __attribute__((__vector_size__(8)));
return (rty)(__rs1 op __rs2); \
}
+#define __packed_unary_builtin_cast(name, ty, rty, builtin) \
+ static __inline__ rty __DEFAULT_FN_ATTRS __riscv_##name(ty __rs1) { \
+ return (rty)builtin(__rs1); \
----------------
TelGome wrote:
I got it, thanks for the clarification, and I have updated to use __builtin_elementwise_abs for abs. PTAL when you have a moment.
https://github.com/llvm/llvm-project/pull/203840
More information about the cfe-commits
mailing list