i386: Fix up ix86_md_asm_adjust for TImode [PR98086]
authorUros Bizjak <ubizjak@gmail.com>
Thu, 3 Dec 2020 16:49:42 +0000 (17:49 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Thu, 3 Dec 2020 16:51:45 +0000 (17:51 +0100)
commit756f55e62f73eb32787497eb9e564d4b21a6e637
treedbf2773336146b83d713ec71abc5064e3b4411ca
parent7254a78cf4c419a9b9361289d8c535130cf1dfd0
i386: Fix up ix86_md_asm_adjust for TImode [PR98086]

ix86_md_asm_adjust assumes that dest_mode can be only [QHSD]Imode
and nothing else.  The patch rewrites zero-extension part to use
convert_to_mode to handle TImode and hypothetically even wider modes.

2020-12-03  Uroš Bizjak  <ubizjak@gmail.com>
    Jakub Jelinek  <jakub@redhat.com>

gcc/
PR target/98086
* config/i386/i386.c (ix86_md_asm_adjustmd): Rewrite
zero-extension part to use convert_to_mode.

gcc/testsuite/
PR target/98086
* gcc.target/i386/pr98086.c: New test.
gcc/config/i386/i386.c
gcc/testsuite/gcc.target/i386/pr98086.c [new file with mode: 0644]