Jim Grosbach | f794705 | 2012-07-09 18:34:21 +0000 | [diff] [blame^] | 1 | // REQUIRES: arm-registered-target |
Eric Christopher | 8a37c79 | 2011-03-14 20:30:34 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s |
| 3 | |
| 4 | void clear0(void *ptr) { |
| 5 | // CHECK: clear0 |
| 6 | // CHECK-NOT: load i8** |
| 7 | __clear_cache(); |
| 8 | } |
| 9 | |
| 10 | void clear1(void *ptr) { |
| 11 | // CHECK: clear1 |
| 12 | // CHECK: load i8** |
| 13 | // CHECK-NOT: load i8** |
| 14 | __clear_cache(ptr); |
| 15 | } |
| 16 | |
| 17 | void clear2(void *ptr, void *ptr2) { |
| 18 | // CHECK: clear2 |
| 19 | // CHECK: load i8** |
| 20 | // CHECK: load i8** |
| 21 | __clear_cache(ptr, ptr2); |
| 22 | } |