diff options
author | Yi Kong <Yi.Kong@arm.com> | 2014-07-14 15:20:09 +0000 |
---|---|---|
committer | Yi Kong <Yi.Kong@arm.com> | 2014-07-14 15:20:09 +0000 |
commit | 4d5e23f53a68937e3108293a5b408f2790b309e8 (patch) | |
tree | 78c588046cd036a5165b79c8010e2771324048ee /clang/test/CodeGen/builtins-arm.c | |
parent | 41ffa5d1ba1f85c5ee0524124c8c616383cd8412 (diff) | |
download | bcm5719-llvm-4d5e23f53a68937e3108293a5b408f2790b309e8.tar.gz bcm5719-llvm-4d5e23f53a68937e3108293a5b408f2790b309e8.zip |
ARM: Implement __builtin_arm_nop intrinsic
This patch implements __builtin_arm_nop intrinsic for AArch32 and AArch64,
which generates hint 0x0, the alias of NOP instruction.
This intrinsic is necessary to implement ACLE __nop intrinsic.
Differential Revision: http://reviews.llvm.org/D4495
llvm-svn: 212947
Diffstat (limited to 'clang/test/CodeGen/builtins-arm.c')
-rw-r--r-- | clang/test/CodeGen/builtins-arm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtins-arm.c b/clang/test/CodeGen/builtins-arm.c index e55183c7f6a..a51df15ce56 100644 --- a/clang/test/CodeGen/builtins-arm.c +++ b/clang/test/CodeGen/builtins-arm.c @@ -19,6 +19,12 @@ void test_eh_return_data_regno() res = __builtin_eh_return_data_regno(1); // CHECK: store volatile i32 1 } +void nop() { + __builtin_arm_nop(); +} + +// CHECK: call {{.*}} @llvm.arm.hint(i32 0) + void yield() { __builtin_arm_yield(); } |