xref: /openbmc/qemu/tcg/ppc/tcg-target-con-str.h (revision d2dfe0b5)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Define PowerPC 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('o', ALL_GENERAL_REGS & 0xAAAAAAAAu)  /* odd registers */
13 REGS('v', ALL_VECTOR_REGS)
14 
15 /*
16  * Define constraint letters for constants:
17  * CONST(letter, TCG_CT_CONST_* bit set)
18  */
19 CONST('I', TCG_CT_CONST_S16)
20 CONST('M', TCG_CT_CONST_MONE)
21 CONST('T', TCG_CT_CONST_S32)
22 CONST('U', TCG_CT_CONST_U32)
23 CONST('W', TCG_CT_CONST_WSZ)
24 CONST('Z', TCG_CT_CONST_ZERO)
25