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 | b25d6195ccdb5bbf5cd95572e11f8c164f45bbe5 (patch) | |
tree | 6e1cd58fb3dc9ad5660a2ada3a837212014f9830 /test/CodeGen/builtins-arm.c | |
parent | 424e60d770813b55d99f29845e289c0b08d5f4b0 (diff) | |
download | clang-b25d6195ccdb5bbf5cd95572e11f8c164f45bbe5.tar.gz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/builtins-arm.c')
-rw-r--r-- | test/CodeGen/builtins-arm.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/CodeGen/builtins-arm.c b/test/CodeGen/builtins-arm.c index fe04026545..c5e487aafd 100644 --- a/test/CodeGen/builtins-arm.c +++ b/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(); } |