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
e to use trunc_int_for_mode (), not some odd function like you introduce here? Richard. > > gnu-tgl-3:pts/6[168]> head -50 > /tmp/0001-i386-Add-ix86_expand_integer_cst_argument.patch > From d9dddaad6254cca11b0a55c18291180d6d8d7524 Mon Sep 17 00:00:00 2001 > From: "H.J. Lu&quo

[PATCH] i386: Add ix86_expand_integer_cst_argument

2024-11-12 Thread H.J. Lu
(ix86_expand_round_builtin): Likewise. (ix86_expand_special_args_builtin): Likewise. (ix86_expand_builtin): Likewise. -- H.J. From d9dddaad6254cca11b0a55c18291180d6d8d7524 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_integer_cst_argument