PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-21.c
bloba20b4a43ffe156a6ff314f672a5716d810980b29
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -msse2 -fdump-ipa-icf" } */
4 #include <xmmintrin.h>
6 __attribute__ ((noinline))
7 void foo()
9 float x = 1.2345f;
10 __m128 v =_mm_load1_ps(&x);
13 __attribute__ ((noinline))
14 void bar()
16 float x = 1.2345f;
17 __m128 v =_mm_load1_ps(&x);
20 int main()
22 return 2;
25 /* { dg-final { scan-ipa-dump "Semantic equality hit:foo->bar" "icf" } } */
26 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */