aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/arm-clear.c
blob: 51506dfed10d8febf9fb82d9c001ea98c91dc36b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// REQUIRES: arm-registered-target
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s

void clear0(void *ptr) {
  // CHECK: clear0
  // CHECK-NOT: load i8**
  __clear_cache();
}

void clear1(void *ptr) {
  // CHECK: clear1
  // CHECK: load i8**
  // CHECK-NOT: load i8**
  __clear_cache(ptr);
}

void clear2(void *ptr, void *ptr2) {
  // CHECK: clear2
  // CHECK: load i8**
  // CHECK: load i8**
  __clear_cache(ptr, ptr2);
}