URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [xstormy16/] [data_below100/] [16_if1_b100w_bit_b.c] - Rev 329
Compare with Previous | Blame | View Log
/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ /* { dg-final { scan-assembler "b\[np\] B100A\\+1,#3," } } */ /* { dg-final { scan-assembler "b\[np\] B100B\\+1,#3," } } */ char acDummy[0xf0] __attribute__ ((__BELOW100__)); unsigned short B100A __attribute__ ((__BELOW100__)) = 0xedcb; unsigned short *pA = &B100A; unsigned short B100B __attribute__ ((__BELOW100__)) = 0x1234; unsigned short *pB = &B100B; char * Do (void) { if (B100A & 0x0800) { if (B100B & 0x0800) return "Fail"; else return "Success"; } else return "Fail"; } int main (void) { return Do ()[0] == 'F'; }