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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr39315-check.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* { dg-compile } */
2
typedef float __m128 __attribute__ ((__vector_size__ (16)));
3
__extension__ typedef __PTRDIFF_TYPE__ ptrdiff_t;
4
 
5
extern void foo (__m128 *);
6
extern void abort (void);
7
 
8
__m128 y = { 0.0, 1.0, 2.0, 3.0 };
9
 
10
void
11
bar (__m128 *x, int align)
12
{
13
  if ((((ptrdiff_t) x) & (align - 1)) != 0)
14
    abort ();
15
  if (__builtin_memcmp (x, &y, sizeof (y)) != 0)
16
    abort ();
17
}
18
 
19
int
20
main ()
21
{
22
  foo (&y);
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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