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
This commit is contained in:
parent
6dc33097cc
commit
f1fa08e327
@ -1,3 +1,11 @@
|
||||
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>
|
||||
|
||||
PR c/61077
|
||||
|
@ -2,9 +2,9 @@
|
||||
(0x1234000) used to build another constant. */
|
||||
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
|
||||
/* { 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 ()
|
||||
{
|
||||
g (0x12340001, 0x1233ffff);
|
||||
g (0x1233ffff, 0x12340001);
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
/* Derive a constant (0x30001) from another constant. */
|
||||
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
|
||||
/* { 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 ()
|
||||
{
|
||||
g (0x28006, 0x30001);
|
||||
g (0x30001, 0x28006);
|
||||
}
|
||||
|
11
gcc/testsuite/gcc.target/mips/const-anchor-3.c
Normal file
11
gcc/testsuite/gcc.target/mips/const-anchor-3.c
Normal file
@ -0,0 +1,11 @@
|
||||
/* 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);
|
||||
}
|
10
gcc/testsuite/gcc.target/mips/const-anchor-4.c
Normal file
10
gcc/testsuite/gcc.target/mips/const-anchor-4.c
Normal file
@ -0,0 +1,10 @@
|
||||
/* 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user