Re: [PATCH] i386: Add ix86_expand_integer_cst_argument

2024-11-12 Thread H.J. Lu
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, the C frontend > > promotion will promote it to int: > > > > constant > > 255> > > > > and expand_normal always returns the r

Re: [PATCH] i386: Add ix86_expand_integer_cst_argument

2024-11-12 Thread Richard Biener
On Tue, Nov 12, 2024 at 1:49 PM H.J. Lu wrote: > > When passing 0xff as an unsigned char function argument, the C frontend > promotion will promote it to int: > > constant > 255> > > and expand_normal always returns the rtx value using the sign-extended > representation, > > (const_int 255 [0xff