aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/mips/const-anchor-2.c
blob: 65fcb0be2523241162403e40f7cda8e80c9b5a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* 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" } } */

extern void g (int, int);

NOMIPS16 void f ()
{
  g (0x28006, 0x30001);
}