aarch64: Don't fold svundef* at the gimple level
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 3 Dec 2020 15:22:52 +0000 (15:22 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 3 Dec 2020 15:22:52 +0000 (15:22 +0000)
commit9c6813437611a877eaffc255a0a1a2cbffa6466d
tree530ff0e9aa28fe9f1bedfed3b5c589af8c6e76db
parent277ff3406d533990e98cf1c2075b9dc9db6fa48a
aarch64: Don't fold svundef* at the gimple level

As the testcase shows, folding svundef*() at the gimple level
has the unfortunate side-effect of introducing -Wuninitialized
or -Wmaybe-uninitialized warnings.  We don't have a testcase
that relies on the fold, so the easiest fix seems to be to
remove it.

gcc/
* config/aarch64/aarch64-sve-builtins-base.cc (svundef_impl::fold):
Delete.

gcc/testsuite/
* gcc.target/aarch64/sve/acle/general/undef_1.c: New test.
gcc/config/aarch64/aarch64-sve-builtins-base.cc
gcc/testsuite/gcc.target/aarch64/sve/acle/general/undef_1.c [new file with mode: 0644]