blob: 16b687216e0a3818226d8f5230c08e938a77a8c6 [file] [log] [blame]
Richard Henderson85d251d2020-10-15 20:04:49 +00001/* 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 */
11REGS('r', ALL_GENERAL_REGS)
Richard Henderson526cd4e2023-04-19 15:13:22 +020012REGS('o', ALL_GENERAL_REGS & 0xAAAAAAAAu) /* odd registers */
Richard Henderson85d251d2020-10-15 20:04:49 +000013REGS('v', ALL_VECTOR_REGS)
Richard Henderson85d251d2020-10-15 20:04:49 +000014
15/*
16 * Define constraint letters for constants:
17 * CONST(letter, TCG_CT_CONST_* bit set)
18 */
Richard Henderson282ef7e2023-10-28 02:09:03 +000019CONST('C', TCG_CT_CONST_CMP)
Richard Henderson85d251d2020-10-15 20:04:49 +000020CONST('I', TCG_CT_CONST_S16)
Richard Henderson85d251d2020-10-15 20:04:49 +000021CONST('M', TCG_CT_CONST_MONE)
22CONST('T', TCG_CT_CONST_S32)
23CONST('U', TCG_CT_CONST_U32)
24CONST('W', TCG_CT_CONST_WSZ)
25CONST('Z', TCG_CT_CONST_ZERO)