2014-01-17 Andrew Pinski <apinski@cavium.com>
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Jan 2014 18:07:18 +0000 (18:07 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Jan 2014 18:07:18 +0000 (18:07 +0000)
    Steve Ellcey  <sellcey@mips.com>

PR target/59462
* config/mips/mips.c (mips_print_operand): Check operand mode instead
of operator mode.

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

gcc/ChangeLog
gcc/config/mips/mips.c

index 76f5c6e..6798353 100644 (file)
@@ -1,3 +1,10 @@
+2014-01-17  Andrew Pinski <apinski@cavium.com>
+           Steve Ellcey  <sellcey@mips.com>
+
+       PR target/59462
+       * config/mips/mips.c (mips_print_operand): Check operand mode instead
+       of operator mode.
+
 2014-01-17  Jeff Law  <law@redhat.com>
 
        PR middle-end/57904
index 617391c..ff28750 100644 (file)
@@ -8184,7 +8184,7 @@ mips_print_operand (FILE *file, rtx op, int letter)
     case 't':
       {
        int truth = (code == NE) == (letter == 'T');
-       fputc ("zfnt"[truth * 2 + (GET_MODE (op) == CCmode)], file);
+       fputc ("zfnt"[truth * 2 + ST_REG_P (REGNO (XEXP (op, 0)))], file);
       }
       break;