fortran/openmp.cc: Fix var init and locus use to avoid uninit values [PR fortran...
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-38.c
blob74b5e56f9180d5239a19fcb32c1630eedf07d098
1 /* { dg-do link } */
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))
13 int foo(void)
15 v4si a = {1,2,3,4};
16 v4si b = {3,2,1,4};
17 v4si c;
19 return 54;
22 extern int bar(void);
24 int main()
26 int volatile a = foo();
27 int volatile b = bar();
29 return 0;
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" } } */