| 1 |
// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +prefetchi -fsyntax-only -verify |
| 2 |
|
| 3 |
#include <immintrin.h> |
| 4 |
|
| 5 |
void test_invalid_prefetchi(void* p) { |
| 6 |
__builtin_ia32_prefetchi(p, 1); // expected-error {{argument value 1 is outside the valid range [2, 3]}} |
| 7 |
} |