qemu/tcg/loongarch64
Rui Wang 3fe7e36b44 tcg/loongarch64: Optimize immediate loading
diff:
  Imm                 Before                  After
  0000000000000000    addi.w  rd, zero, 0     addi.w  rd, zero, 0
                      lu52i.d rd, zero, 0
  00000000fffff800    lu12i.w rd, -1          addi.w  rd, zero, -2048
                      ori     rd, rd, 2048    lu32i.d rd, 0
                      lu32i.d rd, 0

Reviewed-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Rui Wang <wangrui@loongson.cn>
Message-Id: <20221107144713.845550-1-wangrui@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2023-01-23 15:36:36 -10:00
..
tcg-insn-defs.c.inc tcg/loongarch64: Add generated instruction opcodes and encoding helpers 2021-12-21 13:17:06 -08:00
tcg-target-con-set.h tcg/loongarch64: Add softmmu load/store helpers, implement qemu_ld/qemu_st ops 2021-12-21 13:17:06 -08:00
tcg-target-con-str.h tcg/loongarch64: Define the operand constraints 2021-12-21 13:17:06 -08:00
tcg-target.c.inc tcg/loongarch64: Optimize immediate loading 2023-01-23 15:36:36 -10:00
tcg-target.h tcg: Remove TCG_TARGET_HAS_direct_jump 2023-01-17 10:25:49 -10:00