2023-04-01 20:15:11 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2017-09-16 00:11:45 +03:00
|
|
|
/*
|
2023-04-01 20:15:11 +03:00
|
|
|
* Target dependent generic vector operation expansion
|
2017-09-16 00:11:45 +03:00
|
|
|
*
|
|
|
|
* Copyright (c) 2018 Linaro
|
|
|
|
*/
|
|
|
|
|
2019-06-04 21:16:18 +03:00
|
|
|
#ifndef TCG_TCG_OP_GVEC_H
|
|
|
|
#define TCG_TCG_OP_GVEC_H
|
|
|
|
|
2023-04-01 20:15:11 +03:00
|
|
|
#include "tcg/tcg-op-gvec-common.h"
|
2017-09-16 00:11:45 +03:00
|
|
|
|
2023-04-01 20:15:11 +03:00
|
|
|
#ifndef TARGET_LONG_BITS
|
|
|
|
#error must include QEMU headers
|
2020-03-29 02:17:45 +03:00
|
|
|
#endif
|
|
|
|
|
2021-06-24 13:50:19 +03:00
|
|
|
#if TARGET_LONG_BITS == 64
|
2023-04-01 20:15:11 +03:00
|
|
|
#define tcg_gen_gvec_dup_tl tcg_gen_gvec_dup_i64
|
2021-06-24 13:50:20 +03:00
|
|
|
#define tcg_gen_vec_add8_tl tcg_gen_vec_add8_i64
|
|
|
|
#define tcg_gen_vec_sub8_tl tcg_gen_vec_sub8_i64
|
2021-06-24 13:50:19 +03:00
|
|
|
#define tcg_gen_vec_add16_tl tcg_gen_vec_add16_i64
|
|
|
|
#define tcg_gen_vec_sub16_tl tcg_gen_vec_sub16_i64
|
2021-06-24 13:50:23 +03:00
|
|
|
#define tcg_gen_vec_add32_tl tcg_gen_vec_add32_i64
|
|
|
|
#define tcg_gen_vec_sub32_tl tcg_gen_vec_sub32_i64
|
2021-06-24 13:50:22 +03:00
|
|
|
#define tcg_gen_vec_shl8i_tl tcg_gen_vec_shl8i_i64
|
|
|
|
#define tcg_gen_vec_shr8i_tl tcg_gen_vec_shr8i_i64
|
|
|
|
#define tcg_gen_vec_sar8i_tl tcg_gen_vec_sar8i_i64
|
2021-06-24 13:50:21 +03:00
|
|
|
#define tcg_gen_vec_shl16i_tl tcg_gen_vec_shl16i_i64
|
|
|
|
#define tcg_gen_vec_shr16i_tl tcg_gen_vec_shr16i_i64
|
|
|
|
#define tcg_gen_vec_sar16i_tl tcg_gen_vec_sar16i_i64
|
2023-04-01 20:15:11 +03:00
|
|
|
#elif TARGET_LONG_BITS == 32
|
|
|
|
#define tcg_gen_gvec_dup_tl tcg_gen_gvec_dup_i32
|
2021-06-24 13:50:20 +03:00
|
|
|
#define tcg_gen_vec_add8_tl tcg_gen_vec_add8_i32
|
|
|
|
#define tcg_gen_vec_sub8_tl tcg_gen_vec_sub8_i32
|
2021-06-24 13:50:19 +03:00
|
|
|
#define tcg_gen_vec_add16_tl tcg_gen_vec_add16_i32
|
|
|
|
#define tcg_gen_vec_sub16_tl tcg_gen_vec_sub16_i32
|
2021-06-24 13:50:23 +03:00
|
|
|
#define tcg_gen_vec_add32_tl tcg_gen_add_i32
|
|
|
|
#define tcg_gen_vec_sub32_tl tcg_gen_sub_i32
|
2021-06-24 13:50:22 +03:00
|
|
|
#define tcg_gen_vec_shl8i_tl tcg_gen_vec_shl8i_i32
|
|
|
|
#define tcg_gen_vec_shr8i_tl tcg_gen_vec_shr8i_i32
|
|
|
|
#define tcg_gen_vec_sar8i_tl tcg_gen_vec_sar8i_i32
|
2021-06-24 13:50:21 +03:00
|
|
|
#define tcg_gen_vec_shl16i_tl tcg_gen_vec_shl16i_i32
|
|
|
|
#define tcg_gen_vec_shr16i_tl tcg_gen_vec_shr16i_i32
|
|
|
|
#define tcg_gen_vec_sar16i_tl tcg_gen_vec_sar16i_i32
|
2023-04-01 20:15:11 +03:00
|
|
|
#else
|
|
|
|
# error
|
2021-06-24 13:50:19 +03:00
|
|
|
#endif
|
|
|
|
|
2019-06-04 21:16:18 +03:00
|
|
|
#endif
|