/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* This test checks for absolute memory operands. */
|
/* This test checks for absolute memory operands. */
|
/* { dg-require-effective-target nonpic } */
|
/* { dg-require-effective-target nonpic } */
|
/* { dg-options "-O2 -march=k8" } */
|
/* { dg-options "-O2 -march=k8" } */
|
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_namea" } } */
|
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_namea" } } */
|
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_nameb" } } */
|
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_nameb" } } */
|
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_namec" } } */
|
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_namec" } } */
|
/* { dg-final { scan-assembler "shr\[^\\n\]*magic_named" } } */
|
/* { dg-final { scan-assembler "shr\[^\\n\]*magic_named" } } */
|
/* { dg-final { scan-assembler "shr\[^\\n\]*magic_namee" } } */
|
/* { dg-final { scan-assembler "shr\[^\\n\]*magic_namee" } } */
|
/* { dg-final { scan-assembler "shr\[^\\n\]*magic_namef" } } */
|
/* { dg-final { scan-assembler "shr\[^\\n\]*magic_namef" } } */
|
|
|
/* Check code generation for several conditional moves doable by single arithmetics. */
|
/* Check code generation for several conditional moves doable by single arithmetics. */
|
|
|
static int magic_namea;
|
static int magic_namea;
|
static char magic_nameb;
|
static char magic_nameb;
|
static short magic_namec;
|
static short magic_namec;
|
static int magic_named;
|
static int magic_named;
|
static char magic_namee;
|
static char magic_namee;
|
static short magic_namef;
|
static short magic_namef;
|
|
|
unsigned int gen;
|
unsigned int gen;
|
void m(void)
|
void m(void)
|
{
|
{
|
magic_namec=magic_namec>=0?0:-1;
|
magic_namec=magic_namec>=0?0:-1;
|
magic_namea=magic_namea>=0?0:-1;
|
magic_namea=magic_namea>=0?0:-1;
|
magic_nameb=magic_nameb>=0?0:-1;
|
magic_nameb=magic_nameb>=0?0:-1;
|
magic_named=magic_named>=0?0:1;
|
magic_named=magic_named>=0?0:1;
|
magic_namee=magic_namee>=0?0:1;
|
magic_namee=magic_namee>=0?0:1;
|
magic_namef=magic_namef>=0?0:1;
|
magic_namef=magic_namef>=0?0:1;
|
}
|
}
|
|
|
|
|