summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/387-12.c
blob: 62c1d483c278a057f5afb5b1290d705ffe9eaa0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR target/26915 */
/* { dg-do compile } */
/* { dg-options "-O -mfpmath=387 -mfancy-math-387" } */

double testm0(void)
{
	return -0.0;
}

double testm1(void)
{
	return -1.0;
}

/* { dg-final { scan-assembler "fldz" } } */
/* { dg-final { scan-assembler "fld1" } } */