Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging
[qemu.git] / tcg / loongarch64 / tcg-target-con-set.h
blob349c672687386a5b1db3728b919de2536f68e9ec
1 /* SPDX-License-Identifier: MIT */
2 /*
3 * Define LoongArch target-specific constraint sets.
5 * Copyright (c) 2021 WANG Xuerui <git@xen0n.name>
7 * Based on tcg/riscv/tcg-target-con-set.h
9 * Copyright (c) 2021 Linaro
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.
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)