URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-options "-O1 -fwrapv" } */
|
/* { dg-options "-O1 -fwrapv" } */
|
#include <limits.h>
|
#include <limits.h>
|
void exit (int);
|
void exit (int);
|
void abort ();
|
void abort ();
|
#define ABS(x) (x > 0 ? x : -x)
|
#define ABS(x) (x > 0 ? x : -x)
|
int f (int a) {
|
int f (int a) {
|
if (ABS(a) >= 0) return 1;
|
if (ABS(a) >= 0) return 1;
|
else return 0;
|
else return 0;
|
}
|
}
|
|
|
int main (int argc, char *argv[]) {
|
int main (int argc, char *argv[]) {
|
if (f(INT_MIN))
|
if (f(INT_MIN))
|
abort ();
|
abort ();
|
else
|
else
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.