mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-28 15:58:57 -04:00

Adding the mapping between __builtin___clear_cache into @llvm.clear_cache llvm-svn: 204820
13 lines
429 B
C
13 lines
429 B
C
// 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 {{.*}}, i8* getelementptr {{.*}} (i8* getelementptr {{.*}} 32))
|
|
return 0;
|
|
}
|