Merge tag 'pull-request-2022-09-28' of https://gitlab.com/thuth/qemu into staging
[qemu.git] / tcg / loongarch64 / tcg-target-con-set.h
1 /* SPDX-License-Identifier: MIT */
2 /*
3 * Define LoongArch target-specific constraint sets.
4 *
5 * Copyright (c) 2021 WANG Xuerui <git@xen0n.name>
6 *
7 * Based on tcg/riscv/tcg-target-con-set.h
8 *
9 * Copyright (c) 2021 Linaro
10 */
11
12 /*
13 * C_On_Im(...) defines a constraint set with <n> outputs and <m> inputs.
14 * Each operand should be a sequence of constraint letters as defined by
15 * tcg-target-con-str.h; the constraint combination is inclusive or.
16 */
17 C_O0_I1(r)
18 C_O0_I2(rZ, r)
19 C_O0_I2(rZ, rZ)
20 C_O0_I2(LZ, L)
21 C_O1_I1(r, r)
22 C_O1_I1(r, L)
23 C_O1_I2(r, r, rC)
24 C_O1_I2(r, r, ri)
25 C_O1_I2(r, r, rI)
26 C_O1_I2(r, r, rU)
27 C_O1_I2(r, r, rW)
28 C_O1_I2(r, r, rZ)
29 C_O1_I2(r, 0, rZ)
30 C_O1_I2(r, rZ, rN)
31 C_O1_I2(r, rZ, rZ)