xref: /openbmc/qemu/tcg/s390x/tcg-target-con-str.h (revision ffe98631)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Define S390 target-specific operand constraints.
4  * Copyright (c) 2021 Linaro
5  */
6 
7 /*
8  * Define constraint letters for register sets:
9  * REGS(letter, register_mask)
10  */
11 REGS('r', ALL_GENERAL_REGS)
12 REGS('L', ALL_GENERAL_REGS & ~SOFTMMU_RESERVE_REGS)
13 REGS('v', ALL_VECTOR_REGS)
14 REGS('o', 0xaaaa) /* odd numbered general regs */
15 
16 /*
17  * Define constraint letters for constants:
18  * CONST(letter, TCG_CT_CONST_* bit set)
19  */
20 CONST('A', TCG_CT_CONST_S33)
21 CONST('I', TCG_CT_CONST_S16)
22 CONST('J', TCG_CT_CONST_S32)
23 CONST('K', TCG_CT_CONST_P32)
24 CONST('N', TCG_CT_CONST_INV)
25 CONST('R', TCG_CT_CONST_INVRISBG)
26 CONST('Z', TCG_CT_CONST_ZERO)
27