master
h 22 lines 552 Bytes
Raw
1 /* SPDX-License-Identifier: MIT */
2 /*
3 * Define target-specific opcode support
4 * Copyright (c) 2008 Fabrice Bellard
5 */
6
7 #ifndef TCG_TARGET_HAS_H
8 #define TCG_TARGET_HAS_H
9
10 /* optional instructions */
11 #define TCG_TARGET_HAS_extr_i64_i32 0
12 #define TCG_TARGET_HAS_qemu_ldst_i128 0
13 #define TCG_TARGET_HAS_tst 1
14
15 #define TCG_TARGET_extract_valid(type, ofs, len) \
16 ((type) == TCG_TYPE_I64 && (ofs) + (len) == 32)
17
18 #define TCG_TARGET_sextract_valid TCG_TARGET_extract_valid
19
20 #define TCG_TARGET_deposit_valid(type, ofs, len) 0
21
22 #endif