blob: f0a4173d2a6af5ae5522e806f49930bc61680a16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile } */
/* { dg-options "-mprefetchi -O2" } */
/* { dg-final { scan-assembler-not "prefetchit0" } } */
/* { dg-final { scan-assembler-not "prefetchit1" } } */
#include <x86intrin.h>
void* p;
void extern
prefetchi_test1 (void)
{
__builtin_ia32_prefetchi (p, 2); /* { dg-warning "instruction prefetch applies when in 64-bit mode with RIP-relative addressing and option '-mprefetchi'; they stay NOPs otherwise" } */
}
void extern
prefetchi_test2 (void)
{
__builtin_ia32_prefetch (p, 0, 3, 1); /* { dg-warning "instruction prefetch applies when in 64-bit mode with RIP-relative addressing and option '-mprefetchi'; they stay NOPs otherwise" } */
}
|