xref: /openbmc/qemu/tcg/sparc64/tcg-target-has.h (revision 33aba058c8fcc9b1581b03a1fbac45d8d91baac6)
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 #if defined(__VIS__) && __VIS__ >= 0x300
11 #define use_vis3_instructions  1
12 #else
13 extern bool use_vis3_instructions;
14 #endif
15 
16 /* optional instructions */
17 #define TCG_TARGET_HAS_extr_i64_i32     0
18 #define TCG_TARGET_HAS_qemu_ldst_i128   0
19 #define TCG_TARGET_HAS_tst              1
20 
21 #define TCG_TARGET_extract_valid(type, ofs, len) \
22     ((type) == TCG_TYPE_I64 && (ofs) + (len) == 32)
23 
24 #define TCG_TARGET_sextract_valid  TCG_TARGET_extract_valid
25 
26 #define TCG_TARGET_deposit_valid(type, ofs, len) 0
27 
28 #endif
29