On 06/09/2011 03:45 AM, Kirill Batuzov wrote:
> +case INDEX_op_ext8s_i32:
> +return (int32_t)(int8_t)x;
> +
> +case INDEX_op_ext16s_i32:
> +return (int32_t)(int16_t)x;
No need to cast back to a 32-bit type. They'll be
extended properly for the return type which is TCGArg.
Perform constant folding for NOT and EXT{8,16,32}{S,U} operations.
Signed-off-by: Kirill Batuzov
---
tcg/optimize.c | 83
1 files changed, 83 insertions(+), 0 deletions(-)
diff --git a/tcg/optimize.c b/tcg/optimize.c
index 653f399..2cdc