2 /* { dg-require-alias "" } */
3 /* { dg-options "-O2 -fdump-ipa-icf-optimized -flto -fdump-tree-optimized -fno-ipa-vrp" } */
4 /* { dg-require-effective-target lto } */
5 /* { dg-require-effective-target linker_plugin } */
6 /* { dg-additional-sources "ipa-icf-38a.c" }*/
8 /* Based on ipa-icf-3.c. */
10 typedef int v4si
__attribute__ ((vector_size (16)));
12 __attribute__ ((noinline
))
26 int volatile a
= foo();
27 int volatile b
= bar();
32 /* { dg-final { scan-wpa-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->bar/\[0-9+\]+" "icf" } } */
33 /* { dg-final { scan-wpa-ipa-dump "Equal symbols: 1" "icf" } } */
34 /* { dg-final { scan-ltrans-tree-dump "Function foo" "optimized" } } */
35 /* { dg-final { scan-ltrans-tree-dump-not "Function bar" "optimized" } } */