[cfe-commits] r120694 - in /cfe/trunk/test: Headers/arm-neon-header.c Sema/arm-neon-types.c

Bob Wilson bob.wilson at apple.com
Thu Dec 2 09:34:16 PST 2010


I don't have a linux machine but I think that svn 120716 should fix it.

On Dec 2, 2010, at 12:48 AM, İsmail Dönmez wrote:

> Hi Bob;
> 
> These tests are failing for me on Linux x86-64, looks like it fails to find arm_neon.h.
> 
> Regards,
> ismail
> 
> On Thu, Dec 2, 2010 at 9:13 AM, Bob Wilson <bob.wilson at apple.com> wrote:
> Author: bwilson
> Date: Thu Dec  2 01:13:31 2010
> New Revision: 120694
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=120694&view=rev
> Log:
> Add a test for calling a Neon intrinsic macro with the wrong vector type.
> This does not work so well with the -fno-lax-vector-conversions option for
> testing the arm_neon.h header but that is a really useful test, so I split
> this out to a separate Sema test to check for the warning.
> 
> Added:
>    cfe/trunk/test/Sema/arm-neon-types.c
>      - copied, changed from r120692, cfe/trunk/test/Headers/arm-neon-header.c
> Modified:
>    cfe/trunk/test/Headers/arm-neon-header.c
> 
> Modified: cfe/trunk/test/Headers/arm-neon-header.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/arm-neon-header.c?rev=120694&r1=120693&r2=120694&view=diff
> ==============================================================================
> --- cfe/trunk/test/Headers/arm-neon-header.c (original)
> +++ cfe/trunk/test/Headers/arm-neon-header.c Thu Dec  2 01:13:31 2010
> @@ -3,8 +3,3 @@
>  // 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);
> -}
> 
> Copied: cfe/trunk/test/Sema/arm-neon-types.c (from r120692, cfe/trunk/test/Headers/arm-neon-header.c)
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/arm-neon-types.c?p2=cfe/trunk/test/Sema/arm-neon-types.c&p1=cfe/trunk/test/Headers/arm-neon-header.c&r1=120692&r2=120694&rev=120694&view=diff
> ==============================================================================
> --- cfe/trunk/test/Headers/arm-neon-header.c (original)
> +++ cfe/trunk/test/Sema/arm-neon-types.c Thu Dec  2 01:13:31 2010
> @@ -1,6 +1,4 @@
>  // RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
> -// RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -fno-lax-vector-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>
> 
> @@ -8,3 +6,8 @@
>  int32x2_t test(int32x2_t x) {
>   return vshr_n_s32(x, 31);
>  }
> +
> +// ...but should warn when the types really do not match.
> +float32x2_t test2(uint32x2_t x) {
> +  return vcvt_n_f32_s32(x, 0); // expected-warning {{incompatible vector types}}
> +}
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101202/6bbad6ae/attachment.html>


More information about the cfe-commits mailing list