URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [i386/] [20000614-1.c] - Rev 825
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2" } */ void bar(char *p) { } static inline void foo (unsigned long base, unsigned char val) { val ^= (1<<2); bar (val & (1<<5) ? "1" : "2"); bar (val & (1<<4) ? "1" : "2"); bar (val & (1<<3) ? "1" : "2"); bar (val & (1<<2) ? "1" : "2"); bar (val & (1<<1) ? "1" : "2"); bar (val & (1<<0) ? "1" : "2"); asm volatile ("": :"a" (val), "d" (base)); } int main (void) { foo (23, 1); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log