6cc99eaf45
From-SVN: r37292
25 lines
472 B
C
25 lines
472 B
C
/* { dg-do run { target i?86-*-* } } */
|
|
/* { 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;
|
|
}
|