URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O1 -fdump-tree-optimized" } */
|
/* { dg-options "-O1 -fdump-tree-optimized" } */
|
|
|
int f(_Bool x)
|
int f(_Bool x)
|
{
|
{
|
if (x == 1)
|
if (x == 1)
|
return 1;
|
return 1;
|
return 0;
|
return 0;
|
}
|
}
|
|
|
/* There should be no == 1 which is produced by the front-end as
|
/* There should be no == 1 which is produced by the front-end as
|
bool_var == 1 is the same as bool_var. */
|
bool_var == 1 is the same as bool_var. */
|
/* { dg-final { scan-tree-dump-times "== 1" 0 "optimized"} } */
|
/* { dg-final { scan-tree-dump-times "== 1" 0 "optimized"} } */
|
|
|
/* There should be no adde for powerpc. Check if we actually optimized
|
/* There should be no adde for powerpc. Check if we actually optimized
|
away the comparison. */
|
away the comparison. */
|
/* { dg-final { scan-assembler-times "adde" 0 { target powerpc*-*-* } } } */
|
/* { dg-final { scan-assembler-times "adde" 0 { target powerpc*-*-* } } } */
|
|
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.