YouCompleteMe/cpp/llvm/tools/clang/test/CodeGen/arm-clear.c
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

22 lines
424 B
C

// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s
void clear0(void *ptr) {
// CHECK: clear0
// CHECK-NOT: load i8**
__clear_cache();
}
void clear1(void *ptr) {
// CHECK: clear1
// CHECK: load i8**
// CHECK-NOT: load i8**
__clear_cache(ptr);
}
void clear2(void *ptr, void *ptr2) {
// CHECK: clear2
// CHECK: load i8**
// CHECK: load i8**
__clear_cache(ptr, ptr2);
}