Rafael Espindola | a71d3c6 | 2010-06-08 03:59:28 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -Wall -Werror -triple thumbv7-eabi -target-cpu cortex-a8 -O3 -emit-llvm -o - %s | FileCheck %s |
Chris Lattner | 2752c01 | 2010-03-03 19:03:45 +0000 | [diff] [blame] | 2 | |
Chris Lattner | 2752c01 | 2010-03-03 19:03:45 +0000 | [diff] [blame] | 3 | void *f0() |
| 4 | { |
| 5 | return __builtin_thread_pointer(); |
| 6 | } |
Rafael Espindola | a71d3c6 | 2010-06-08 03:59:28 +0000 | [diff] [blame] | 7 | |
| 8 | void f1(char *a, char *b) { |
| 9 | __clear_cache(a,b); |
| 10 | } |
| 11 | |
Daniel Dunbar | 1058253 | 2010-07-16 00:31:23 +0000 | [diff] [blame] | 12 | // CHECK: call {{.*}} @__clear_cache |