summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins-arm.c
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-07-02 17:41:27 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-07-02 17:41:27 +0000
commit4bddd9d400aa75de8961a4e6c5e3f387302534e8 (patch)
tree7940549584c1d9eaebaf9e06ce2094e6620dff08 /clang/test/CodeGen/builtins-arm.c
parentc7e4457a31d5a2e786addfda68ee60a01bafc06b (diff)
downloadbcm5719-llvm-4bddd9d400aa75de8961a4e6c5e3f387302534e8.tar.gz
bcm5719-llvm-4bddd9d400aa75de8961a4e6c5e3f387302534e8.zip
CodeGen: make target builtins support languages
This extends the target builtin support to allow language specific annotations (i.e. LANGBUILTIN). This is to allow MSVC compatibility whilst retaining the ability to have EABI targets use a __builtin_ prefix. This is merely to allow uniformity in the EABI case where the unprefixed name is provided as an alias in the header. llvm-svn: 212196
Diffstat (limited to 'clang/test/CodeGen/builtins-arm.c')
-rw-r--r--clang/test/CodeGen/builtins-arm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/test/CodeGen/builtins-arm.c b/clang/test/CodeGen/builtins-arm.c
index 13ffc607849..1d22bd595df 100644
--- a/clang/test/CodeGen/builtins-arm.c
+++ b/clang/test/CodeGen/builtins-arm.c
@@ -20,32 +20,33 @@ void test_eh_return_data_regno()
}
void yield() {
- __yield();
+ __builtin_yield();
}
// CHECK: call {{.*}} @llvm.arm.hint(i32 1)
void wfe() {
- __wfe();
+ __builtin_wfe();
}
// CHECK: call {{.*}} @llvm.arm.hint(i32 2)
void wfi() {
- __wfi();
+ __builtin_wfi();
}
// CHECK: call {{.*}} @llvm.arm.hint(i32 3)
void sev() {
- __sev();
+ __builtin_sev();
}
// CHECK: call {{.*}} @llvm.arm.hint(i32 4)
void sevl() {
- __sevl();
+ __builtin_sevl();
}
+
// CHECK: call {{.*}} @llvm.arm.hint(i32 5)
void test_barrier() {
OpenPOWER on IntegriCloud