aboutsummaryrefslogtreecommitdiff
path: root/tests/micropython/viper_binop_arith_uint.py.exp
diff options
context:
space:
mode:
authorDamien George2020-06-26 18:26:39 +1000
committerDamien George2020-06-27 00:24:04 +1000
commit41fa8b5482089bdd7fa5478fe24f32913b23967c (patch)
tree25efbc78d3b14a448882d4a7a503ddd4d7efcf47 /tests/micropython/viper_binop_arith_uint.py.exp
parentb3b8706d27cffbfc4cdd447b204ae7083283d13c (diff)
py/emitnative: Implement binary operations for viper uint operands.
uint types in viper mode can now be used for all binary operators except floor-divide and modulo. Fixes issue #1847 and issue #6177. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/micropython/viper_binop_arith_uint.py.exp')
-rw-r--r--tests/micropython/viper_binop_arith_uint.py.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/micropython/viper_binop_arith_uint.py.exp b/tests/micropython/viper_binop_arith_uint.py.exp
new file mode 100644
index 000000000..72f84b716
--- /dev/null
+++ b/tests/micropython/viper_binop_arith_uint.py.exp
@@ -0,0 +1,10 @@
+add
+3 3
+4294967293 4294967293
+sub
+4294967295 1
+1 4294967295
+mul
+6 6
+4294967290 4294967290
+6 6