diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-04 02:52:25 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-04 02:52:25 +0000 |
commit | 956c2ec532ab716f05cf51e8a5634088a8d728f4 (patch) | |
tree | 010505e5f1a1cb9e4077057f90a5fb552a852fe7 /clang/test/CodeGen/builtins-arm.c | |
parent | 6323a2d63c704aa26e6e10b48cbc6d55325a496a (diff) | |
download | bcm5719-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.c | 24 |
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(); } |