Commit 30fff3d8 by Richard Sandiford Committed by Richard Sandiford

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
parent cf5fb4b0
2009-08-16 Richard Sandiford <rdsandiford@googlemail.com> 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. * config/mips/mips-protos.h (mips_push_asm_switch): New function.
(mips_pop_asm_switch): Likewise. (mips_pop_asm_switch): Likewise.
* config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
......
...@@ -4217,9 +4217,9 @@ ...@@ -4217,9 +4217,9 @@
(define_insn "*lwxs" (define_insn "*lwxs"
[(set (match_operand:IMOVE32 0 "register_operand" "=d") [(set (match_operand:IMOVE32 0 "register_operand" "=d")
(mem:IMOVE32 (mem:IMOVE32
(plus:SI (mult:SI (match_operand:SI 1 "register_operand" "d") (plus:P (mult:P (match_operand:P 1 "register_operand" "d")
(const_int 4)) (const_int 4))
(match_operand:SI 2 "register_operand" "d"))))] (match_operand:P 2 "register_operand" "d"))))]
"ISA_HAS_LWXS" "ISA_HAS_LWXS"
"lwxs\t%0,%1(%2)" "lwxs\t%0,%1(%2)"
[(set_attr "type" "load") [(set_attr "type" "load")
......
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> 2009-08-16 Dodji Seketeli <dodji@redhat.com>
PR debug/37801 PR debug/37801
......
/* { dg-do compile } */ /* { dg-do compile } */
/* -mlong32 added because of PR target/38599. */ /* { dg-options "-O -msmartmips" } */
/* { dg-options "-O -msmartmips -mlong32" } */
NOMIPS16 int scaled_indexed_word_load (int a[], int b) NOMIPS16 int scaled_indexed_word_load (int a[], int b)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment