aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/i386-387-1.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 776f1fc..f5a4d12 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2002-04-13 David Billinghurst <David.Billinghurst@riotinto.com>
+
+ PR c/6277
+ * gcc.dg/i386-387-1.c: Allow optional leading underscore
+ in scan-assembler function name
+
2002-04-13 Hans-Peter Nilsson <hp@bitrange.com>
* g77.f-torture/execute/980628-4.x,
diff --git a/gcc/testsuite/gcc.dg/i386-387-1.c b/gcc/testsuite/gcc.dg/i386-387-1.c
index 2c9334b..8fa4cba 100644
--- a/gcc/testsuite/gcc.dg/i386-387-1.c
+++ b/gcc/testsuite/gcc.dg/i386-387-1.c
@@ -1,9 +1,9 @@
/* Verify that -mno-fancy-math-387 works. */
/* { dg-do compile { target "i?86-*-*" } } */
/* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387" } */
-/* { dg-final { scan-assembler "call\tsin" } } */
-/* { dg-final { scan-assembler "call\tcos" } } */
-/* { dg-final { scan-assembler "call\tsqrt" } } */
+/* { dg-final { scan-assembler "call\t_?sin" } } */
+/* { dg-final { scan-assembler "call\t_?cos" } } */
+/* { dg-final { scan-assembler "call\t_?sqrt" } } */
double f1(double x) { return __builtin_sin(x); }
double f2(double x) { return __builtin_cos(x); }