]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR target/39897
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Apr 2009 20:11:01 +0000 (20:11 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Apr 2009 20:11:01 +0000 (20:11 +0000)
* config/i386/i386.c (print_operand) ['z']: Revert handling of
HImode operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146784 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index c3a2d00dab76e469d4e674fbe173cb9cfa8e430c..113cf11d30d70c3c08a0c84d19c148286efb9dba 100644 (file)
@@ -1,3 +1,9 @@
+2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/39897
+       * config/i386/i386.c (print_operand) ['z']: Revert handling of
+       HImode operands.
+
 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
 
        PR c/39564
index 65ee05c81b527fff2d81aab45e84dfed778134a3..67a4efc04b75283251f8aebdc2045d2b2cc882d0 100644 (file)
@@ -10996,7 +10996,17 @@ print_operand (FILE *file, rtx x, int code)
              return;
 
            case 2:
-             putc ('w', file);
+             /* ??? This fails for HImode integer
+                operator with memory operand.  */
+             if (MEM_P (x))
+               {
+#ifdef HAVE_AS_IX86_FISTS
+                 putc ('s', file);
+#endif
+                 return;
+               }
+             else
+               putc ('w', file);
              return;
 
            case 4: