1 #define MINUS_ONE -1 2 #define MASK 32 3 4 cmps_and_lt_lt0(int a)5int cmps_and_lt_lt0(int a) { return ((a & MASK) < MINUS_ONE) + 1; } cmps_and_lt_gtm(int a)6int cmps_and_lt_gtm(int a) { return ((a & MASK) < (MASK + 1)) + 0; } cmps_and_le_lt0(int a)7int cmps_and_le_lt0(int a) { return ((a & MASK) <= MINUS_ONE) + 1; } cmps_and_le_gtm(int a)8int cmps_and_le_gtm(int a) { return ((a & MASK) <= (MASK + 1)) + 0; } 9 cmps_and_gt_lt0(int a)10int cmps_and_gt_lt0(int a) { return ((a & MASK) > MINUS_ONE) + 0; } cmps_and_gt_gtm(int a)11int cmps_and_gt_gtm(int a) { return ((a & MASK) > (MASK + 1)) + 1; } cmps_and_ge_lt0(int a)12int cmps_and_ge_lt0(int a) { return ((a & MASK) >= MINUS_ONE) + 0; } cmps_and_ge_gtm(int a)13int 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