Debian Codegraph @

gcc/testsuite/gcc.target/i386/prefetchi-1b.c

raw
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-mprefetchi -O0" } */
3 /* { dg-final { scan-assembler-times "\[ \\t\]+prefetchit0\[ \\t\]+bar\\(%rip\\)" 1 } } */
4 /* { dg-final { scan-assembler-times "\[ \\t\]+prefetchit1\[ \\t\]+bar\\(%rip\\)" 1 } } */
5
6 #include <x86intrin.h>
7
8 int
9 bar (int a)
10 {
11 return a + 1;
12 }
13
14 int
15 foo1 (int b)
16 {
17 _m_prefetchit0 (bar);
18 return bar (b) + 1;
19 }
20
21 int
22 foo2 (int b)
23 {
24 _m_prefetchit1 (bar);
25 return bar (b) + 1;
26 }