URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [xstormy16/] [bss_below100/] [13_if0_b100b_bit_0.c] - Rev 847
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ /* { dg-final { scan-assembler "b\[np\] B100A,#0," } } */ /* { dg-final { scan-assembler "b\[np\] B100B,#0," } } */ char acDummy[0xf0] __attribute__ ((__BELOW100__)); unsigned char B100A __attribute__ ((__BELOW100__)); unsigned char *pA = &B100A; unsigned char B100B __attribute__ ((__BELOW100__)); unsigned char *pB = &B100B; char * Do (void) { if (!(B100A & 0x01)) { if (!(B100B & 0x01)) return "Fail"; else return "Success"; } else return "Fail"; } int main (void) { *pA = 0x34; *pB = 0xcb; return Do ()[0] == 'F'; }
Go to most recent revision | Compare with Previous | Blame | View Log