diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-12-28 10:58:43 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-12-28 10:58:43 +0100 |
commit | 242783c52c22ed96eae722b2fa9847711ac84699 (patch) | |
tree | abe462b5c634f297590c066b2bfdf180021e898c /gcc/config/darwin-d.c | |
parent | 472568f5d89eddbfcaff3887dab2a6c4c7fb8d84 (diff) | |
download | gcc-242783c52c22ed96eae722b2fa9847711ac84699.zip gcc-242783c52c22ed96eae722b2fa9847711ac84699.tar.gz gcc-242783c52c22ed96eae722b2fa9847711ac84699.tar.bz2 |
i386: Fix handling of SUBREGs in divv2sf3 [PR103842]
register_operand predicate allows not just REGs, but also SUBREGs of REGs,
and for the latter lowpart_subreg might FAIL when trying to create paradoxical
SUBREG in some cases. For the input operand fixed by force_reg on it first,
for the output operand handled by always dividing into a fresh V4SFmode temporary
and emit_move_insn into the destination afterwards, that is also beneficial for
combine.
2021-12-28 Jakub Jelinek <jakub@redhat.com>
PR target/103842
* config/i386/mmx.md (divv2sf3): Use force_reg on op1. Always perform
divv4sf3 into a pseudo and emit_move_insn into operands[0].
* g++.dg/opt/pr103842.C: New test.
Diffstat (limited to 'gcc/config/darwin-d.c')
0 files changed, 0 insertions, 0 deletions