diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2009-08-16 17:30:45 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2009-08-16 17:30:45 +0000 |
commit | 30fff3d8cb8986a6d31cac16492c58b31019fd1a (patch) | |
tree | 17db22cf1b86e0d3a856963fa55640732878a1e7 | |
parent | cf5fb4b0d5ef246c8aa90fea9439c696c8462b8f (diff) | |
download | gcc-30fff3d8cb8986a6d31cac16492c58b31019fd1a.zip gcc-30fff3d8cb8986a6d31cac16492c58b31019fd1a.tar.gz gcc-30fff3d8cb8986a6d31cac16492c58b31019fd1a.tar.bz2 |
re PR target/38599 (There should be a Pmode == DImode version of the MIPS lwxs pattern)
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/mips.md | 6 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/smartmips-lwxs.c | 3 |
4 files changed, 14 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a965bb2..9b23072 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. (mips_pop_asm_switch): Likewise. * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 77f1fe7..92363b3 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -4217,9 +4217,9 @@ (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") diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a6a7642..acbc928 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.target/mips/smartmips-lwxs.c b/gcc/testsuite/gcc.target/mips/smartmips-lwxs.c index c6bc495..92f4625 100644 --- a/gcc/testsuite/gcc.target/mips/smartmips-lwxs.c +++ b/gcc/testsuite/gcc.target/mips/smartmips-lwxs.c @@ -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) { |