diff options
author | Yi Kong <Yi.Kong@arm.com> | 2014-07-12 22:48:13 +0000 |
---|---|---|
committer | Yi Kong <Yi.Kong@arm.com> | 2014-07-12 22:48:13 +0000 |
commit | 4e00ce7d0c684376be15e88e24fb2262a8f23750 (patch) | |
tree | d6e21758f63ec98a7ae999293d9dd3dbd91c116d /clang/test/CodeGen/arm_acle.c | |
parent | 93b775f479f68d3aaf6d065df3e96beeb3ecc7f1 (diff) | |
download | bcm5719-llvm-4e00ce7d0c684376be15e88e24fb2262a8f23750.tar.gz bcm5719-llvm-4e00ce7d0c684376be15e88e24fb2262a8f23750.zip |
Improve comments of ARM ACLE header file and tests
Include section number in ARM ACLE specification for easier navigation.
llvm-svn: 212887
Diffstat (limited to 'clang/test/CodeGen/arm_acle.c')
-rw-r--r-- | clang/test/CodeGen/arm_acle.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/test/CodeGen/arm_acle.c b/clang/test/CodeGen/arm_acle.c index 88d58a40b1f..a2f24d3fbf4 100644 --- a/clang/test/CodeGen/arm_acle.c +++ b/clang/test/CodeGen/arm_acle.c @@ -3,7 +3,8 @@ #include <arm_acle.h> -/* Miscellaneous data-processing intrinsics */ +/* 9 DATA-PROCESSING INTRINSICS */ +/* 9.2 Miscellaneous data-processing intrinsics */ // ARM-LABEL: test_rev // ARM: call i32 @llvm.bswap.i32(i32 %t) uint32_t test_rev(uint32_t t) { @@ -42,8 +43,10 @@ uint64_t test_clzll(uint64_t t) { return __clzll(t); } -/* Saturating intrinsics */ +/* 9.4 Saturating intrinsics */ #ifdef __ARM_32BIT_STATE + +/* 9.4.1 Width-specified saturation intrinsics */ // AArch32-LABEL: test_ssat // AArch32: call i32 @llvm.arm.ssat(i32 %t, i32 1) int32_t test_ssat(int32_t t) { @@ -55,6 +58,8 @@ int32_t test_ssat(int32_t t) { int32_t test_usat(int32_t t) { return __usat(t, 2); } + +/* 9.4.2 Saturating addition and subtraction intrinsics */ // AArch32-LABEL: test_qadd // AArch32: call i32 @llvm.arm.qadd(i32 %a, i32 %b) int32_t test_qadd(int32_t a, int32_t b) { @@ -77,7 +82,7 @@ int32_t test_qdbl() { } #endif -/* CRC32 intrinsics */ +/* 9.7 CRC32 intrinsics */ // ARM-LABEL: test_crc32b // AArch32: call i32 @llvm.arm.crc32b // AArch64: call i32 @llvm.aarch64.crc32b |