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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [stackalign/] [fastcall-1.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 run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
2
 
3
#include "check.h"
4
 
5
#ifndef ALIGNMENT
6
#define ALIGNMENT       64
7
#endif
8
 
9
typedef int aligned __attribute__((aligned(ALIGNMENT)));
10
 
11
int global;
12
 
13
__attribute__ ((fastcall))
14
void
15
foo (int j, int k, int m, int n, int o)
16
{
17
  aligned i;
18
 
19
  if (check_int (&i,  __alignof__(i)) != i)
20
    abort ();
21
 
22
  if (i != 20 || j != 1 || k != 2 || m != 3 || n != 4 || o != 5)
23
    abort ();
24
}
25
 
26
int
27
main()
28
{
29
  foo (1, 2, 3, 4, 5);
30
  return 0;
31
}

powered by: WebSVN 2.1.0

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