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/] [pr24306.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-msse" } */
3
/* { dg-require-effective-target sse } */
4
 
5
#include "sse-check.h"
6
 
7
extern void abort(void);
8
typedef int __attribute__ ((vector_size (16))) foo_t;
9
 
10
struct s
11
{
12
  foo_t f[0];
13
} s1;
14
 
15
void
16
check (int x, ...) __attribute__((noinline));
17
void
18
check (int x, ...)
19
{
20
  int y;
21
  __builtin_va_list ap;
22
 
23
  __builtin_va_start (ap, x);
24
  __builtin_va_arg (ap, struct s);
25
  y = __builtin_va_arg (ap, int);
26
 
27
  if (y != 7)
28
    abort ();
29
}
30
 
31
static void
32
sse_test (void)
33
{
34
  check (3, s1, 7);
35
}

powered by: WebSVN 2.1.0

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