This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Fix typo in i386.md cmpqi_minus_1


Hi!

Installed under the obvious bugfix rule.

2001-01-17  Jakub Jelinek  <jakub@redhat.com>

	* config/i386/i386.md (cmpqi_minus_1): Use {b} for QImode operation.

	* gcc.c-torture/compile/20010117-1.c: New test.

--- gcc/config/i386/i386.md.jj	Thu Jan  4 18:08:11 2001
+++ gcc/config/i386/i386.md	Wed Jan 17 13:43:10 2001
@@ -1143,7 +1143,7 @@
 			   (match_operand:QI 1 "general_operand" "ri,mr"))
 		 (const_int 0)))]
   "ix86_match_ccmode (insn, CCGOCmode)"
-  "cmp{w}\\t{%1, %0|%0, %1}"
+  "cmp{b}\\t{%1, %0|%0, %1}"
   [(set_attr "type" "icmp")
    (set_attr "mode" "QI")])
 
--- gcc/testsuite/gcc.c-torture/compile/20010117-1.c.jj	Wed Jan 17 13:53:22 2001
+++ gcc/testsuite/gcc.c-torture/compile/20010117-1.c	Wed Jan 17 13:36:53 2001
@@ -0,0 +1,7 @@
+unsigned char u, v, w;
+
+void baz (void)
+{
+  if ((u - v - w) & 0x80)
+    v = 1;
+}

	Jakub

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]