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/] [fastcall-sseregparm.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 "-mpreferred-stack-boundary=4 -msse" } */
3
/* { dg-require-effective-target ilp32 } */
4
/* { dg-require-effective-target sse } */
5
 
6
#include "sse-check.h"
7
 
8
extern void abort(void);
9
 
10
void __attribute__((fastcall, sseregparm)) foo(int i, int j, float x)
11
{
12
  static int last_align = -1;
13
  int dummy, align = (int)&dummy & 15;
14
  if (last_align < 0)
15
    last_align = align;
16
  else if (align != last_align)
17
    abort ();
18
}
19
 
20
static void
21
sse_test (void)
22
{
23
        foo(0,0,0.0);
24
        foo(0,0,0.0);
25
}

powered by: WebSVN 2.1.0

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