]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Handle unsupported modes from ix86_widen_mult_cost [PR109807]
authorUros Bizjak <ubizjak@gmail.com>
Sun, 14 May 2023 19:53:17 +0000 (21:53 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Sun, 14 May 2023 19:53:17 +0000 (21:53 +0200)
commitaed51e2051b24a6a2127c6626f451641557a571a
treeb408fd0fdbce1636332ce75526ff557417e78e21
parentbde21de1205c0456f6df68c950fb7ee631fcfa93
i386: Handle unsupported modes from ix86_widen_mult_cost [PR109807]

Revert my previous change that faked handling of V4HI and V2SImodes
in ix86_widen_mult_cost and rather return arbitrary high value
for unsupported modes. This should prevent cost estimator from
selecting non-existent vector widen multiply operation.

gcc/ChangeLog:

PR target/109807
* config/i386/i386.cc: Revert the 2023-05-11 change.
(ix86_widen_mult_cost): Return high value instead of
ICEing for unsupported modes.

gcc/testsuite/ChangeLog:

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