diff options
Diffstat (limited to 'validation/optim/set-uimm2.c')
| -rw-r--r-- | validation/optim/set-uimm2.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validation/optim/set-uimm2.c b/validation/optim/set-uimm2.c new file mode 100644 index 00000000..9138ae72 --- /dev/null +++ b/validation/optim/set-uimm2.c @@ -0,0 +1,12 @@ +static _Bool setlt_umax(unsigned int a) { return (a < ~0) == (a != ~0); } +static _Bool setle_umax(unsigned int a) { return (a <= ~1) == (a != ~0); } +static _Bool setge_umax(unsigned int a) { return (a >= ~0) == (a == ~0); } +static _Bool setgt_umax(unsigned int a) { return (a > ~1) == (a == ~0); } + +/* + * check-name: set-uimm2 + * check-command: test-linearize $file + * + * check-output-ignore + * check-output-returns: 1 + */ |
