]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/59462 (c-c++-common/cilk-plus/AN/builtin_func_double2.c fails on MIPS)
authorAndrew Pinski <apinski@cavium.com>
Fri, 17 Jan 2014 18:07:18 +0000 (18:07 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Fri, 17 Jan 2014 18:07:18 +0000 (18:07 +0000)
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.

Co-Authored-By: Steve Ellcey <sellcey@mips.com>
From-SVN: r206724

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

index 76f5c6e0c2702965aefcb9992b6aec223649cca3..6798353e13b92ca04ee82e35fba1bebdfae15594 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 617391cdcb1181dd51ce44ebda4d8269454d6538..ff28750d5e4f2cb9d084f5a1575991b710ace753 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;