tcg: Extend call args using the correct opcodes
commit18cf3d07a2556700895c626754937e90f8e972cf
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Oct 2021 18:34:10 +0000 (28 14:34 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Oct 2021 03:54:52 +0000 (28 20:54 -0700)
tree442e9c13764a90bceb0132528cb66cfe2db27a47
parent7a2f70845255bd6a2ad6399d159c58a7e7b64b51
tcg: Extend call args using the correct opcodes

Pretending that the source is i64 when it is in fact i32 is
incorrect; we have type-changing opcodes that must be used.
This bug trips up the subsequent change to the optimizer.

Fixes: 4f2331e5b67a
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg.c