]> 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 22:03:51 +0000 (22:03 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Mon, 21 Apr 2014 22:03:51 +0000 (22:03 +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: r209547

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 8c762b2f9ef63d9a7de618939cc9800cdf5ea76d..de4c7891344a900ecbfb5e01bd56e0d64a27cb0e 100644 (file)
@@ -1,3 +1,16 @@
+2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       Back port from the trunk, subversion id 209546.
+
+       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-18  Richard Henderson  <rth@redhat.com>
 
        * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
index 2f3d8fd82f13a782461c6889ceef8440d8b2cce5..18cd847de0b3b7dff69408c8f70e4a4798010cdd 100644 (file)
@@ -2264,6 +2264,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 359f088035b5ce7ca2a6b330f70fcf7a78a9f779..83b6f6c1a5672f449ca0fb7d276f35fb40cfa1d5 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 8eb1efc060134073ba8ba32f2b7ec40b640d205a..22f1669e92aaf2836e13a1f4ee44bb9f8a9ea895 100644 (file)
@@ -1,3 +1,13 @@
+2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       Back port from the trunk, subversion id 209546.
+
+       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-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        * gcc.dg/vmx/merge-vsx.c: Add V4SI and V4SF tests.
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;
+}