This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix typo in i386.md cmpqi_minus_1
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] Fix typo in i386.md cmpqi_minus_1
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Wed, 17 Jan 2001 13:01:29 +0100
- Cc: jh at suse dot cz
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
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