blob: 7bbcc03e21cae21d6e06d8d0a180110b8c7aeaee [file] [log] [blame]
Renato Golinc491a8d2014-03-26 15:36:05 +00001// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
3char 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
8int main() {
9 __builtin___clear_cache(buffer, buffer+32);
David Blaikiebdf40a62015-03-13 18:21:46 +000010// CHECK: @llvm.clear_cache(i8* getelementptr inbounds ({{.*}}, i8* getelementptr inbounds (i8, i8* getelementptr inbounds ({{.*}} 32))
Renato Golinc491a8d2014-03-26 15:36:05 +000011 return 0;
12}