aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/bitwise-cmpu.c
blob: e151b9741fa364fb7eda3918d259519bd3aa4b53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
typedef unsigned int __attribute__((bitwise)) bu32;

static int ltu(bu32 x, bu32 y)  { return (x <  y); }
static int lteu(bu32 x, bu32 y) { return (x <= y); }
static int gteu(bu32 x, bu32 y) { return (x >= y); }
static int gtu(bu32 x, bu32 y)  { return (x >  y); }

/*
 * check-name: bitwise-cmpu
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-excludes: setlt\\.
 * check-output-excludes: setlte\\.
 * check-output-excludes: setgte\\.
 * check-output-excludes: setgt\\.
 */