]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/38599 (There should be a Pmode == DImode version of the MIPS lwxs pattern)
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 16 Aug 2009 17:30:45 +0000 (17:30 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 16 Aug 2009 17:30:45 +0000 (17:30 +0000)
gcc/
PR target/38599
* config/mips/mips.md (*lwxs): Use :P for pointer values.

gcc/testsuite/
PR target/38599
* gcc.target/mips/smartmips-lwxs.c: Remove -mlong32.

From-SVN: r150804

gcc/ChangeLog
gcc/config/mips/mips.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/smartmips-lwxs.c

index a965bb2f2a4968251e9495773d1b79e21825d87a..9b2307211f48eaa2f3a0e9ccef48f798af7f291a 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       PR target/38599
+       * config/mips/mips.md (*lwxs): Use :P for pointer values.
+
 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * config/mips/mips-protos.h (mips_push_asm_switch): New function.
index 77f1fe769087bd4c5c440123629c3ec7c26bd34b..92363b3b59cdb1b21720cb325bf625bd8e27d808 100644 (file)
 (define_insn "*lwxs"
   [(set (match_operand:IMOVE32 0 "register_operand" "=d")
        (mem:IMOVE32
-         (plus:SI (mult:SI (match_operand:SI 1 "register_operand" "d")
-                           (const_int 4))
-                  (match_operand:SI 2 "register_operand" "d"))))]
+         (plus:P (mult:P (match_operand:P 1 "register_operand" "d")
+                         (const_int 4))
+                 (match_operand:P 2 "register_operand" "d"))))]
   "ISA_HAS_LWXS"
   "lwxs\t%0,%1(%2)"
   [(set_attr "type"    "load")
index a6a7642099b9e0bc1ffb7654d5f5c627282c4ee6..acbc928700cedaca9a0e7dbfbe5b16c33ab6a03e 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       PR target/38599
+       * gcc.target/mips/smartmips-lwxs.c: Remove -mlong32.
+
 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
 
        PR debug/37801
index c6bc495c8de4c121848d3b68b73d2fab3623943a..92f46250eb69d1dc54c33e9101129491a59a64ec 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do compile } */
-/* -mlong32 added because of PR target/38599.  */
-/* { dg-options "-O -msmartmips -mlong32" } */
+/* { dg-options "-O -msmartmips" } */
 
 NOMIPS16 int scaled_indexed_word_load (int a[], int b)
 {