1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2 
3 char buffer[32] = "This is a largely unused buffer";
4 
5 // __builtin___clear_cache always maps to @llvm.clear_cache, but what
6 // each back-end produces is different, and this is tested in LLVM
7 
main()8 int main() {
9   __builtin___clear_cache(buffer, buffer+32);
10 // CHECK: @llvm.clear_cache(i8* getelementptr {{.*}}, i8* getelementptr {{.*}} (i8* getelementptr {{.*}} 32))
11   return 0;
12 }
13