From f60a8a2d98f326c78993eff12ae7867b7125cb72 Mon Sep 17 00:00:00 2001 From: geoffk Date: Tue, 12 Apr 2005 02:10:57 +0000 Subject: [PATCH] * gcc.dg/i386-darwin-fpmath.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98003 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/i386-darwin-fpmath.c | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/i386-darwin-fpmath.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e7d40f87f03..b37dd51f58b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-04-11 Geoffrey Keating + + * gcc.dg/i386-darwin-fpmath.c: New. + 2004-04-11 Devang Patel * lib/target-supports.exp (check_effective_target_vect_condition): New. diff --git a/gcc/testsuite/gcc.dg/i386-darwin-fpmath.c b/gcc/testsuite/gcc.dg/i386-darwin-fpmath.c new file mode 100644 index 00000000000..7db69467089 --- /dev/null +++ b/gcc/testsuite/gcc.dg/i386-darwin-fpmath.c @@ -0,0 +1,9 @@ +/* { dg-do compile { target i?86-*-darwin* } } */ +/* { dg-final { scan-assembler "addsd" } } */ +/* Do not add -msse or -msse2 or -mfpmath=sse to the options. GCC is + supposed to use SSE math on Darwin by default, and libm won't work + right if it doesn't. */ +double foo(double x, double y) +{ + return x + y; +} -- 2.11.0