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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [i386/] [20060512-3.c] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run { target i?86-*-* } } */
2
/* { dg-require-effective-target ilp32 } */
3
/* { dg-options "-std=gnu99 -msse2 -mstackrealign" } */
4
#include <emmintrin.h>
5
__m128i __attribute__ ((__noinline__))
6
vector_using_function ()
7
{
8
  volatile __m128i vx;  /* We want to force a vector-aligned store into the stack.  */
9
  vx = _mm_xor_si128 (vx, vx);
10
  return vx;
11
}
12
int __attribute__ ((__noinline__))
13
self_aligning_function (int x, int y)
14
{
15
  __m128i ignored = vector_using_function ();
16
  return (x + y);
17
}
18
int g_1 = 20;
19
int g_2 = 22;
20
int
21
main ()
22
{
23
  int result;
24
  asm ("pushl %esi");           /* Disalign runtime stack.  */
25
  result = self_aligning_function (g_1, g_2);
26
  asm ("popl %esi");
27
  if (result != 42)
28
    abort ();
29
}

powered by: WebSVN 2.1.0

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