================ @@ -0,0 +1,98 @@ +/*===---- riscv_packed.h - RISC-V P intrinsics -----------------------------=== + * + * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. + * See https://llvm.org/LICENSE.txt for license information. + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + * + *===-----------------------------------------------------------------------=== + */ + +#ifndef __RISCV_PACKED_H +#define __RISCV_PACKED_H + +#include <stdint.h> + +#if defined(__cplusplus) +extern "C" { +#endif + +/* Packed SIMD Types */ + +typedef int8_t int8x4_t __attribute__((vector_size(4))); +typedef uint8_t uint8x4_t __attribute__((vector_size(4))); +typedef int16_t int16x2_t __attribute__((vector_size(4))); +typedef uint16_t uint16x2_t __attribute__((vector_size(4))); + +typedef int8_t int8x8_t __attribute__((vector_size(8))); +typedef uint8_t uint8x8_t __attribute__((vector_size(8))); +typedef int16_t int16x4_t __attribute__((vector_size(8))); +typedef uint16_t uint16x4_t __attribute__((vector_size(8))); +typedef int32_t int32x2_t __attribute__((vector_size(8))); +typedef uint32_t uint32x2_t __attribute__((vector_size(8))); + +#define _packed_binop(name, retty, ty1, ty2, op) \ ---------------- topperc wrote:
The macro names need to start with 2 underscores. https://github.com/llvm/llvm-project/pull/181115 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
