summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/const-anchor-2.c
blob: ccb89bb766c84b17c8be625dbf2dbafc9ba6d7ed (plain)
1
2
3
4
5
6
7
8
9
/* Derive a constant (0x30001) from another constant.  */
/* { dg-options "-O" } */
/* { dg-final { scan-assembler-not "0x300000|196608" } } */
/* { dg-final { scan-assembler "addiu\t\\\$5,\\\$\[0-9\]*,32763" } } */

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