diff options
author | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-30 12:40:53 +0000 |
---|---|---|
committer | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-30 12:40:53 +0000 |
commit | b8f4daeb4e24eb42df7dbb799ef8663e4dc6ecea (patch) | |
tree | 2de5cdf12315f8001ec9bd3ffc557dc4b1f1623b /gcc/testsuite/gcc.dg/991230-1.c | |
parent | 00bb00c74c0d60be1aced1d374eb4465043237e2 (diff) | |
download | gcc-b8f4daeb4e24eb42df7dbb799ef8663e4dc6ecea.tar.gz |
New testcase
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31137 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/991230-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/991230-1.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/991230-1.c b/gcc/testsuite/gcc.dg/991230-1.c new file mode 100644 index 00000000000..42c6a8e6faa --- /dev/null +++ b/gcc/testsuite/gcc.dg/991230-1.c @@ -0,0 +1,20 @@ +/* { dg-do run { target i?86-*-* } } */ +/* { dg-options "-O -ffast-math -mcpu=i486" } */ + +/* Test that floating point greater-than tests are compiled correctly with + -ffast-math. */ +static int gt (double a, double b) +{ + if (a > b) + return 4; + return 0; +} + +static double zero = 0.0; + +int main () +{ + if (gt (zero, zero)) + abort (); + return 0; +} |