• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define MINUS_ONE	-1
2 #define MASK		32
3 
4 
cmps_and_lt_lt0(int a)5 int cmps_and_lt_lt0(int a) { return ((a & MASK) <  MINUS_ONE)  + 1; }
cmps_and_lt_gtm(int a)6 int cmps_and_lt_gtm(int a) { return ((a & MASK) <  (MASK + 1)) + 0; }
cmps_and_le_lt0(int a)7 int cmps_and_le_lt0(int a) { return ((a & MASK) <= MINUS_ONE)  + 1; }
cmps_and_le_gtm(int a)8 int cmps_and_le_gtm(int a) { return ((a & MASK) <= (MASK + 1)) + 0; }
9 
cmps_and_gt_lt0(int a)10 int cmps_and_gt_lt0(int a) { return ((a & MASK) >  MINUS_ONE)  + 0; }
cmps_and_gt_gtm(int a)11 int cmps_and_gt_gtm(int a) { return ((a & MASK) >  (MASK + 1)) + 1; }
cmps_and_ge_lt0(int a)12 int cmps_and_ge_lt0(int a) { return ((a & MASK) >= MINUS_ONE)  + 0; }
cmps_and_ge_gtm(int a)13 int cmps_and_ge_gtm(int a) { return ((a & MASK) >= (MASK + 1)) + 1; }
14 
15 /*
16  * check-name: cmps-and0
17  * check-command: test-linearize -Wno-decl $file
18  *
19  * check-output-ignore
20  * check-output-returns: 1
21  */
22