[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH] Add support for a helper with 7 arguments
From: |
Taylor Simpson |
Subject: |
RE: [PATCH] Add support for a helper with 7 arguments |
Date: |
Mon, 10 Feb 2020 04:54:21 +0000 |
> -----Original Message-----
> From: Taylor Simpson
> Sent: Sunday, February 9, 2020 2:51 PM
> To: Richard Henderson <address@hidden>; Richard Henderson
> <address@hidden>; address@hidden
> Cc: Paolo Bonzini <address@hidden>
> Subject: RE: [PATCH] Add support for a helper with 7 arguments
>
> > However, you should prefer to use tcg_gen_addi_* over tcg_gen_add_*
> > (etc) when
> > you know that one operand is constant. This will optimize away the add
> zero
> > immediately as opposed to allocating memory and walking the data
> > structures to
> > eliminate it later.
>
> OK, will work on this.
>
One question I have from implementing this is
- Is there a way to pass a constant value to gen_helper_XXX?
It would be great if this would be possible instead of calling tcg_const_tl()
and passing the TCGv.
AFAICT, the DEF_HELPER macros don't have an operand type that takes a constant.
I think s32, i32, and int all expect TCGv at the call site.
Thanks,
Taylor
- Re: [PATCH] Add support for a helper with 7 arguments, (continued)
Re: [PATCH] Add support for a helper with 7 arguments, Richard Henderson, 2020/02/07
- RE: [PATCH] Add support for a helper with 7 arguments, Taylor Simpson, 2020/02/07
- Re: [PATCH] Add support for a helper with 7 arguments, Richard Henderson, 2020/02/07
- RE: [PATCH] Add support for a helper with 7 arguments, Taylor Simpson, 2020/02/09
- Re: [PATCH] Add support for a helper with 7 arguments, Richard Henderson, 2020/02/09
- RE: [PATCH] Add support for a helper with 7 arguments, Taylor Simpson, 2020/02/09
- RE: [PATCH] Add support for a helper with 7 arguments,
Taylor Simpson <=
- Re: [PATCH] Add support for a helper with 7 arguments, Richard Henderson, 2020/02/10