diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-07-28 09:09:08 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-07-28 09:09:42 +0200 |
| commit | 8a852bf56850a0135e0e50cbc141fafce910d258 (patch) | |
| tree | 7316e04c6e9535acd36064eadedbe26703f8ebc4 /validation/optim/bool-zext-test.c | |
| parent | d0d63eb6c186fe6c37fb8a1061392512047ebaca (diff) | |
| parent | d329775c212cd1c5dad1d5e0ae226362bcef6992 (diff) | |
| download | sparse-dev-8a852bf56850a0135e0e50cbc141fafce910d258.tar.gz | |
Merge branch 'optim-setne' into tip
* some simplifications of OP_SETNE & OP_SETEQ with 0 and 1
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/bool-zext-test.c')
| -rw-r--r-- | validation/optim/bool-zext-test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validation/optim/bool-zext-test.c b/validation/optim/bool-zext-test.c new file mode 100644 index 00000000..138938b0 --- /dev/null +++ b/validation/optim/bool-zext-test.c @@ -0,0 +1,12 @@ +_Bool equ0(unsigned char a) { return a == 0; } +_Bool equ1(unsigned char a) { return a == 1; } +_Bool neu0(unsigned char a) { return a != 0; } +_Bool neu1(unsigned char a) { return a != 1; } + +/* + * check-name: bool-zext-test + * check-command: test-linearize -Wno-decl $file + * + * check-output-ignore + * check-output-excludes: zext\\. + */ |
