diff options
| author | Paul Sokolovsky | 2014-12-14 03:24:17 +0200 |
|---|---|---|
| committer | Paul Sokolovsky | 2014-12-14 03:24:17 +0200 |
| commit | c0bc3bd736a3442d6fecaf54bd09139f3801551f (patch) | |
| tree | cd4a3a82e57a49aa362469f7197cb77fb954f888 /tests/micropython | |
| parent | 83d27b0f0bad6a5138d0a0984a9de16e34b93c76 (diff) | |
asmarm: Fix bug with encoding small negative ints using MVN instruction.
Diffstat (limited to 'tests/micropython')
| -rw-r--r-- | tests/micropython/viper_binop_comp_imm.py | 9 | ||||
| -rw-r--r-- | tests/micropython/viper_binop_comp_imm.py.exp | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/micropython/viper_binop_comp_imm.py b/tests/micropython/viper_binop_comp_imm.py new file mode 100644 index 000000000..c7c040895 --- /dev/null +++ b/tests/micropython/viper_binop_comp_imm.py @@ -0,0 +1,9 @@ +# comparisons with immediate boundary values +@micropython.viper +def f(a: int): + print(a == -1, a == -255, a == -256, a == -257) + +f(-1) +f(-255) +f(-256) +f(-257) diff --git a/tests/micropython/viper_binop_comp_imm.py.exp b/tests/micropython/viper_binop_comp_imm.py.exp new file mode 100644 index 000000000..3da9d09fb --- /dev/null +++ b/tests/micropython/viper_binop_comp_imm.py.exp @@ -0,0 +1,4 @@ +True False False False +False True False False +False False True False +False False False True |
