diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-01-10 21:46:38 -0800 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-04-28 13:40:16 -0700 |
| commit | 613b571c93db4cec7d0023b857c1b857af7a3324 (patch) | |
| tree | 3a68fb493eb2476a05d1be2b11e8b621231d1f24 /tcg/tcg-op.c | |
| parent | 7498d882cbe39ae7df4315ea006830e640f0d47b (diff) | |
| download | focaccia-qemu-613b571c93db4cec7d0023b857c1b857af7a3324.tar.gz focaccia-qemu-613b571c93db4cec7d0023b857c1b857af7a3324.zip | |
tcg: Convert bswap64 to TCGOutOpUnary
Use TCGOutOpUnary instead of TCGOutOpBswap because the flags are not used with this opcode; they are merely present for uniformity with the smaller bswaps. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg-op.c')
| -rw-r--r-- | tcg/tcg-op.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index b1174f60cc..27e700161f 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -2184,7 +2184,7 @@ void tcg_gen_bswap64_i64(TCGv_i64 ret, TCGv_i64 arg) tcg_gen_mov_i32(TCGV_HIGH(ret), t0); tcg_temp_free_i32(t0); tcg_temp_free_i32(t1); - } else if (TCG_TARGET_HAS_bswap64_i64) { + } else if (tcg_op_supported(INDEX_op_bswap64_i64, TCG_TYPE_I64, 0)) { tcg_gen_op3i_i64(INDEX_op_bswap64_i64, ret, arg, 0); } else { TCGv_i64 t0 = tcg_temp_ebb_new_i64(); |