]> git.ipfire.org Git - thirdparty/gcc.git/commit
target/100784 - avoid ICE with folding __builtin_ia32_shufpd
authorRichard Biener <rguenther@suse.de>
Thu, 20 Jan 2022 13:34:33 +0000 (14:34 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 20 Jan 2022 14:19:15 +0000 (15:19 +0100)
commitd63d9c3dd160dce24f0209f193b8e7388b19f712
tree51a2d7920b92d2d21e2c31a8a6eea1d869b9f10e
parentce9e0cc5da4c557e4af598fd0a2d087d644bdfc9
target/100784 - avoid ICE with folding __builtin_ia32_shufpd

This avoids ICEing when there is no LHS on the call by following
what foldings of other builtins do in , namely not folding.

2022-01-20  Richard Biener  <rguenther@suse.de>

PR target/100784
* config/i386/i386.cc (ix86_gimple_fold_builtin): Check for
LHS before folding __builtin_ia32_shufpd and friends.
gcc/config/i386/i386.cc