1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Define target-specific opcode support 4 * Copyright (c) 2009, 2011 Stefan Weil 5 */ 6 7 #ifndef TCG_TARGET_HAS_H 8 #define TCG_TARGET_HAS_H 9 10 #define TCG_TARGET_HAS_qemu_st8_i32 0 11 12 #if TCG_TARGET_REG_BITS == 64 13 #define TCG_TARGET_HAS_extr_i64_i32 0 14 #define TCG_TARGET_HAS_add2_i32 1 15 #define TCG_TARGET_HAS_sub2_i32 1 16 #define TCG_TARGET_HAS_add2_i64 1 17 #define TCG_TARGET_HAS_sub2_i64 1 18 #endif /* TCG_TARGET_REG_BITS == 64 */ 19 20 #define TCG_TARGET_HAS_qemu_ldst_i128 0 21 22 #define TCG_TARGET_HAS_tst 1 23 24 #define TCG_TARGET_extract_valid(type, ofs, len) 1 25 #define TCG_TARGET_sextract_valid(type, ofs, len) 1 26 #define TCG_TARGET_deposit_valid(type, ofs, len) 1 27 28 #endif 29