| Renato Golin | c491a8d | 2014-03-26 15:36:05 +0000 | [diff] [blame] | 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 | |
| 8 | int main() { |
| 9 | __builtin___clear_cache(buffer, buffer+32); |
| David Blaikie | bdf40a6 | 2015-03-13 18:21:46 +0000 | [diff] [blame] | 10 | // CHECK: @llvm.clear_cache(i8* getelementptr inbounds ({{.*}}, i8* getelementptr inbounds (i8, i8* getelementptr inbounds ({{.*}} 32)) |
| Renato Golin | c491a8d | 2014-03-26 15:36:05 +0000 | [diff] [blame] | 11 | return 0; |
| 12 | } |