aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/i386-cmov5.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6ce8d8b..1be51ba 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jan 28 12:19:35 CET 2003 Jan Hubicka <jh@suse.cz>
+
+ * gcc.dg/i386-cmov5.c: New test.
+
2003-01-28 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* gcc.c-torture/execute/20010925-1.c: Changed the
diff --git a/gcc/testsuite/gcc.dg/i386-cmov5.c b/gcc/testsuite/gcc.dg/i386-cmov5.c
new file mode 100644
index 0000000..d119abd
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/i386-cmov5.c
@@ -0,0 +1,9 @@
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
+/* { dg-options "-O2 -march=athlon" } */
+/* { dg-final { scan-assembler "sbb" } } */
+
+int
+t(float a, float b)
+{
+ return a<=b?0:-1;
+}