aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cmps-minmax.c
blob: 5802cdbcafd1846b607d250afc9eea22bfdb196f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#define SMAX __INT_MAX__
#define SMIN (-__INT_MAX__-1)

int lt_smin(int a) { return (a <  SMIN) == 0; }
int le_smax(int a) { return (a <= SMAX) == 1; }

int ge_smin(int a) { return (a >= SMIN) == 1; }
int gt_smax(int a) { return (a >  SMAX) == 0; }

/*
 * check-name: cmps-minmax
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-returns: 1
 */