OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [sse-vect-types.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2
/* { dg-options "-O0 -msse2" } */
3
 
4
/* Test the intrinsics without optimization.  All of them are
5
   defined as inline functions in mmintrin.h that reference the proper
6
   builtin functions.  Defining away "static" and "__inline" results in
7
   all of them being compiled as proper functions.  */
8
 
9
#define static
10
#define __inline
11
 
12
#include <xmmintrin.h>
13
 
14
__m128d foo1(__m128d z, __m128d  a, int N) {
15
  int i;
16
  for (i=0; i<N; i++) {
17
    a = _mm_add_ps(z, a); /* { dg-error "incompatible type" } */
18
  }
19
  return a;
20
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.