Commit f1fa08e3 by Richard Sandiford Committed by Richard Sandiford

re PR rtl-optimization/61926 (const-anchor optimisation is sensitive to ordering)

gcc/testsuite/
	PR rtl-optimization/61926
	* gcc.target/mips/const-anchor-1.c, gcc.target/mips/const-anchor-2.c:
	Reverse argument order.
	* gcc.target/mips/const-anchor-3.c, gcc.target/mips/const-anchor-4.c:
	New XFAILed tests that match the original order.

From-SVN: r213093
parent 6dc33097
2014-07-27 Richard Sandiford <rdsandiford@googlemail.com>
PR rtl-optimization/61926
* gcc.target/mips/const-anchor-1.c, gcc.target/mips/const-anchor-2.c:
Reverse argument order.
* gcc.target/mips/const-anchor-3.c, gcc.target/mips/const-anchor-4.c:
New XFAILed tests that match the original order.
2014-07-26 Marek Polacek <polacek@redhat.com> 2014-07-26 Marek Polacek <polacek@redhat.com>
PR c/61077 PR c/61077
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
(0x1234000) used to build another constant. */ (0x1234000) used to build another constant. */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* { dg-final { scan-assembler-not "0x12330000|305332224" } } */ /* { dg-final { scan-assembler-not "0x12330000|305332224" } } */
/* { dg-final { scan-assembler "\td?addiu\t\\\$5,\\\$\[0-9\]*,-1" } } */ /* { dg-final { scan-assembler "\td?addiu\t\\\$4,\\\$\[0-9\]*,-1" } } */
NOMIPS16 void f () NOMIPS16 void f ()
{ {
g (0x12340001, 0x1233ffff); g (0x1233ffff, 0x12340001);
} }
/* Derive a constant (0x30001) from another constant. */ /* Derive a constant (0x30001) from another constant. */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* { dg-final { scan-assembler-not "0x300000|196608" } } */ /* { dg-final { scan-assembler-not "0x300000|196608" } } */
/* { dg-final { scan-assembler "\td?addiu\t\\\$5,\\\$\[0-9\]*,32763" } } */ /* { dg-final { scan-assembler "\td?addiu\t\\\$4,\\\$\[0-9\]*,32763" } } */
NOMIPS16 void f () NOMIPS16 void f ()
{ {
g (0x28006, 0x30001); g (0x30001, 0x28006);
} }
/* Derive a constant (0x1233ffff) from an intermediate value
(0x1234000) used to build another constant. */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* See PR61926 for the XFAILs. */
/* { dg-final { scan-assembler-not "0x12330000|305332224" { xfail *-*-* } } } */
/* { dg-final { scan-assembler "\td?addiu\t\\\$5,\\\$\[0-9\]*,-1" { xfail *-*-* } } } */
NOMIPS16 void f ()
{
g (0x12340001, 0x1233ffff);
}
/* Derive a constant (0x30001) from another constant. */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* See PR61926 for the XFAILs. */
/* { dg-final { scan-assembler-not "0x300000|196608" { xfail *-*-* } } } */
/* { dg-final { scan-assembler "\td?addiu\t\\\$5,\\\$\[0-9\]*,32763" { xfail *-*-* } } } */
NOMIPS16 void f ()
{
g (0x28006, 0x30001);
}
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