summaryrefslogtreecommitdiffstats
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
commit5ceace4d147babba9ad867c03396611b39b3584d (patch)
tree0d7dbac0215699e4bdec03d0829ce48e6f8181ce
parent01856f38c2fadee131d48a6552ca5b1f0f44ed1d (diff)
downloadbcm5719-llvm-5ceace4d147babba9ad867c03396611b39b3584d.tar.gz
bcm5719-llvm-5ceace4d147babba9ad867c03396611b39b3584d.zip
Add a testcase for Radar 8228022.
Make sure the -Wvector-conversions does not cause unnecessary warnings when using Neon intrinsics with the correct types. llvm-svn: 120634
-rw-r--r--clang/test/Headers/arm-neon-header.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Headers/arm-neon-header.c b/clang/test/Headers/arm-neon-header.c
new file mode 100644
index 00000000000..3c2a7359082
--- /dev/null
+++ b/clang/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);
+}
OpenPOWER on IntegriCloud