https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107920
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There is another question, how does this folding interact with
-fnon-call-exceptions and is it still correct?
E.g. compile at -O1 -march=armv8-a+sve2 -fnon-call-exceptions:
#include "arm_sve.h"
svint8_t
test_s8(int8_t *x)
{
try {
return svld1rq_s8 (svptrue_b8 (), &x[0]);
} catch(...)
{
return (svint8_t){};
}
}
---- CUT ----
During ccp1, the catch part is removed ....
