middle-end/105965 - add missing v_c_e <{ el }> simplification
authorRichard Biener <rguenther@suse.de>
Tue, 14 Jun 2022 08:59:49 +0000 (10:59 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 19 Jul 2022 09:24:50 +0000 (11:24 +0200)
commit1fe7321a6ce0dcb05763c8f1850a066824516342
treebdbd81d304633d5509c7de239abb4551d54da7af
parent92aa9490315d969d6e7580fb6e8d006415877bd6
middle-end/105965 - add missing v_c_e <{ el }> simplification

When we got the simplification of bit-field-ref to view-convert
we lost the ability to detect FMAs since we cannot look through

  _1 = {_10};
  _11 = VIEW_CONVERT_EXPR<float>(_1);

the following amends the (view_convert CONSTRUCTOR) pattern
to handle this case.

2022-06-14  Richard Biener  <rguenther@suse.de>

PR middle-end/105965
* match.pd (view_convert CONSTRUCTOR): Handle single-element
CTOR case.

* gcc.target/i386/pr105965.c: New testcase.

(cherry picked from commit 90467f0ad649d0817f9e034596a0fb85605b55af)
gcc/match.pd
gcc/testsuite/gcc.target/i386/pr105965.c [new file with mode: 0644]