summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins-arm.c
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-05-04 02:52:25 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-05-04 02:52:25 +0000
commit956c2ec532ab716f05cf51e8a5634088a8d728f4 (patch)
tree010505e5f1a1cb9e4077057f90a5fb552a852fe7 /clang/test/CodeGen/builtins-arm.c
parent6323a2d63c704aa26e6e10b48cbc6d55325a496a (diff)
downloadbcm5719-llvm-956c2ec532ab716f05cf51e8a5634088a8d728f4.tar.gz
bcm5719-llvm-956c2ec532ab716f05cf51e8a5634088a8d728f4.zip
CodeGen: complete ARM ACLE hint 8.4 support
Add support for the remaining hints from the ACLE. Although __dbg is listed as a hint, it is handled different, so it is not covered by this change. llvm-svn: 207930
Diffstat (limited to 'clang/test/CodeGen/builtins-arm.c')
-rw-r--r--clang/test/CodeGen/builtins-arm.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtins-arm.c b/clang/test/CodeGen/builtins-arm.c
index fe04026545f..c5e487aafd6 100644
--- a/clang/test/CodeGen/builtins-arm.c
+++ b/clang/test/CodeGen/builtins-arm.c
@@ -19,6 +19,30 @@ void test_eh_return_data_regno()
res = __builtin_eh_return_data_regno(1); // CHECK: store volatile i32 1
}
+void yield() {
+ __yield();
+}
+
+// CHECK: call {{.*}} @llvm.arm.hint(i32 1)
+
+void wfe() {
+ __wfe();
+}
+
+// CHECK: call {{.*}} @llvm.arm.hint(i32 2)
+
+void wfi() {
+ __wfi();
+}
+
+// CHECK: call {{.*}} @llvm.arm.hint(i32 3)
+
+void sev() {
+ __sev();
+}
+
+// CHECK: call {{.*}} @llvm.arm.hint(i32 4)
+
void sevl() {
__sevl();
}
OpenPOWER on IntegriCloud