[cfe-commits] r120634 - /cfe/trunk/test/Headers/arm-neon-header.c

Bob Wilson bob.wilson at apple.com
Wed Dec 1 16:25:18 PST 2010


Author: bwilson
Date: Wed Dec  1 18:25:18 2010
New Revision: 120634

URL: http://llvm.org/viewvc/llvm-project?rev=120634&view=rev
Log:
Add a testcase for Radar 8228022.
Make sure the -Wvector-conversions does not cause unnecessary warnings when
using Neon intrinsics with the correct types.

Added:
    cfe/trunk/test/Headers/arm-neon-header.c

Added: cfe/trunk/test/Headers/arm-neon-header.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/arm-neon-header.c?rev=120634&view=auto
==============================================================================
--- cfe/trunk/test/Headers/arm-neon-header.c (added)
+++ cfe/trunk/test/Headers/arm-neon-header.c Wed Dec  1 18:25:18 2010
@@ -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);
+}





More information about the cfe-commits mailing list