Fix gcc.dg/lto/pr48622_0.c testcase
authorRichard Biener <rguenther@suse.de>
Wed, 11 Aug 2021 14:28:33 +0000 (16:28 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 11 Aug 2021 14:30:36 +0000 (16:30 +0200)
commitcba64d855df581cc26fa487162027138aef4dbe5
tree5e2b20a4b2313cb6fe02046ec9fe1b111d13ac3d
parent2cb02e065ff015a69db918eb545a00cd6edf0194
Fix gcc.dg/lto/pr48622_0.c testcase

This fixes the testcase to not rely on the reference to
ashift_qi_1 being optimized out by RTL optimization via
help of the initregs pass that changes comparisons of
uninitialized data with a comparison that is always false.

2021-08-11  Richard Biener  <rguenther@suse.de>

* gcc.dg/lto/pr48622_1.c: Provide non-LTO definition
of ashift_qi_1.
gcc/testsuite/gcc.dg/lto/pr48622_1.c [new file with mode: 0644]