diff options
-rw-r--r-- | test/Headers/arm-neon-header.c | 9 |
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); +} |