Martin Liška <mli...@suse.cz> writes: > diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c > b/gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c > new file mode 100644 > index 0000000..7358e43 > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c > @@ -0,0 +1,27 @@ > +/* { dg-do compile } */ > +/* { dg-options "-O2 -fdump-ipa-icf" } */ > + > +#include <xmmintrin.h> > + > +__attribute__ ((noinline)) > +void foo() > +{ > + float x = 1.2345f; > + __m128 v =_mm_load1_ps(&x); > +} > + > +__attribute__ ((noinline)) > +void bar() > +{ > + float x = 1.2345f; > + __m128 v =_mm_load1_ps(&x); > +} > + > +int main() > +{ > + return 2; > +} > + > +/* { dg-final { scan-ipa-dump "Semantic equality hit:bar->foo" "icf" } } */ > +/* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */ > +/* { dg-final { cleanup-ipa-dump "icf" } } */
FAIL: gcc.dg/ipa/ipa-icf-21.c (test for excess errors) Excess errors: /usr/local/gcc/gcc-20141019/gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c:4:23: fatal e\ rror: xmmintrin.h: No such file or directory compilation terminated. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."