
For more details about these instructions, please refer to the latest ISE document: https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D136040
17 lines
545 B
C
17 lines
545 B
C
// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -target-feature +prefetchi -emit-llvm -o - %s | FileCheck %s
|
|
|
|
|
|
#include <x86intrin.h>
|
|
|
|
void test_m_prefetch_it0(void *p) {
|
|
return _m_prefetchit0(p);
|
|
// CHECK-LABEL: define{{.*}} void @test_m_prefetch_it0
|
|
// CHECK: call void @llvm.prefetch.p0(ptr {{.*}}, i32 0, i32 3, i32 0)
|
|
}
|
|
|
|
void test_m_prefetch_it1(void *p) {
|
|
return _m_prefetchit1(p);
|
|
// CHECK-LABEL: define{{.*}} void @test_m_prefetch_it1
|
|
// CHECK: call void @llvm.prefetch.p0(ptr {{.*}}, i32 0, i32 2, i32 0)
|
|
}
|