Re: [PATCH] i386: Add ix86_expand_unsigned_small_int_cst_argument

2025-04-29 Thread H.J. Lu
On Tue, Apr 29, 2025 at 2:51 PM Liu, Hongtao wrote: > > > > > -Original Message- > > From: H.J. Lu > > Sent: Tuesday, April 29, 2025 1:58 PM > > To: Hongtao Liu > > Cc: GCC Patches ; Uros Bizjak > > ; Liu

RE: [PATCH] i386: Add ix86_expand_unsigned_small_int_cst_argument

2025-04-28 Thread Liu, Hongtao
> -Original Message- > From: H.J. Lu > Sent: Tuesday, April 29, 2025 1:58 PM > To: Hongtao Liu > Cc: GCC Patches ; Uros Bizjak > ; Liu, Hongtao > Subject: Re: [PATCH] i386: Add > ix86_expand_unsigned_small_int_cst_argument > > On Tue, Apr 29,

Re: [PATCH] i386: Add ix86_expand_unsigned_small_int_cst_argument

2025-04-28 Thread H.J. Lu
On Tue, Apr 29, 2025 at 1:54 PM H.J. Lu wrote: > > On Tue, Apr 29, 2025 at 12:56 PM Hongtao Liu wrote: > > > > On Sun, Apr 27, 2025 at 10:58 AM H.J. Lu wrote: > > > > > > When passing 0xff as an unsigned char function argument with the C > > > frontend > > > promotion, expand_normal used to get

Re: [PATCH] i386: Add ix86_expand_unsigned_small_int_cst_argument

2025-04-28 Thread H.J. Lu
On Tue, Apr 29, 2025 at 12:56 PM Hongtao Liu wrote: > > On Sun, Apr 27, 2025 at 10:58 AM H.J. Lu wrote: > > > > When passing 0xff as an unsigned char function argument with the C frontend > > promotion, expand_normal used to get > > > > constant > > 255> > > > > and returned the rtx value using

Re: [PATCH] i386: Add ix86_expand_unsigned_small_int_cst_argument

2025-04-28 Thread Hongtao Liu
On Sun, Apr 27, 2025 at 10:58 AM H.J. Lu wrote: > > When passing 0xff as an unsigned char function argument with the C frontend > promotion, expand_normal used to get > > constant > 255> > > and returned the rtx value using the sign-extended representation: > > (const_int 255 [0xff]) > > But aft

[PATCH] i386: Add ix86_expand_unsigned_small_int_cst_argument

2025-04-26 Thread H.J. Lu
H.J. From a7d29729de7451f5ef47d85480905fec0670bd7c Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 12 Nov 2024 09:03:31 +0800 Subject: [PATCH] i386: Add ix86_expand_unsigned_small_int_cst_argument When passing 0xff as an unsigned char function argument with the C frontend promotion, expand_normal used to get