diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-11-09 23:53:45 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-11-09 23:53:45 +0100 |
| commit | 98469166098170fc67d3eb043656c3e79190b31f (patch) | |
| tree | d38b631f527a85e7393867b3381230271c12194f /validation/optim/set-uimm3.c | |
| parent | 55d44f307c12fe0241d0a12e1dfe0320a54510af (diff) | |
| parent | c60237251a55984b1fcf6302d25650d35533dc2a (diff) | |
| download | sparse-dev-98469166098170fc67d3eb043656c3e79190b31f.tar.gz | |
Merge branch 'optim-cmp' into next
* simplify & canonicalize compares
Diffstat (limited to 'validation/optim/set-uimm3.c')
| -rw-r--r-- | validation/optim/set-uimm3.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/validation/optim/set-uimm3.c b/validation/optim/set-uimm3.c new file mode 100644 index 00000000..5160f741 --- /dev/null +++ b/validation/optim/set-uimm3.c @@ -0,0 +1,10 @@ +int le(int x) { return (x <= 0x7fffffffU) == (x >= 0); } +int gt(int x) { return (x > 0x7fffffffU) == (x < 0); } + +/* + * check-name: set-uimm3 + * check-command: test-linearize -Wno-decl $file + * + * check-output-ignore + * check-output-returns: 1 + */ |
