================ @@ -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))); ---------------- topperc wrote:
We need to add `__aligned__(8)` https://github.com/llvm/llvm-project/pull/181115 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
