Re: [PATCH] Specify signed/unsigned/dontcare in calls to extract_bit_field_1.

2023-08-04 Thread Richard Biener via Gcc-patches
On Thu, Aug 3, 2023 at 9:15 PM Roger Sayle wrote: > > > This patch is inspired by Jakub's work on PR rtl-optimization/110717. > The bitfield example described in comment #2, looks like: > > struct S { __int128 a : 69; }; > unsigned type bar (struct S *p) { > return p->a; > } > > which on x86_64

[PATCH] Specify signed/unsigned/dontcare in calls to extract_bit_field_1.

2023-08-03 Thread Roger Sayle
This patch is inspired by Jakub's work on PR rtl-optimization/110717. The bitfield example described in comment #2, looks like: struct S { __int128 a : 69; }; unsigned type bar (struct S *p) { return p->a; } which on x86_64 with -O2 currently generates: bar:movzbl 8(%rdi), %ecx