[PATCH]Don't use pinsr for struct initialization.

Hongtao Liu crazylht@gmail.com
Fri Aug 14 06:03:57 GMT 2020


Hi:
  For struct initialization, when it fits in a TImode, gcc will use
pinsr insn which causes poor codegen described in PR93897 and PR96562.

  Bootstrap is ok, regression test is ok for i386/x86-64 backend.
  Ok for trunk?

ChangeLog
gcc/
        PR target/96562
        PR target/93897
        * config/i386/i386-expand.c (ix86_expand_pinsr): Don't use
        pinsr for TImode.

gcc/testsuite/
        * gcc.target/i386/pr96562-1.c: New test.

-- 
BR,
Hongtao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-use-pinsr-for-store_bit_field-when-dst-is-TImo.patch
Type: text/x-patch
Size: 2246 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200814/28657a22/attachment.bin>


More information about the Gcc-patches mailing list