Re: [committed] i386: Generate strict_low_part QImode insn with high input register

2023-11-15 Thread Uros Bizjak
On Tue, Nov 14, 2023 at 6:37 PM Uros Bizjak wrote: > PR target/78904 > > gcc/ChangeLog: > > * config/i386/i386.md (*addqi_ext_1_slp): > New define_insn_and_split pattern. > (*subqi_ext_1_slp): Ditto. > (*qi_ext_1_slp): Ditto. > > gcc/testsuite/ChangeLog: > > * gcc.target/i

[committed] i386: Generate strict_low_part QImode insn with high input register

2023-11-14 Thread Uros Bizjak
Following testcase: struct S1 { unsigned char val; unsigned char pad1; unsigned short pad2; }; struct S2 { unsigned char pad1; unsigned char val; unsigned short pad2; }; struct S1 test_and (struct S1 a, struct S2 b) { a.val &= b.val; return a; } compiles with -O2 to: movl