blob: b10454203577d27f426ecb9c9f8c85be62b3a391 [file] [log] [blame]
/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */
/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#0," } } */
/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#0," } } */
char acDummy[0xf0] __attribute__ ((__BELOW100__));
unsigned short B100A __attribute__ ((__BELOW100__));
unsigned short *pA = &B100A;
unsigned short B100B __attribute__ ((__BELOW100__));
unsigned short *pB = &B100B;
char *
Do (void)
{
if (B100A & 0x0100)
{
if (B100B & 0x0100)
return "Fail";
else
return "Success";
}
else
return "Fail";
}
int
main (void)
{
*pA = 0xedcb;
*pB = 0x1234;
return Do ()[0] == 'F';
}