i386.md (truncxfsf2_2): Fix predicate.
authorJakub Jelinek <jakub@redhat.com>
Tue, 28 Nov 2000 09:04:27 +0000 (10:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 28 Nov 2000 09:04:27 +0000 (10:04 +0100)
* config/i386/i386.md (truncxfsf2_2): Fix predicate.

* gcc.dg/20001127-1.c: New test.

From-SVN: r37812

gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20001127-1.c [new file with mode: 0644]

index 4e1a387..90bb235 100644 (file)
@@ -1,3 +1,7 @@
+2000-11-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/i386/i386.md (truncxfsf2_2): Fix predicate.
+
 2000-11-27  Jim Wilson  <wilson@redhat.com>
 
        * reload1.c (reload): Use HOST_WIDE_INT for old_frame_size.
index 2b5d3b8..ace3ce9 100644 (file)
    (set_attr "mode" "SF")])
 
 (define_insn "*truncxfsf2_2"
-  [(set (match_operand:SF 0 "nonimmediate_operand" "=m")
+  [(set (match_operand:SF 0 "memory_operand" "=m")
        (float_truncate:SF
         (match_operand:XF 1 "register_operand" "f")))]
   "TARGET_80387"
index 0fce517..1a46dff 100644 (file)
@@ -1,3 +1,7 @@
+2000-11-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.dg/20001127-1.c: New test.
+
 2000-11-27  Nathan Sidwell  <nathan@codesourcery.com>
 
        * g++.old-deja/g++.other/friend46.C: New test.
diff --git a/gcc/testsuite/gcc.dg/20001127-1.c b/gcc/testsuite/gcc.dg/20001127-1.c
new file mode 100644 (file)
index 0000000..6ac76e2
--- /dev/null
@@ -0,0 +1,16 @@
+/* { dg-do compile { target i?86-*-* } } */
+/* { dg-options "-O2" } */
+
+extern inline float bar (float x)
+{
+  register long double value;
+  asm volatile ("frndint" : "=t" (value) : "0" (x));
+  return value;
+}
+
+float a;
+
+float foo (float b)
+{
+  return a + bar (b);
+}