Re: [Qemu-devel] [PATCH 18/25] tcg/aarch64: Handle ctz and clz opcodes

2016-11-22 Thread Alex Bennée
Richard Henderson writes: > On 11/16/2016 08:25 PM, Richard Henderson wrote: >> @@ -206,6 +206,9 @@ static int tcg_target_const_match(tcg_target_long val, >> TCGType type, >> if ((ct & TCG_CT_CONST_MONE) && val == -1) { >> return 1; >> } >> +if ((ct & TCG_CT_CONST_WSZ) &&

Re: [Qemu-devel] [PATCH 18/25] tcg/aarch64: Handle ctz and clz opcodes

2016-11-17 Thread Richard Henderson
On 11/16/2016 08:25 PM, Richard Henderson wrote: @@ -206,6 +206,9 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type, if ((ct & TCG_CT_CONST_MONE) && val == -1) { return 1; } +if ((ct & TCG_CT_CONST_WSZ) && val == (type ? 64 : 32)) { +return 1;

[Qemu-devel] [PATCH 18/25] tcg/aarch64: Handle ctz and clz opcodes

2016-11-16 Thread Richard Henderson
Cc: Claudio Fontana Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.h | 8 tcg/aarch64/tcg-target.inc.c | 47 2 files changed, 51 insertions(+), 4 deletions(-) diff --git a/tcg/aarch64/tcg-target.h b/tcg/aarch64/tcg-target.h