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