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