https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107920
--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Prathamesh Kulkarni <prathamesh3...@gcc.gnu.org>: https://gcc.gnu.org/g:cb6922f490d3133e4ccbc1190b555d16695fc9c3 commit r13-4533-gcb6922f490d3133e4ccbc1190b555d16695fc9c3 Author: Prathamesh Kulkarni <prathamesh.kulka...@linaro.org> Date: Wed Dec 7 13:34:02 2022 +0530 PR107920: Fix handling of virtual operands and disable folding for -fnon-call-exceptions. gcc/ChangeLog: PR target/107920 * config/aarch64/aarch64-sve-builtins-base.cc: Use gsi_replace_with_seq_vops to handle virtual operands, and gate the transform on !flag_non_call_exceptions. * gimple-fold.cc (gsi_replace_with_seq_vops): Make function non static. * gimple-fold.h (gsi_replace_with_seq_vops): Declare. gcc/testsuite/ChangeLog: PR target/107920 * gcc.target/aarch64/sve/acle/general/pr107920.c: New test. * g++.target/aarch64/sve/pr107920.C: Likewise.