aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-12-02 00:25:18 +0000
committerBob Wilson <bob.wilson@apple.com>2010-12-02 00:25:18 +0000
commit96607b29c4b90996e97f0216651f544b3ded4175 (patch)
treed23df063a10c00004f648bf2ed7c4801b516392e
parentde3deea82767a2c418fa1b5828a3744326ffd9c3 (diff)
Add a testcase for Radar 8228022.
Make sure the -Wvector-conversions does not cause unnecessary warnings when using Neon intrinsics with the correct types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120634 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Headers/arm-neon-header.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Headers/arm-neon-header.c b/test/Headers/arm-neon-header.c
new file mode 100644
index 0000000000..3c2a735908
--- /dev/null
+++ b/test/Headers/arm-neon-header.c
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
+// RUN: %clang_cc1 -x c++ -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
+
+#include <arm_neon.h>
+
+// Radar 8228022: Should not report incompatible vector types.
+int32x2_t test(int32x2_t x) {
+ return vshr_n_s32(x, 31);
+}