i386.md (cmpqi_minus_1): Use {b} for QImode operation.
authorJakub Jelinek <jakub@redhat.com>
Wed, 17 Jan 2001 11:55:10 +0000 (12:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 17 Jan 2001 11:55:10 +0000 (12:55 +0100)
* config/i386/i386.md (cmpqi_minus_1): Use {b} for QImode operation.

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

From-SVN: r39092

gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20010117-1.c [new file with mode: 0644]

index 9188081be19fae58068e493e425d004b4a13942d..2ab5dce2ccdf797c698fb84961e5802193f2bffb 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-17  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/i386/i386.md (cmpqi_minus_1): Use {b} for QImode operation.
+
 Tue Jan 16 22:23:04 2001  Alan Modra (alan@linuxcare.com.au)
 
        * config/pa/pa.h (PIC_OFFSET_TABLE_REGNUM_SAVED): Remove.
index 1e50a6b9821ea40ef7d36718af04f5f01061e5f9..99111acee4772727c375d74407d15b4151442083 100644 (file)
                           (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")])
 
index 6cee7bbf42daace0416a5c6ca9b7932148f9c10c..7ff22a20a8a2adf7d3512fadbdd62bd5383c4610 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-17  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.c-torture/compile/20010117-1.c: New test.
+
 2001-01-15  Toon Moene  <toon@moene.indiv.nluug.nl>
 
        * g77.f-torture/execute/20010116.[fx]: New test,
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010117-1.c b/gcc/testsuite/gcc.c-torture/compile/20010117-1.c
new file mode 100644 (file)
index 0000000..d0772b3
--- /dev/null
@@ -0,0 +1,7 @@
+unsigned char u, v, w;
+
+void baz (void)
+{
+  if ((u - v - w) & 0x80)
+    v = 1;
+}