]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/i386/hot-1.c
1 /* Test whether using attribute((hot)) really turns on -O3. Do this test
2 by checking whether we vectorize a simple loop. */
3 /* { dg-do compile } */
4 /* { dg-options "-O1 -msse2 -mfpmath=sse -march=k8" } */
5 /* { dg-final { scan-assembler "addps" } } */
6 /* { dg-final { scan-assembler "subss" } } */
9 float a
[SIZE
] __attribute__((__aligned__(32)));
10 float b
[SIZE
] __attribute__((__aligned__(32)));
11 float c
[SIZE
] __attribute__((__aligned__(32)));
13 /* This should vectorize. */
14 void hot (void) __attribute__((__hot__
));
21 for (i
= 0; i
< SIZE
; i
++)
25 /* This should not vectorize. */
31 for (i
= 0; i
< SIZE
; i
++)