Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #752 from nbrown/m0-tests

Fix m0 tests
  • Loading branch information...
commit 5246f7c4e88b104d97afbc6cd554836d33176f21 2 parents 076d7e6 + 57c4a73
@leto leto authored
View
12 t/m0/integration/m0_and.m0
@@ -18,16 +18,16 @@
set_imm I3, 0, 8
sub_i I3, I3, I2
- goto_if xor_nok, I3
- goto xor_ok, x
+ goto_if and_nok, I3
+ goto and_ok, x
-xor_ok:
- set_imm S0, 0, 2
+and_nok:
+ set_imm S0, 0, 1
deref S0, CONSTS, S0
print_s I0, S0, x
-xor_nok:
- set_imm S0, 0, 1
+and_ok:
+ set_imm S0, 0, 2
deref S0, CONSTS, S0
print_s I0, S0, x
View
2  t/m0/integration/m0_deref.m0
@@ -18,7 +18,7 @@
set_imm N1, 0, 99
sub_n N0, N0, N1
- goto_if deref_nok, I3
+ goto_if deref_nok, N0
goto deref_ok, x
deref_nok:
View
8 t/m0/integration/m0_lshr.m0
@@ -21,13 +21,13 @@
goto_if lshr_nok, I3
goto lshr_ok, x
-lshr_ok:
- set_imm S0, 0, 2
+lshr_nok:
+ set_imm S0, 0, 1
deref S0, CONSTS, S0
print_s I0, S0, x
-lshr_nok:
- set_imm S0, 0, 1
+lshr_ok:
+ set_imm S0, 0, 2
deref S0, CONSTS, S0
print_s I0, S0, x
View
12 t/m0/integration/m0_or.m0
@@ -18,16 +18,16 @@
set_imm I3, 0, 91
sub_i I3, I3, I2
- goto_if xor_nok, I3
- goto xor_ok, x
+ goto_if or_nok, I3
+ goto or_ok, x
-xor_ok:
- set_imm S0, 0, 2
+or_nok:
+ set_imm S0, 0, 1
deref S0, CONSTS, S0
print_s I0, S0, x
-xor_nok:
- set_imm S0, 0, 1
+or_ok:
+ set_imm S0, 0, 2
deref S0, CONSTS, S0
print_s I0, S0, x
View
8 t/m0/integration/m0_shl.m0
@@ -21,13 +21,13 @@
goto_if shl_nok, I3
goto shl_ok, x
-shl_ok:
- set_imm S0, 0, 2
+shl_nok:
+ set_imm S0, 0, 1
deref S0, CONSTS, S0
print_s I0, S0, x
-shl_nok:
- set_imm S0, 0, 1
+shl_ok:
+ set_imm S0, 0, 2
deref S0, CONSTS, S0
print_s I0, S0, x
View
8 t/m0/integration/m0_xor.m0
@@ -21,13 +21,13 @@
goto_if xor_nok, I3
goto xor_ok, x
-xor_ok:
- set_imm S0, 0, 2
+xor_nok:
+ set_imm S0, 0, 1
deref S0, CONSTS, S0
print_s I0, S0, x
-xor_nok:
- set_imm S0, 0, 1
+xor_ok:
+ set_imm S0, 0, 2
deref S0, CONSTS, S0
print_s I0, S0, x
Please sign in to comment.
Something went wrong with that request. Please try again.