[llvm-commits] [test-suite] r86296 - /test-suite/trunk/SingleSource/Regression/C/packssdw-1.c

Nick Lewycky nicholas at mxc.ca
Sun Nov 15 09:09:25 PST 2009


Eric Christopher wrote:
> Author: echristo
> Date: Fri Nov  6 16:55:01 2009
> New Revision: 86296
>
> URL: http://llvm.org/viewvc/llvm-project?rev=86296&view=rev
> Log:
> Add a very primitive test for packssdw builtins.

This breaks my nightly build:

$ gcc packssdw-1.c
In file included from packssdw-1.c:1:
/usr/lib/gcc/i486-linux-gnu/4.3.4/include/emmintrin.h:34:3: error: 
#error "SSE2 instruction set not enabled"
packssdw-1.c:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘foo’
packssdw-1.c: In function ‘main’:
packssdw-1.c:11: error: ‘__v4si’ undeclared (first use in this function)
packssdw-1.c:11: error: (Each undeclared identifier is reported only once
packssdw-1.c:11: error: for each function it appears in.)
packssdw-1.c:11: error: expected ‘;’ before ‘a’
packssdw-1.c:12: error: expected ‘;’ before ‘b’
packssdw-1.c:14: error: ‘__v16qi’ undeclared (first use in this function)
packssdw-1.c:14: error: expected ‘;’ before ‘c’
packssdw-1.c:16: error: expected ‘)’ before ‘c’
$ gcc packssdw-1.c -msse2
packssdw-1.c: In function ‘foo’:
packssdw-1.c:6: note: use -flax-vector-conversions to permit conversions 
between vectors with differing element types or numbers of subparts
packssdw-1.c:6: error: incompatible types in return
$

Nick

> Added:
>      test-suite/trunk/SingleSource/Regression/C/packssdw-1.c
>
> Added: test-suite/trunk/SingleSource/Regression/C/packssdw-1.c
> URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Regression/C/packssdw-1.c?rev=86296&view=auto
>
> ==============================================================================
> --- test-suite/trunk/SingleSource/Regression/C/packssdw-1.c (added)
> +++ test-suite/trunk/SingleSource/Regression/C/packssdw-1.c Fri Nov  6 16:55:01 2009
> @@ -0,0 +1,22 @@
> +#include<emmintrin.h>
> +#include<stdio.h>
> +
> +__v16qi foo (__v4si a, __v4si b)
> +{
> +  return __builtin_ia32_packssdw128(a, b);
> +}
> +
> +int main (void)
> +{
> +  __v4si a = { 0, 0, 0, 0};
> +  __v4si b = { 0, 0, 0, 0};
> +
> +  __v16qi c = foo(a, b);
> +
> +  if (__builtin_ia32_vec_ext_v4si((__v4si)c, 0) == 0)
> +    printf("packssdw-1 passed\n");
> +  else
> +    printf("packssdw-1 failed\n");
> +
> +  return 0;
> +}
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list