Re: [PATCH v2 ] i386: Add ix86_expand_integer_cst_argument

2024-11-12 Thread H.J. Lu
On Wed, Nov 13, 2024 at 10:23 AM Hongtao Liu wrote: > > On Wed, Nov 13, 2024 at 8:29 AM H.J. Lu wrote: > > > > On Wed, Nov 13, 2024 at 5:57 AM H.J. Lu wrote: > > > > > > On Tue, Nov 12, 2024 at 9:30 PM Richard Biener > > > wrote: > > > > > > > > On Tue, Nov 12, 2024 at 1:49 PM H.J. Lu wrote: >

Re: [PATCH v2 ] i386: Add ix86_expand_integer_cst_argument

2024-11-12 Thread Hongtao Liu
On Wed, Nov 13, 2024 at 8:29 AM H.J. Lu wrote: > > On Wed, Nov 13, 2024 at 5:57 AM H.J. Lu wrote: > > > > On Tue, Nov 12, 2024 at 9:30 PM Richard Biener > > wrote: > > > > > > On Tue, Nov 12, 2024 at 1:49 PM H.J. Lu wrote: > > > > > > > > When passing 0xff as an unsigned char function argument,

[PATCH v2 ] i386: Add ix86_expand_integer_cst_argument

2024-11-12 Thread H.J. Lu
nst_0_to_255_operand, without the C frontend promotion. PR target/117547 * config/i386/i386-expand.cc (ix86_expand_integer_cst_argument): New function. (ix86_expand_args_builtin): Call ix86_expand_integer_cst_argument to expand the argument before calling fixup_modeless_constant. (ix