1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Define LoongArch target-specific operand constraints. 4 * 5 * Copyright (c) 2021 WANG Xuerui <git@xen0n.name> 6 * 7 * Based on tcg/riscv/tcg-target-con-str.h 8 * 9 * Copyright (c) 2021 Linaro 10 */ 11 12 /* 13 * Define constraint letters for register sets: 14 * REGS(letter, register_mask) 15 */ 16 REGS('r', ALL_GENERAL_REGS) 17 18 /* 19 * Define constraint letters for constants: 20 * CONST(letter, TCG_CT_CONST_* bit set) 21 */ 22 CONST('I', TCG_CT_CONST_S12) 23 CONST('J', TCG_CT_CONST_S32) 24 CONST('U', TCG_CT_CONST_U12) 25 CONST('Z', TCG_CT_CONST_ZERO) 26 CONST('C', TCG_CT_CONST_C12) 27 CONST('W', TCG_CT_CONST_WSZ) 28