Skip to content
Snippets Groups Projects
Commit 69162f0c authored by Warren Hunt's avatar Warren Hunt
Browse files

Updated to r201734. Removed unused declaration from lit test.

Also updating lit test to be more roboust (changing fixed offsets to 
flexible offsets)



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201742 91177308-0d34-0410-b5e6-96231b3b80d8
parent 26b55ea3
No related branches found
No related tags found
No related merge requests found
// RUN: %clang_cc1 -triple=i686-unknown-unknown -fms-extensions -emit-llvm -o - %s | FileCheck %s
extern void printf(const char*, ...);
void f(char *a, volatile long* b) {
_mm_prefetch(a, 0);
_mm_prefetch(a, 1);
......@@ -12,10 +11,10 @@ void f(char *a, volatile long* b) {
_InterlockedExchangeAdd(b, 2);
};
// CHECK: call void @llvm.prefetch(i8* %1, i32 0, i32 0, i32 1)
// CHECK: call void @llvm.prefetch(i8* %3, i32 0, i32 1, i32 1)
// CHECK: call void @llvm.prefetch(i8* %5, i32 0, i32 2, i32 1)
// CHECK: call void @llvm.prefetch(i8* %7, i32 0, i32 3, i32 1)
// CHECK: call void @llvm.prefetch(i8* %{{.*}}, i32 0, i32 0, i32 1)
// CHECK: call void @llvm.prefetch(i8* %{{.*}}, i32 0, i32 1, i32 1)
// CHECK: call void @llvm.prefetch(i8* %{{.*}}, i32 0, i32 2, i32 1)
// CHECK: call void @llvm.prefetch(i8* %{{.*}}, i32 0, i32 3, i32 1)
// CHECK: cmpxchg
// CHECK: atomicrmw volatile add
// CHECK: atomicrmw volatile sub
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment