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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [simd-1b.c] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-Wall" } */
/* { dg-options "-Wall" } */
 
 
/* Origin: Aldy Hernandez <aldyh@redhat.com>.  */
/* Origin: Aldy Hernandez <aldyh@redhat.com>.  */
/* Purpose: Program to test generic SIMD support.  */
/* Purpose: Program to test generic SIMD support.  */
 
 
typedef int __attribute__((vector_size (16))) v4si;
typedef int __attribute__((vector_size (16))) v4si;
typedef int __attribute__((vector_size (8))) v2si;
typedef int __attribute__((vector_size (8))) v2si;
 
 
v4si a, b;
v4si a, b;
v2si c, d;
v2si c, d;
 
 
void
void
hanneke ()
hanneke ()
{
{
  /* Operators on compatible SIMD types.  */
  /* Operators on compatible SIMD types.  */
  a %= b; /* { dg-error "invalid operands to binary %" } */
  a %= b; /* { dg-error "invalid operands to binary %" } */
  c &= d;
  c &= d;
  a |= b;
  a |= b;
  c ^= d;
  c ^= d;
  a >>= b; /* { dg-error "invalid operands to binary >>" } */
  a >>= b; /* { dg-error "invalid operands to binary >>" } */
  c <<= d; /* { dg-error "invalid operands to binary <<" } */
  c <<= d; /* { dg-error "invalid operands to binary <<" } */
  a = +b;
  a = +b;
  c = ~d;
  c = ~d;
 
 
  /* Operators on incompatible SIMD types.  */
  /* Operators on incompatible SIMD types.  */
  a = b % c; /* { dg-error "invalid operands to binary" } */
  a = b % c; /* { dg-error "invalid operands to binary" } */
  a = b % c; /* { dg-error "invalid operands to binary" } */
  a = b % c; /* { dg-error "invalid operands to binary" } */
  d = c & b; /* { dg-error "invalid operands to binary" } */
  d = c & b; /* { dg-error "invalid operands to binary" } */
  a = b | c; /* { dg-error "invalid operands to binary" } */
  a = b | c; /* { dg-error "invalid operands to binary" } */
  d = c ^ b; /* { dg-error "invalid operands to binary" } */
  d = c ^ b; /* { dg-error "invalid operands to binary" } */
  a = b >> c; /*  { dg-error "invalid operands to binary" } */
  a = b >> c; /*  { dg-error "invalid operands to binary" } */
  a = b >> c; /* { dg-error "invalid operands to binary" } */
  a = b >> c; /* { dg-error "invalid operands to binary" } */
  d = c << b; /* { dg-error "invalid operands to binary" } */
  d = c << b; /* { dg-error "invalid operands to binary" } */
  d = c << b; /* { dg-error "invalid operands to binary" } */
  d = c << b; /* { dg-error "invalid operands to binary" } */
}
}
 
 

powered by: WebSVN 2.1.0

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