Permalink
Browse files

Merge pull request #752 from nbrown/m0-tests

Fix m0 tests
  • Loading branch information...
2 parents 076d7e6 + 57c4a73 commit 5246f7c4e88b104d97afbc6cd554836d33176f21 @leto leto committed Apr 1, 2012
View
@@ -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
@@ -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:
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit 5246f7c

Please sign in to comment.