qemu/target/mips/tcg
Philippe Mathieu-Daudé 35845cf8fe target/mips: Use tcg_constant_tl() instead of tcg_gen_movi_tl()
Directly use tcg_constant_tl() for constant integer, this
save a call to tcg_gen_movi_tl(), often saving a temp register.

Most of the places found using the following Coccinelle spatch script:

  @@
  identifier tmp;
  constant val;
  @@
  *    TCGv tmp = tcg_temp_new();
       ...
  *    tcg_gen_movi_tl(tmp, val);

  @@
  identifier tmp;
  int val;
  @@
  *    TCGv tmp = tcg_temp_new();
       ...
  *    tcg_gen_movi_i64(tmp, val);

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241004202621.4321-2-philmd@linaro.org>
2024-10-15 12:21:04 -03:00
..
sysemu target/mips: Replace MO_TE by mo_endian_env() in get_pte() 2024-10-15 12:13:59 -03:00
dsp_helper.c cleanup: Tweak and re-run return_directly.cocci 2022-12-14 16:19:35 +01:00
exception.c accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
fpu_helper.c target/helpers: Remove unnecessary 'exec/cpu_ldst.h' header 2023-08-31 19:47:43 +02:00
lcsr_translate.c tcg: Rename cpu_env to tcg_env 2023-10-03 08:01:02 -07:00
lcsr.decode target/mips: Implement Loongson CSR instructions 2023-07-10 23:33:37 +02:00
ldst_helper.c target/mips: Declare mips_env_is_bigendian() in 'internal.h' 2024-10-15 12:13:59 -03:00
lmmi_helper.c Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
meson.build target/mips: Implement Loongson CSR instructions 2023-07-10 23:33:37 +02:00
micromips_translate.c.inc target/mips: Use gen_op_addr_addi() when possible 2024-10-15 12:18:10 -03:00
mips16e_translate.c.inc target/mips: Use gen_op_addr_addi() when possible 2024-10-15 12:18:10 -03:00
msa_helper.c target/mips: Remove unused MEMOP_IDX() macro 2024-10-15 12:16:28 -03:00
msa_helper.h.inc target/mips: Move TCG source files under tcg/ sub directory 2021-05-02 16:49:35 +02:00
msa_translate.c tcg: Rename cpu_env to tcg_env 2023-10-03 08:01:02 -07:00
msa.decode target/mips: Fix MSA BZ/BNZ opcodes displacement 2023-11-07 12:13:28 +01:00
mxu_translate.c target/mips: Replace MO_TE by mo_endian() 2024-10-15 12:18:09 -03:00
nanomips_translate.c.inc target/mips: Use tcg_constant_tl() instead of tcg_gen_movi_tl() 2024-10-15 12:21:04 -03:00
octeon_translate.c target/mips: Tidy helpers for translation 2023-06-05 12:04:29 -07:00
octeon.decode target/mips: Cast offset field of Octeon BBIT to int16_t 2022-11-08 01:04:25 +01:00
op_helper.c target/mips: Prefer fast cpu_env() over slower CPU QOM cast macro 2024-03-12 12:04:24 +01:00
rel6_translate.c target/mips: Tidy helpers for translation 2023-06-05 12:04:29 -07:00
rel6.decode target/mips: Rename 'rtype' as 'r' 2021-08-25 13:02:14 +02:00
sysemu_helper.h.inc target/mips: Remove helpers accessing SAARI register 2024-02-15 15:53:12 +01:00
tcg-internal.h target/mips: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
trace-events target/mips: Move TCG trace events to tcg/ sub directory 2021-06-24 16:48:07 +02:00
trace.h target/mips: Move TCG trace events to tcg/ sub directory 2021-06-24 16:48:07 +02:00
translate_addr_const.c target/mips: Tidy helpers for translation 2023-06-05 12:04:29 -07:00
translate.c target/mips: Use tcg_constant_tl() instead of tcg_gen_movi_tl() 2024-10-15 12:21:04 -03:00
translate.h target/mips: Use gen_op_addr_addi() when possible 2024-10-15 12:18:10 -03:00
tx79_translate.c target/mips: Replace MO_TE by mo_endian() 2024-10-15 12:18:09 -03:00
tx79.decode target/mips: Fix TX79 LQ/SQ opcodes 2023-11-07 12:13:28 +01:00
txx9_translate.c target/mips: Move TCG source files under tcg/ sub directory 2021-05-02 16:49:35 +02:00
vr54xx_helper.c target/mips: Extract NEC Vr54xx helpers to vr54xx_helper.c 2021-08-25 13:02:14 +02:00
vr54xx_helper.h.inc target/mips: Extract NEC Vr54xx helper definitions 2021-08-25 13:02:14 +02:00
vr54xx_translate.c tcg: Rename cpu_env to tcg_env 2023-10-03 08:01:02 -07:00
vr54xx.decode target/mips: Convert Vr54xx MSA* opcodes to decodetree 2021-08-25 13:02:14 +02:00