tree-optimization/101868 - avoid PRE of trapping mems across calls
authorRichard Biener <rguenther@suse.de>
Tue, 17 Aug 2021 09:23:06 +0000 (11:23 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 17 Aug 2021 09:24:14 +0000 (11:24 +0200)
commit3ed779689631ff8f398dcde06d5efa2a3c43ef27
treeb4b967559a5fdd4a12af45519c964680b8625b5c
parent2e0d7f16da0897fb2eb83f5c1ffe67f0ad747e92
tree-optimization/101868 - avoid PRE of trapping mems across calls

This adds the testcase from the fix for the PR.

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

PR tree-optimization/101868
* gcc.dg/lto/pr101868_0.c: New testcase.
* gcc.dg/lto/pr101868_1.c: Likewise.
* gcc.dg/lto/pr101868_2.c: Likewise.
* gcc.dg/lto/pr101868_3.c: Likewise.
gcc/testsuite/gcc.dg/lto/pr101868_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr101868_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr101868_2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr101868_3.c [new file with mode: 0644]