You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
455 B
13 lines
455 B
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
|
|
|
char buffer[32] = "This is a largely unused buffer";
|
|
|
|
// __builtin___clear_cache always maps to @llvm.clear_cache, but what
|
|
// each back-end produces is different, and this is tested in LLVM
|
|
|
|
int main() {
|
|
__builtin___clear_cache(buffer, buffer+32);
|
|
// CHECK: @llvm.clear_cache(i8* getelementptr inbounds ({{.*}}, i8* getelementptr inbounds (i8, i8* getelementptr inbounds ({{.*}} 32))
|
|
return 0;
|
|
}
|