Richard Henderson | 85d251d | 2020-10-15 20:04:49 +0000 | [diff] [blame] | 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) |
Richard Henderson | 526cd4e | 2023-04-19 15:13:22 +0200 | [diff] [blame] | 12 | REGS('o', ALL_GENERAL_REGS & 0xAAAAAAAAu) /* odd registers */ |
Richard Henderson | 85d251d | 2020-10-15 20:04:49 +0000 | [diff] [blame] | 13 | REGS('v', ALL_VECTOR_REGS) |
Richard Henderson | 85d251d | 2020-10-15 20:04:49 +0000 | [diff] [blame] | 14 | |
| 15 | /* |
| 16 | * Define constraint letters for constants: |
| 17 | * CONST(letter, TCG_CT_CONST_* bit set) |
| 18 | */ |
Richard Henderson | 282ef7e | 2023-10-28 02:09:03 +0000 | [diff] [blame] | 19 | CONST('C', TCG_CT_CONST_CMP) |
Richard Henderson | 85d251d | 2020-10-15 20:04:49 +0000 | [diff] [blame] | 20 | CONST('I', TCG_CT_CONST_S16) |
Richard Henderson | 85d251d | 2020-10-15 20:04:49 +0000 | [diff] [blame] | 21 | CONST('M', TCG_CT_CONST_MONE) |
| 22 | CONST('T', TCG_CT_CONST_S32) |
| 23 | CONST('U', TCG_CT_CONST_U32) |
| 24 | CONST('W', TCG_CT_CONST_WSZ) |
| 25 | CONST('Z', TCG_CT_CONST_ZERO) |