diff options
Diffstat (limited to 'validation/optim/cmps0-and0.c')
-rw-r--r-- | validation/optim/cmps0-and0.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/validation/optim/cmps0-and0.c b/validation/optim/cmps0-and0.c new file mode 100644 index 00000000..819a1dc2 --- /dev/null +++ b/validation/optim/cmps0-and0.c @@ -0,0 +1,13 @@ +#define M 32 + +int cmps_and_sle0(int a) { return ((a & M) <= 0) == ((a & M) == 0); } +int cmps_and_sgt0(int a) { return ((a & M) > 0) == ((a & M) != 0); } + +/* + * check-name: cmps0-and + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-returns: 1 + */ |