On Mon, Mar 07, 2022 at 11:51:50AM -0000, Roger Sayle wrote: > I agree that for completeness similar peepholes handling inserts into > SImode would be a good thing, but these wouldn't be restricted by > TARGET_64BIT and would therefore require additional -m32 testing. > The DImode peepholes I can justify for stage4 as PR tree-opt/98335 > is a regression, SImode peepholes would be more of a "leap of faith". > If you’d be willing to accept a patch without a testcase, let me know.
For testcase, wouldn't something like: struct Data { char a; short b; }; char c; void val(void) { __asm__ __volatile__ ("" : : "r" ((struct Data) { c } )); } do it? Jakub