]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/60735 (GCC targeting E500 with SPE has errors with the _Decimal64 type)
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Mon, 21 Apr 2014 20:51:37 +0000 (20:51 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Mon, 21 Apr 2014 20:51:37 +0000 (20:51 +0000)
[gcc]
2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/60735
* config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
If mode is DDmode and TARGET_E500_DOUBLE allow move.

* config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
more debug information for E500 if -mdebug=reg.

[gcc/testsuite]
2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/60735
* gcc.target/powerpc/pr60735.c: New test.  Insure _Decimal64 does
not cause errors if -mspe.

From-SVN: r209546

gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr60735.c [new file with mode: 0644]

index e2024192b18e1e68ebb9d2d614696b6c8f55c4ad..8caee0472b5f9d81a361c3c0744565bf952a6c69 100644 (file)
@@ -1,3 +1,12 @@
+2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       PR target/60735
+       * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
+       If mode is DDmode and TARGET_E500_DOUBLE allow move.
+
+       * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
+       more debug information for E500 if -mdebug=reg.
+
 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/60909
index f431e7356996e9650e11e4db3606275758ae1d79..d15b3ca9b9c87356da0b0dbf40e017619606cfb6 100644 (file)
@@ -2283,6 +2283,24 @@ rs6000_debug_reg_global (void)
   if (rs6000_float_gprs)
     fprintf (stderr, DEBUG_FMT_S, "float_gprs", "true");
 
+  fprintf (stderr, DEBUG_FMT_S, "fprs",
+          (TARGET_FPRS ? "true" : "false"));
+
+  fprintf (stderr, DEBUG_FMT_S, "single_float",
+          (TARGET_SINGLE_FLOAT ? "true" : "false"));
+
+  fprintf (stderr, DEBUG_FMT_S, "double_float",
+          (TARGET_DOUBLE_FLOAT ? "true" : "false"));
+
+  fprintf (stderr, DEBUG_FMT_S, "soft_float",
+          (TARGET_SOFT_FLOAT ? "true" : "false"));
+
+  fprintf (stderr, DEBUG_FMT_S, "e500_single",
+          (TARGET_E500_SINGLE ? "true" : "false"));
+
+  fprintf (stderr, DEBUG_FMT_S, "e500_double",
+          (TARGET_E500_DOUBLE ? "true" : "false"));
+
   if (TARGET_LINK_STACK)
     fprintf (stderr, DEBUG_FMT_S, "link_stack", "true");
 
index 4daaeb01639036ba6e79b7c1daf9e2371262b5d6..eca1dde06b60a1acb0047550bfd8ff3375d811af 100644 (file)
        (match_operand:FMOVE64 1 "input_operand" "r,Y,r,G,H,F"))]
   "! TARGET_POWERPC64 
    && ((TARGET_FPRS && TARGET_SINGLE_FLOAT) 
-       || TARGET_SOFT_FLOAT || TARGET_E500_SINGLE)
+       || TARGET_SOFT_FLOAT || TARGET_E500_SINGLE
+       || (<MODE>mode == DDmode && TARGET_E500_DOUBLE))
    && (gpc_reg_operand (operands[0], <MODE>mode)
        || gpc_reg_operand (operands[1], <MODE>mode))"
   "#"
index 39ea7e1611f4ba12a710bbeea8285065075824b2..58db6ef30ff206eaa40baca790cf9760a4af771c 100644 (file)
@@ -1,3 +1,9 @@
+2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       PR target/60735
+       * gcc.target/powerpc/pr60735.c: New test.  Insure _Decimal64 does
+       not cause errors if -mspe.
+
 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/60909
diff --git a/gcc/testsuite/gcc.target/powerpc/pr60735.c b/gcc/testsuite/gcc.target/powerpc/pr60735.c
new file mode 100644 (file)
index 0000000..9bac30b
--- /dev/null
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-mcpu=8548 -mspe -mabi=spe -O2" } */
+/* { dg-skip-if "not an SPE target" { ! powerpc_spe_nocache } { "*" } { "" } } */
+
+/* In PR60735, the type _Decimal64 generated an insn not found message.  */
+
+void
+pr60735 (_Decimal64 *p, _Decimal64 *q)
+{
+  *p = *q;
+}