summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/const-anchor-1.c
blob: 66981671d02e83b40b01d64893e4703cf8a54a19 (plain)
1
2
3
4
5
6
7
8
9
10
/* Derive a constant (0x1233ffff) from an intermediate value
   (0x1234000) used to build another constant.  */
/* { dg-options "-O" } */
/* { dg-final { scan-assembler-not "0x12330000|305332224" } } */
/* { dg-final { scan-assembler "addiu\t\\\$5,\\\$\[0-9\]*,-1" } } */

NOMIPS16 void f ()
{
  g (0x12340001, 0x1233ffff);
}