]> git.proxmox.com Git - mirror_qemu.git/commit
tcg/loongarch64: Introduce tcg_out_addi
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 29 Nov 2022 06:46:52 +0000 (22:46 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Jan 2023 02:00:13 +0000 (16:00 -1000)
commit0e95be93c1200ded3296654c96cb34ae13beab6d
tree70c2ccc42d705c9f734e384307830489f7d2eceb
parent76baa33a10abaa327874d9dc4b284992e5e420c7
tcg/loongarch64: Introduce tcg_out_addi

Adjust the constraints to allow any int32_t for immediate
addition.  Split immediate adds into addu16i + addi, which
covers quite a lot of the immediate space.  For the hole in
the middle, load the constant into TMP0 instead.

Reviewed-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/loongarch64/tcg-target-con-set.h
tcg/loongarch64/tcg-target-con-str.h
tcg/loongarch64/tcg-target.c.inc