Skip to content
Snippets Groups Projects
Commit 5573271b authored by Yi Kong's avatar Yi Kong
Browse files

ARM: Add NOP intrinsic mapping in arm_acle.h


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212950 91177308-0d34-0410-b5e6-96231b3b80d8
parent dbc52fa0
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,9 @@
#if defined(__cplusplus)
extern "C" {
#endif
/* 8.4 - Hints */
/* 8 SYNCHRONIZATION, BARRIER AND HINT INTRINSICS */
/* 8.4 Hints */
#if !defined(_MSC_VER)
static __inline__ void __attribute__((always_inline, nodebug)) __wfi(void) {
......@@ -58,6 +59,11 @@ static __inline__ void __attribute__((always_inline, nodebug)) __yield(void) {
}
#endif
/* 8.7 NOP */
static __inline__ void __attribute__((always_inline, nodebug)) __nop(void) {
__builtin_arm_nop();
}
/* 9 DATA-PROCESSING INTRINSICS */
/* 9.2 Miscellaneous data-processing intrinsics */
static __inline__ uint32_t __attribute__((always_inline, nodebug))
......
......@@ -40,6 +40,14 @@ void test_sevl(void) {
__sevl();
}
/* 8.7 NOP */
// ARM-LABEL: test_nop
// AArch32: call void @llvm.arm.hint(i32 0)
// AArch64: call void @llvm.aarch64.hint(i32 0)
void test_nop(void) {
__nop();
}
/* 9 DATA-PROCESSING INTRINSICS */
/* 9.2 Miscellaneous data-processing intrinsics */
// ARM-LABEL: test_rev
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment