diff options
author | Renato Golin <renato.golin@linaro.org> | 2014-07-03 10:14:52 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2014-07-03 10:14:52 +0000 |
commit | 47843efcf6d264a472744e21b7e85c40757f4a8f (patch) | |
tree | d4fdfaad7d565efd8e8b6c2282a2fd4f8f054368 /clang/test/CodeGen/arm_acle.c | |
parent | 57765d53477910de18f8c5e7d2ce585a0f782935 (diff) | |
download | bcm5719-llvm-47843efcf6d264a472744e21b7e85c40757f4a8f.tar.gz bcm5719-llvm-47843efcf6d264a472744e21b7e85c40757f4a8f.zip |
Add the __qdbl intrinsic to the arm_acle.h header
Patch by: Moritz Roth
llvm-svn: 212264
Diffstat (limited to 'clang/test/CodeGen/arm_acle.c')
-rw-r--r-- | clang/test/CodeGen/arm_acle.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm_acle.c b/clang/test/CodeGen/arm_acle.c index f766a8b9753..88d58a40b1f 100644 --- a/clang/test/CodeGen/arm_acle.c +++ b/clang/test/CodeGen/arm_acle.c @@ -66,6 +66,15 @@ int32_t test_qadd(int32_t a, int32_t b) { int32_t test_qsub(int32_t a, int32_t b) { return __qsub(a, b); } + +extern int32_t f(); +// AArch32-LABEL: test_qdbl +// AArch32: [[VAR:%[a-z0-9]+]] = {{.*}} call {{.*}} @f +// AArch32-NOT: call {{.*}} @f +// AArch32: call i32 @llvm.arm.qadd(i32 [[VAR]], i32 [[VAR]]) +int32_t test_qdbl() { + return __qdbl(f()); +} #endif /* CRC32 intrinsics */ |