blob: 51506dfed10d8febf9fb82d9c001ea98c91dc36b [file] [log] [blame]
Jim Grosbachf7947052012-07-09 18:34:21 +00001// REQUIRES: arm-registered-target
Eric Christopher8a37c792011-03-14 20:30:34 +00002// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s
3
4void clear0(void *ptr) {
5 // CHECK: clear0
6 // CHECK-NOT: load i8**
7 __clear_cache();
8}
9
10void clear1(void *ptr) {
11 // CHECK: clear1
12 // CHECK: load i8**
13 // CHECK-NOT: load i8**
14 __clear_cache(ptr);
15}
16
17void clear2(void *ptr, void *ptr2) {
18 // CHECK: clear2
19 // CHECK: load i8**
20 // CHECK: load i8**
21 __clear_cache(ptr, ptr2);
22}