summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/sseregparm-8.c
blob: 3a9d345a96b4a601a75ccd53e1fd78784ea8dea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-mno-sse" } */
/* { dg-require-effective-target ilp32 } */

float essef(float) __attribute__((sseregparm));
double essed(double) __attribute__((sseregparm));
float __attribute__((sseregparm)) ssef(float f);
double __attribute__((sseregparm)) ssed(double d);
extern double d;
extern float f;
void test(void)
{
  f = essef(f); /* { dg-error "SSE" } */
  d = essed(d); /* { dg-error "SSE" } */
  f = ssef(f); /* { dg-error "SSE" } */
  d = ssed(d); /* { dg-error "SSE" } */
}