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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [builtin-assume-aligned-2.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
 
3
double *bar (void);
4
 
5
void
6
foo (double *ptr, int i)
7
{
8
  double *a = __builtin_assume_aligned (ptr, 16, 8, 7); /* { dg-error "too many arguments to function" } */
9
  double *b = __builtin_assume_aligned (bar (), 16);
10
  double *c = __builtin_assume_aligned (bar (), 16, 8);
11
  double *d = __builtin_assume_aligned (ptr, i, ptr);   /* { dg-error "non-integer argument 3 in call to function" } */
12
  double *e = __builtin_assume_aligned (ptr, i, *ptr);  /* { dg-error "non-integer argument 3 in call to function" } */
13
  *a = 0.0;
14
  *b = 0.0;
15
  *c = 0.0;
16
  *d = 0.0;
17
  *e = 0.0;
18
}

powered by: WebSVN 2.1.0

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