about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/analysis/data_flow.py6
-rw-r--r--test/analysis/depgraph.py2
-rw-r--r--test/analysis/dse.py2
-rw-r--r--test/arch/mep/asm/test_major_opcode_0.py30
-rw-r--r--test/arch/mep/asm/test_major_opcode_1.py30
-rw-r--r--test/arch/mep/asm/test_major_opcode_10.py4
-rw-r--r--test/arch/mep/asm/test_major_opcode_11.py4
-rw-r--r--test/arch/mep/asm/test_major_opcode_12.py34
-rw-r--r--test/arch/mep/asm/test_major_opcode_13.py16
-rw-r--r--test/arch/mep/asm/test_major_opcode_14.py20
-rw-r--r--test/arch/mep/asm/test_major_opcode_15.py20
-rw-r--r--test/arch/mep/asm/test_major_opcode_2.py22
-rw-r--r--test/arch/mep/asm/test_major_opcode_3.py16
-rw-r--r--test/arch/mep/asm/test_major_opcode_4.py8
-rw-r--r--test/arch/mep/asm/test_major_opcode_5.py2
-rw-r--r--test/arch/mep/asm/test_major_opcode_6.py14
-rw-r--r--test/arch/mep/asm/test_major_opcode_7.py6
-rw-r--r--test/arch/mep/asm/test_major_opcode_8.py10
-rw-r--r--test/arch/mep/asm/test_major_opcode_9.py2
-rwxr-xr-xtest/core/test_types.py2
-rw-r--r--test/expression/simplifications.py2
-rw-r--r--test/jitter/test_post_instr.py2
-rw-r--r--test/os_dep/linux/test_env.py2
-rwxr-xr-xtest/test_all.py6
-rw-r--r--test/utils/testset.py8
25 files changed, 135 insertions, 135 deletions
diff --git a/test/analysis/data_flow.py b/test/analysis/data_flow.py
index 53c9b01b..8682119d 100644
--- a/test/analysis/data_flow.py
+++ b/test/analysis/data_flow.py
@@ -217,7 +217,7 @@ for irb in [G5_EXP_IRB0, G5_EXP_IRB1, G5_EXP_IRB2,
             G5_EXP_IRB3, G5_EXP_IRB4, G5_EXP_IRB5]:
     G5_EXP_IRA.add_irblock(irb)
 
-# graph 6 : Natural loop with dead variables symetric affectation
+# graph 6 : Natural loop with dead variables symmetric affectation
 # (a = b <-> b = a )
 
 G6_IRA = IRA.new_ircfg()
@@ -344,7 +344,7 @@ G9_EXP_IRB4 = gen_irblock(LBL4, [[], [ExprAssign(r, b)]])
 for irb in [G9_EXP_IRB0, G9_EXP_IRB1, G9_EXP_IRB2, G9_EXP_IRB3, G9_EXP_IRB4]:
     G9_EXP_IRA.add_irblock(irb)
 
-# graph 10 : Natural loop with alive variables symetric affectation
+# graph 10 : Natural loop with alive variables symmetric affectation
 # (a = b <-> b = a )
 
 G10_IRA = IRA.new_ircfg()
@@ -660,7 +660,7 @@ G17_EXP_IRB0 = gen_irblock(LBL0, [[],
 for irb in [G17_EXP_IRB0]:
     G17_EXP_IRA.add_irblock(irb)
 
-# Begining  of tests
+# Beginning  of tests
 
 for test_nb, test in enumerate([(G1_IRA, G1_EXP_IRA),
                                 (G2_IRA, G2_EXP_IRA),
diff --git a/test/analysis/depgraph.py b/test/analysis/depgraph.py
index 0d909ba2..4d9aa322 100644
--- a/test/analysis/depgraph.py
+++ b/test/analysis/depgraph.py
@@ -220,7 +220,7 @@ def dg2graph(graph, label=False, lines=True):
     return '\n'.join(out)
 
 
-print "   [+] Test dictionnary equality"
+print "   [+] Test dictionary equality"
 DNA = DependencyNode(LBL2, A, 0)
 DNB = DependencyNode(LBL1, B, 1)
 DNC = DependencyNode(LBL1, C, 0)
diff --git a/test/analysis/dse.py b/test/analysis/dse.py
index a05d8595..344b9108 100644
--- a/test/analysis/dse.py
+++ b/test/analysis/dse.py
@@ -125,7 +125,7 @@ class DSEAttachInBreakpoint(DSETest):
             self._regs.EBX: self._testid,
         })
 
-        # Additionnal call to the exec callback is necessary, as breakpoints are
+        # Additional call to the exec callback is necessary, as breakpoints are
         # honored AFTER exec callback
         jitter.exec_cb(jitter)
 
diff --git a/test/arch/mep/asm/test_major_opcode_0.py b/test/arch/mep/asm/test_major_opcode_0.py
index d517850a..69a9685c 100644
--- a/test/arch/mep/asm/test_major_opcode_0.py
+++ b/test/arch/mep/asm/test_major_opcode_0.py
@@ -16,7 +16,7 @@ class TestMajor0:
         check_instruction("MOV $1, $8", "0180")
         check_instruction("MOV $1, $TP", "01d0")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MOV $3, $7", "0370")
         check_instruction("MOV $0, $SP", "00f0")
         check_instruction("MOV $5, $SP", "05f0")
@@ -33,7 +33,7 @@ class TestMajor0:
         check_instruction("NEG $0, $0", "0001")
         check_instruction("NEG $0, $8", "0081")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("NEG $6, $6", "0661")
         check_instruction("NEG $9, $5", "0951")
         check_instruction("NEG $11, $12", "0bc1")
@@ -50,7 +50,7 @@ class TestMajor0:
         check_instruction("SLT3 $0, $0, $0", "0002")
         check_instruction("SLT3 $0, $0, $8", "0082")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SLT3 $0, $2, $4", "0242")
         check_instruction("SLT3 $0, $SP, $2", "0f22")
         check_instruction("SLT3 $0, $5, $9", "0592")
@@ -67,7 +67,7 @@ class TestMajor0:
         check_instruction("SLTU3 $0, $12, $0", "0c03")
         check_instruction("SLTU3 $0, $4, $3", "0433")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SLTU3 $0, $5, $TP", "05d3")
         check_instruction("SLTU3 $0, $2, $5", "0253")
         check_instruction("SLTU3 $0, $SP, $TP", "0fd3")
@@ -84,7 +84,7 @@ class TestMajor0:
         check_instruction("SUB $4, $3", "0434")
         check_instruction("SUB $0, $8", "0084")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SUB $11, $9", "0b94")
         check_instruction("SUB $9, $9", "0994")
         check_instruction("SUB $TP, $2", "0d24")
@@ -101,7 +101,7 @@ class TestMajor0:
         check_instruction("SBVCK3 $0, $0, $6", "0065")
         check_instruction("SBVCK3 $0, $0, $12", "00c5")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SBVCK3 $0, $0, $5", "0055")
         check_instruction("SBVCK3 $0, $4, $8", "0485")
         check_instruction("SBVCK3 $0, $4, $1", "0415")
@@ -124,7 +124,7 @@ class TestMajor0:
         check_instruction("ADVCK3 $0, $0, $0", "0007")
         check_instruction("ADVCK3 $0, $0, $12", "00c7")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("ADVCK3 $0, $3, $9", "0397")
         check_instruction("ADVCK3 $0, $10, $7", "0a77")
         check_instruction("ADVCK3 $0, $1, $5", "0157")
@@ -141,7 +141,7 @@ class TestMajor0:
         check_instruction("SB $12, ($4)", "0c48")
         check_instruction("SB $12, ($11)", "0cb8")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SB $4, ($4)", "0448")
         check_instruction("SB $10, ($8)", "0a88")
         check_instruction("SB $7, ($6)", "0768")
@@ -158,7 +158,7 @@ class TestMajor0:
         check_instruction("SH $0, ($2)", "0029")
         check_instruction("SH $0, ($12)", "00c9")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SH $GP, ($12)", "0ec9")
         check_instruction("SH $6, ($10)", "06a9")
         check_instruction("SH $10, ($11)", "0ab9")
@@ -175,7 +175,7 @@ class TestMajor0:
         check_instruction("SW $12, ($SP)", "0cfa")
         check_instruction("SW $0, ($SP)", "00fa")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SW $0, ($7)", "007a")
         check_instruction("SW $4, ($12)", "04ca")
         check_instruction("SW $12, ($7)", "0c7a")
@@ -192,7 +192,7 @@ class TestMajor0:
         check_instruction("LBU $12, ($4)", "0c4b")
         check_instruction("LBU $0, ($4)", "004b")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LBU $6, ($TP)", "06db")
         check_instruction("LBU $11, ($SP)", "0bfb")
         check_instruction("LBU $10, ($10)", "0aab")
@@ -209,7 +209,7 @@ class TestMajor0:
         check_instruction("LB $10, ($4)", "0a4c")
         check_instruction("LB $12, ($TP)", "0cdc")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LB $0, ($12)", "00cc")
         check_instruction("LB $2, ($7)", "027c")
         check_instruction("LB $5, ($7)", "057c")
@@ -226,7 +226,7 @@ class TestMajor0:
         check_instruction("LH $0, ($12)", "00cd")
         check_instruction("LH $10, ($0)", "0a0d")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LH $0, ($GP)", "00ed")
         check_instruction("LH $12, ($5)", "0c5d")
         check_instruction("LH $0, ($3)", "003d")
@@ -243,7 +243,7 @@ class TestMajor0:
         check_instruction("LW $0, ($12)", "00ce")
         check_instruction("LW $1, ($SP)", "01fe")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LW $1, ($0)", "010e")
         check_instruction("LW $7, ($12)", "07ce")
         check_instruction("LW $TP, ($2)", "0d2e")
@@ -260,7 +260,7 @@ class TestMajor0:
         check_instruction("LHU $12, ($8)", "0c8f")
         check_instruction("LHU $12, ($4)", "0c4f")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LHU $5, ($11)", "05bf")
         check_instruction("LHU $12, ($3)", "0c3f")
         check_instruction("LHU $9, ($8)", "098f")
diff --git a/test/arch/mep/asm/test_major_opcode_1.py b/test/arch/mep/asm/test_major_opcode_1.py
index acdb9ca2..c401bfd2 100644
--- a/test/arch/mep/asm/test_major_opcode_1.py
+++ b/test/arch/mep/asm/test_major_opcode_1.py
@@ -16,7 +16,7 @@ class TestMajor1:
         check_instruction("OR $0, $11", "10b0")
         check_instruction("OR $0, $12", "10c0")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("OR $1, $12", "11c0")
         check_instruction("OR $6, $11", "16b0")
         check_instruction("OR $10, $9", "1a90")
@@ -33,7 +33,7 @@ class TestMajor1:
         check_instruction("AND $12, $11", "1cb1")
         check_instruction("AND $0, $0", "1001")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("AND $6, $12", "16c1")
         check_instruction("AND $8, $6", "1861")
         check_instruction("AND $1, $12", "11c1")
@@ -50,7 +50,7 @@ class TestMajor1:
         check_instruction("XOR $4, $0", "1402")
         check_instruction("XOR $11, $12", "1bc2")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("XOR $0, $12", "10c2")
         check_instruction("XOR $12, $1", "1c12")
         check_instruction("XOR $SP, $10", "1fa2")
@@ -67,7 +67,7 @@ class TestMajor1:
         check_instruction("NOR $11, $0", "1b03")
         check_instruction("NOR $0, $0", "1003")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("NOR $4, $1", "1413")
         check_instruction("NOR $11, $11", "1bb3")
         check_instruction("NOR $9, $9", "1993")
@@ -84,7 +84,7 @@ class TestMajor1:
         check_instruction("MUL $10, $9", "1a94")
         check_instruction("MUL $10, $3", "1a34")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MUL $2, $2", "1224")
         check_instruction("MUL $4, $12", "14c4")
         check_instruction("MUL $9, $3", "1934")
@@ -101,7 +101,7 @@ class TestMajor1:
         check_instruction("MULU $5, $12", "15c5")
         check_instruction("MULU $1, $8", "1185")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MULU $9, $6", "1965")
         check_instruction("MULU $5, $1", "1515")
         check_instruction("MULU $5, $11", "15b5")
@@ -118,7 +118,7 @@ class TestMajor1:
         check_instruction("MULR $12, $1", "1c16")
         check_instruction("MULR $6, $1", "1616")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MULR $7, $1", "1716")
         check_instruction("MULR $10, $8", "1a86")
         check_instruction("MULR $4, $1", "1416")
@@ -135,7 +135,7 @@ class TestMajor1:
         check_instruction("MULRU $7, $1", "1717")
         check_instruction("MULRU $GP, $6", "1e67")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MULRU $3, $12", "13c7")
         check_instruction("MULRU $2, $TP", "12d7")
         check_instruction("MULRU $3, $TP", "13d7")
@@ -152,7 +152,7 @@ class TestMajor1:
         check_instruction("DIV $9, $12", "19c8")
         check_instruction("DIV $12, $11", "1cb8")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("DIV $6, $1", "1618")
         check_instruction("DIV $5, $11", "15b8")
         check_instruction("DIV $1, $9", "1198")
@@ -169,7 +169,7 @@ class TestMajor1:
         check_instruction("DIVU $0, $10", "10a9")
         check_instruction("DIVU $11, $10", "1ba9")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("DIVU $3, $9", "1399")
         check_instruction("DIVU $SP, $4", "1f49")
         check_instruction("DIVU $12, $5", "1c59")
@@ -202,7 +202,7 @@ class TestMajor1:
         check_instruction("EXTB $11", "1b0d")
         check_instruction("EXTB $12", "1c0d")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("EXTB $6", "160d")
         check_instruction("EXTB $10", "1a0d")
         check_instruction("EXTB $9", "190d")
@@ -229,7 +229,7 @@ class TestMajor1:
         check_instruction("EXTUB $0", "108d")
         check_instruction("EXTUB $4", "148d")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("EXTUB $7", "178d")
         check_instruction("EXTUB $1", "118d")
         check_instruction("EXTUB $6", "168d")
@@ -246,7 +246,7 @@ class TestMajor1:
         check_instruction("EXTUH $3", "13ad")
         check_instruction("EXTUH $0", "10ad")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("EXTUH $7", "17ad")
         check_instruction("EXTUH $5", "15ad")
         check_instruction("EXTUH $2", "12ad")
@@ -263,7 +263,7 @@ class TestMajor1:
         check_instruction("JMP $12", "10ce")
         check_instruction("JMP $1", "101e")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("JMP $7", "107e")
         check_instruction("JMP $8", "108e")
         check_instruction("JMP $10", "10ae")
@@ -280,7 +280,7 @@ class TestMajor1:
         check_instruction("JSR $12", "10cf")
         check_instruction("JSR $4", "104f")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("JSR $9", "109f")
         check_instruction("JSR $10", "10af")
         check_instruction("JSR $6", "106f")
diff --git a/test/arch/mep/asm/test_major_opcode_10.py b/test/arch/mep/asm/test_major_opcode_10.py
index 6c8d0cf4..f1089c61 100644
--- a/test/arch/mep/asm/test_major_opcode_10.py
+++ b/test/arch/mep/asm/test_major_opcode_10.py
@@ -16,7 +16,7 @@ class TestMajor10:
         check_instruction("BEQZ $11, 0x4", "ab04")
         check_instruction("BEQZ $12, 0xA", "ac0a")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BEQZ $0, 0x42", "a042")
         check_instruction("BEQZ $10, 0x6", "aa06")
         check_instruction("BEQZ $0, 0x8", "a008")
@@ -33,7 +33,7 @@ class TestMajor10:
         check_instruction("BNEZ $0, 0xFFFFFFF6", "a0f7")
         check_instruction("BNEZ $4, 0xA", "a40b")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BNEZ $7, 0xE", "a70f")
         check_instruction("BNEZ $11, 0xE", "ab0f")
         check_instruction("BNEZ $10, 0x28", "aa29")
diff --git a/test/arch/mep/asm/test_major_opcode_11.py b/test/arch/mep/asm/test_major_opcode_11.py
index 7876a968..b5d8a278 100644
--- a/test/arch/mep/asm/test_major_opcode_11.py
+++ b/test/arch/mep/asm/test_major_opcode_11.py
@@ -16,7 +16,7 @@ class TestMajor11:
         check_instruction("BRA 0x46", "b046")
         check_instruction("BRA 0xFFFFFF98", "bf98")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BRA 0x2AA", "b2aa")
         check_instruction("BRA 0x22", "b022")
         check_instruction("BRA 0x12", "b012")
@@ -33,7 +33,7 @@ class TestMajor11:
         check_instruction("BSR 0xFFFFFBB2", "bbb3", multi=2)
         check_instruction("BSR 0xFFFFFCCE", "bccf", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BSR 0xFFFFFED4", "bed5", multi=2)
         check_instruction("BSR 0xFFFFFF62", "bf63", multi=2)
         check_instruction("BSR 0xFFFFFF36", "bf37", multi=2)
diff --git a/test/arch/mep/asm/test_major_opcode_12.py b/test/arch/mep/asm/test_major_opcode_12.py
index c9a0be79..e721d287 100644
--- a/test/arch/mep/asm/test_major_opcode_12.py
+++ b/test/arch/mep/asm/test_major_opcode_12.py
@@ -16,7 +16,7 @@ class TestMajor12:
         check_instruction("ADD3 $12, $4, 0x48", "cc400048")
         check_instruction("ADD3 $SP, $SP, -68", "cff0ffbc")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("ADD3 $12, $SP, 0x6", "ccf00006")
         check_instruction("ADD3 $12, $12, 0x3E4", "ccc003e4")
         check_instruction("ADD3 $7, $5, -31912", "c7508358")
@@ -33,7 +33,7 @@ class TestMajor12:
         check_instruction("MOV $2, 139", "c201008b", multi=2)
         check_instruction("MOV $0, 194", "c00100c2", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MOV $12, 239", "cc0100ef", multi=2)
         check_instruction("MOV $1, 136", "c1010088", multi=2)
         check_instruction("MOV $3, 168", "c30100a8", multi=2)
@@ -50,7 +50,7 @@ class TestMajor12:
         check_instruction("MOVU $11, 0x8105", "cb118105")
         check_instruction("MOVU $11, 0x8106", "cb118106")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MOVU $9, 0x8126", "c9118126")
         check_instruction("MOVU $7, 0xFF00", "c711ff00")
         check_instruction("MOVU $2, 0xE200", "c211e200")
@@ -67,7 +67,7 @@ class TestMajor12:
         check_instruction("MOVH $1, 0x101", "c1210101")
         check_instruction("MOVH $12, 0x81", "cc210081")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MOVH $4, 0xF4D5", "c421f4d5")
         check_instruction("MOVH $10, 0xFC00", "ca21fc00")
         check_instruction("MOVH $12, 0xC003", "cc21c003")
@@ -84,7 +84,7 @@ class TestMajor12:
         check_instruction("SLT3 $0, $12, 0x801", "c0c20801")
         check_instruction("SLT3 $0, $4, 0x800", "c0420800")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SLT3 $2, $4, 0x6A18", "c2426a18")
         check_instruction("SLT3 $2, $11, -31153", "c2b2864f")
         check_instruction("SLT3 $11, $12, 0x5BFA", "cbc25bfa")
@@ -101,7 +101,7 @@ class TestMajor12:
         check_instruction("SLTU3 $0, $12, 0x941", "c0c30941")
         check_instruction("SLTU3 $12, $8, 0x1001", "cc831001")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SLTU3 $8, $12, 0x8BA9", "c8c38ba9")
         check_instruction("SLTU3 $12, $11, 0x1E", "ccb3001e")
         check_instruction("SLTU3 $6, $GP, 0x6C90", "c6e36c90")
@@ -118,7 +118,7 @@ class TestMajor12:
         check_instruction("OR3 $12, $12, 0x1", "ccc40001")
         check_instruction("OR3 $12, $12, 0x2", "ccc40002")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("OR3 $12, $GP, 0xC7", "cce400c7")
         check_instruction("OR3 $10, $3, 0x40", "ca340040")
         check_instruction("OR3 $3, $3, 0xFF97", "c334ff97")
@@ -135,7 +135,7 @@ class TestMajor12:
         check_instruction("AND3 $11, $12, 0x8", "cbc50008")
         check_instruction("AND3 $11, $12, 0x1", "cbc50001")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("AND3 $12, $7, 0x1FF", "cc7501ff")
         check_instruction("AND3 $9, $10, 0x4E27", "c9a54e27")
         check_instruction("AND3 $4, $4, 0xFB", "c44500fb")
@@ -152,7 +152,7 @@ class TestMajor12:
         check_instruction("XOR3 $12, $11, 0x4", "ccb60004")
         check_instruction("XOR3 $4, $4, 0x1", "c4460001")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("XOR3 $TP, $9, 0x8704", "cd968704")
         check_instruction("XOR3 $11, $SP, 0x7411", "cbf67411")
         check_instruction("XOR3 $SP, $8, 0x8801", "cf868801")
@@ -169,7 +169,7 @@ class TestMajor12:
         check_instruction("SB $11, 0x17($SP)", "cbf80017")
         check_instruction("SB $12, 0x16($SP)", "ccf80016")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SB $TP, -31053($6)", "cd6886b3")
         check_instruction("SB $3, 0x6E($8)", "c388006e")
         check_instruction("SB $7, 0x81($8)", "c7880081")
@@ -186,7 +186,7 @@ class TestMajor12:
         check_instruction("SH $4, 0xC($SP)", "c4f9000c")
         check_instruction("SH $11, 0x1E($4)", "cb49001e")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SH $SP, -30753($6)", "cf6987df")
         check_instruction("SH $12, 0x6C4($TP)", "ccd906c4")
         check_instruction("SH $4, 0x38($3)", "c4390038")
@@ -207,7 +207,7 @@ class TestMajor12:
         check_instruction("SW $10, 0xC($12)", "caca000c")
         check_instruction("SW $10, 0x4($12)", "caca0004")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SW $12, 0x100($1)", "cc1a0100")
         check_instruction("SW $10, 0x88($6)", "ca6a0088")
         check_instruction("SW $0, 0x188($SP)", "c0fa0188")
@@ -224,7 +224,7 @@ class TestMajor12:
         check_instruction("LBU $12, 0x16($SP)", "ccfb0016")
         check_instruction("LBU $11, 0x2($4)", "cb4b0002")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LBU $12, 0x16($4)", "cc4b0016")
         check_instruction("LBU $2, 0x3($11)", "c2bb0003")
         check_instruction("LBU $7, 0x5($2)", "c72b0005")
@@ -241,7 +241,7 @@ class TestMajor12:
         check_instruction("LB $9, 0x2($12)", "c9cc0002")
         check_instruction("LB $12, 0x16($SP)", "ccfc0016")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LB $0, 0x5784($10)", "c0ac5784")
         check_instruction("LB $11, -31243($9)", "cb9c85f5")
         check_instruction("LB $5, 0x11($6)", "c56c0011")
@@ -258,7 +258,7 @@ class TestMajor12:
         check_instruction("LH $4, 0x4($8)", "c48d0004")
         check_instruction("LH $9, 0x10($1)", "c91d0010")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LH $4, 0x8($8)", "c48d0008")
         check_instruction("LH $12, 0x8($10)", "ccad0008")
         check_instruction("LH $6, -32042($6)", "c66d82d6")
@@ -275,7 +275,7 @@ class TestMajor12:
         check_instruction("LW $2, 0x8($8)", "c28e0008")
         check_instruction("LW $4, 0x14($8)", "c48e0014")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LW $12, 0x1D48($7)", "cc7e1d48")
         check_instruction("LW $8, 0x58($1)", "c81e0058")
         check_instruction("LW $12, 0xB0($7)", "cc7e00b0")
@@ -292,7 +292,7 @@ class TestMajor12:
         check_instruction("LHU $4, 0x18($8)", "c48f0018")
         check_instruction("LHU $2, 0x10($8)", "c28f0010")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LHU $12, 0x94($8)", "cc8f0094")
         check_instruction("LHU $4, 0xE($6)", "c46f000e")
         check_instruction("LHU $11, 0x5B59($GP)", "cbef5b59")
diff --git a/test/arch/mep/asm/test_major_opcode_13.py b/test/arch/mep/asm/test_major_opcode_13.py
index b6e99dd5..996b47e3 100644
--- a/test/arch/mep/asm/test_major_opcode_13.py
+++ b/test/arch/mep/asm/test_major_opcode_13.py
@@ -16,7 +16,7 @@ class TestMajor13:
         check_instruction("MOVU $4, 0x202EE0", "d4e0202e", multi=2)
         check_instruction("MOVU $4, 0xC12A8E", "d48ec12a", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MOVU $4, 0x1D7100", "d4001d71", multi=2)
         check_instruction("MOVU $4, 0x8A395B", "d45b8a39", multi=2)
         check_instruction("MOVU $4, 0x67A3E6", "d4e667a3", multi=2)
@@ -32,7 +32,7 @@ class TestMajor13:
         check_instruction("BCPEQ 0xC, 0xAADA", "d8c4556d")
         check_instruction("BCPEQ 0x7, 0xFFFF18F6", "d8748c7b")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BCPEQ 0x6, 0xFFFF18CA", "d8648c65")
 
     def test_BCPNE(self):
@@ -44,7 +44,7 @@ class TestMajor13:
         check_instruction("BCPNE 0x7, 0xFFFF18FA", "d8758c7d")
         check_instruction("BCPNE 0x1, 0x674E", "d81533a7")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BCPNE 0xB, 0xD820", "d8b56c10")
         check_instruction("BCPNE 0x8, 0xFFFF1922", "d8858c91")
         check_instruction("BCPNE 0xD, 0xA6C8", "d8d55364")
@@ -61,7 +61,7 @@ class TestMajor13:
         check_instruction("BCPAT 0xC, 0x9D88", "d8c64ec4")
         check_instruction("BCPAT 0x7, 0xFFFF18FA", "d8768c7d")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BCPAT 0x6, 0xFFFF18D0", "d8668c68")
         check_instruction("BCPAT 0x7, 0xFFFF18FC", "d8768c7e")
         check_instruction("BCPAT 0x6, 0xFFFF18CE", "d8668c67")
@@ -78,7 +78,7 @@ class TestMajor13:
         check_instruction("BCPAF 0xF, 0x9E4E", "d8f74f27")
         check_instruction("BCPAF 0xD, 0xA412", "d8d75209")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BCPAF 0xB, 0xFFFF01CA", "d8b780e5")
         check_instruction("BCPAF 0xA, 0x9C2A", "d8a74e15")
         check_instruction("BCPAF 0x8, 0xFFFF1924", "d8878c92")
@@ -95,7 +95,7 @@ class TestMajor13:
         check_instruction("JMP 0x80FF2C", "d96880ff")
         check_instruction("JMP 0x814174", "dba88141")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("JMP 0xC3F782", "dc18c3f7")
         check_instruction("JMP 0xC814", "d8a800c8")
         check_instruction("JMP 0x9079EE", "df789079")
@@ -115,7 +115,7 @@ class TestMajor13:
         check_instruction("BSR 0x36C4", "de290036", multi=2)
         check_instruction("BSR 0xFFFC6AC4", "de29fc6a", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BSR 0x22C", "d9690002", multi=2)
         check_instruction("BSR 0x5FEE6A", "db595fee", multi=2)
         check_instruction("BSR 0x4AFF4", "dfa904af", multi=2)
@@ -135,7 +135,7 @@ class TestMajor13:
         check_instruction("BSRV 0x6509F4", "dfab6509")
         check_instruction("BSRV 0x8F50C8", "de4b8f50")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BSRV 0x544BF6", "dfbb544b")
         check_instruction("BSRV 0x8CCA2A", "d95b8cca")
         check_instruction("BSRV 0x4F681E", "d8fb4f68")
diff --git a/test/arch/mep/asm/test_major_opcode_14.py b/test/arch/mep/asm/test_major_opcode_14.py
index 1c2ac466..6ad3c757 100644
--- a/test/arch/mep/asm/test_major_opcode_14.py
+++ b/test/arch/mep/asm/test_major_opcode_14.py
@@ -16,7 +16,7 @@ class TestMajor14:
         check_instruction("BEQI $0, 0xA, 0x8", "e0a00004")
         check_instruction("BEQI $0, 0x0, 0xC4", "e0000062")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BEQI $0, 0x1, 0xFFFFFF6A", "e010ffb5")
         check_instruction("BEQI $1, 0x2, 0x20", "e1200010")
         check_instruction("BEQI $9, 0x0, 0xE0", "e9000070")
@@ -33,7 +33,7 @@ class TestMajor14:
         check_instruction("BEQ $0, $0, 0x102", "e0010081")
         check_instruction("BEQ $7, $11, 0x56", "e7b1002b")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BEQ $11, $9, 0x26", "eb910013")
         check_instruction("BEQ $12, $11, 0x28", "ecb10014")
         check_instruction("BEQ $0, $0, 0xA12", "e0010509")
@@ -53,7 +53,7 @@ class TestMajor14:
         check_instruction("BNEI $4, 0x2, 0xDA", "e424006d")
         check_instruction("BNEI $12, 0x1, 0x8", "ec140004")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BNEI $12, 0x2, 0x6", "ec240003")
         check_instruction("BNEI $3, 0xC, 0xFFFF2D68", "e3c496b4")
         check_instruction("BNEI $4, 0x1, 0x10", "e4140008")
@@ -70,7 +70,7 @@ class TestMajor14:
         check_instruction("BNE $3, $0, 0xFFFF35A8", "e3059ad4")
         check_instruction("BNE $10, $3, 0xA", "ea350005")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BNE $4, $12, 0x8", "e4c50004")
         check_instruction("BNE $4, $1, 0x10", "e4150008")
         check_instruction("BNE $4, $12, 0x34", "e4c5001a")
@@ -87,7 +87,7 @@ class TestMajor14:
         check_instruction("BGEI $12, 0x0, 0x22", "ec080011")
         check_instruction("BGEI $GP, 0xE, 0xFFFF2996", "eee894cb")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BGEI $4, 0x5, 0x52", "e4580029")
         check_instruction("BGEI $1, 0x4, 0xA", "e1480005")
         check_instruction("BGEI $8, 0x0, 0x10", "e8080008")
@@ -103,7 +103,7 @@ class TestMajor14:
         check_instruction("REPEAT $11, 0x8", "eb090004")
         check_instruction("REPEAT $11, 0x6", "eb090003")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("REPEAT $12, 0x24", "ec090012")
         check_instruction("REPEAT $9, 0x8", "e9090004")
         check_instruction("REPEAT $12, 0x14", "ec09000a")
@@ -120,7 +120,7 @@ class TestMajor14:
         check_instruction("EREPEAT 0x12", "e0190009")
         check_instruction("EREPEAT 0x1C", "e019000e")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("EREPEAT 0x12", "e0190009")
         check_instruction("EREPEAT 0x7E", "e019003f")
         check_instruction("EREPEAT 0x8", "e0190004")
@@ -137,7 +137,7 @@ class TestMajor14:
         check_instruction("BLTI $7, 0x1, 0x1A", "e71c000d")
         check_instruction("BLTI $12, 0x9, 0xEA52", "ec9c7529")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BLTI $4, 0x6, 0xFFFF25AE", "e46c92d7")
         check_instruction("BLTI $12, 0x1, 0x24", "ec1c0012")
         check_instruction("BLTI $9, 0xF, 0xFFFF1F0A", "e9fc8f85")
@@ -154,7 +154,7 @@ class TestMajor14:
         check_instruction("SW $4, (0x826864)", "e4668268")
         check_instruction("SW $4, (0x826994)", "e4968269")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SW $1, (0x815864)", "e1668158")
         check_instruction("SW $1, (0x825BD8)", "e1da825b")
         check_instruction("SW $10, (0x6225AC)", "eaae6225")
@@ -171,7 +171,7 @@ class TestMajor14:
         check_instruction("LW $3, (0x816820)", "e3238168")
         check_instruction("LW $4, (0x81F0F0)", "e4f381f0")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LW $GP, (0x94CEE8)", "eeeb94ce")
         check_instruction("LW $4, (0x823608)", "e40b8236")
         check_instruction("LW $0, (0x815E40)", "e043815e")
diff --git a/test/arch/mep/asm/test_major_opcode_15.py b/test/arch/mep/asm/test_major_opcode_15.py
index 8eeb2eff..ecad8b3f 100644
--- a/test/arch/mep/asm/test_major_opcode_15.py
+++ b/test/arch/mep/asm/test_major_opcode_15.py
@@ -152,7 +152,7 @@ class TestMajor15:
         check_instruction("MADD $10, $4", "fa413004")
         check_instruction("MADD $4, $11", "f4b13004")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MADD $7, $10", "f7a13004")
         check_instruction("MADD $0, $10", "f0a13004")
         check_instruction("MADD $12, $9", "fc913004")
@@ -169,7 +169,7 @@ class TestMajor15:
         check_instruction("MADDU $6, $9", "f6913005")
         check_instruction("MADDU $6, $10", "f6a13005")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MADDU $10, $12", "fac13005")
         check_instruction("MADDU $10, $2", "fa213005")
         check_instruction("MADDU $1, $12", "f1c13005")
@@ -195,7 +195,7 @@ class TestMajor15:
         check_instruction("MADDRU $11, $1", "fb113007")
         check_instruction("MADDRU $12, $1", "fc113007")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MADDRU $1, $0", "f1013007")
         check_instruction("MADDRU $10, $3", "fa313007")
         check_instruction("MADDRU $12, $11", "fcb13007")
@@ -221,7 +221,7 @@ class TestMajor15:
         check_instruction("STCB $11, 0x0", "fb040000")
         check_instruction("STCB $12, 0x4100", "fc044100")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("STCB $2, 0x4007", "f2044007")
         check_instruction("STCB $10, 0x4002", "fa044002")
         check_instruction("STCB $11, 0x2", "fb040002")
@@ -238,7 +238,7 @@ class TestMajor15:
         check_instruction("LDCB $12, 0x1000", "fc141000")
         check_instruction("LDCB $12, 0x0", "fc140000")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LDCB $12, 0x420", "fc140420")
         check_instruction("LDCB $10, 0x1", "fa140001")
         check_instruction("LDCB $11, 0x5", "fb140005")
@@ -255,7 +255,7 @@ class TestMajor15:
         check_instruction("SBCPA $C4, ($TP+), -52", "f4d500cc")
         check_instruction("SBCPA $C6, ($4+), -55", "f64500c9")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SBCPA $C2, ($SP+), -51", "f2f500cd")
         check_instruction("SBCPA $C13, ($8+), -52", "fd8500cc")
         check_instruction("SBCPA $C2, ($TP+), -51", "f2d500cd")
@@ -524,7 +524,7 @@ class TestMajor15:
         check_instruction("SWCP $C2, 24658($5)", "f25c6052")
         check_instruction("SWCP $C0, 27132($9)", "f09c69fc")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SWCP $C9, 195($10)", "f9ac00c3")
         check_instruction("SWCP $C5, -25704($5)", "f55c9b98")
         check_instruction("SWCP $C2, -31068($11)", "f2bc86a4")
@@ -541,7 +541,7 @@ class TestMajor15:
         check_instruction("LWCP $C15, -26720($8)", "ff8d97a0")
         check_instruction("LWCP $C15, 26934($4)", "ff4d6936")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LWCP $C11, -25049($5)", "fb5d9e27")
         check_instruction("LWCP $C6, -25560($8)", "f68d9c28")
         check_instruction("LWCP $C7, -24867($GP)", "f7ed9edd")
@@ -558,7 +558,7 @@ class TestMajor15:
         check_instruction("SMCP $C3, 6490($4)", "f34e195a")
         check_instruction("SMCP $C2, -11232($10)", "f2aed420")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SMCP $C6, 201($7)", "f67e00c9")
         check_instruction("SMCP $C3, -25912($6)", "f36e9ac8")
         check_instruction("SMCP $C9, -25215($7)", "f97e9d81")
@@ -575,7 +575,7 @@ class TestMajor15:
         check_instruction("LMCP $C15, 4095($SP)", "ffff0fff")
         check_instruction("LMCP $C15, -1($SP)", "ffffffff")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LMCP $C7, -24863($GP)", "f7ef9ee1")
         check_instruction("LMCP $C14, 16674($SP)", "feff4122")
         check_instruction("LMCP $C13, 1023($SP)", "fdff03ff")
diff --git a/test/arch/mep/asm/test_major_opcode_2.py b/test/arch/mep/asm/test_major_opcode_2.py
index 913d8756..07743813 100644
--- a/test/arch/mep/asm/test_major_opcode_2.py
+++ b/test/arch/mep/asm/test_major_opcode_2.py
@@ -16,7 +16,7 @@ class TestMajor2:
         check_instruction("BSETM ($2), 0x5", "2520")
         check_instruction("BSETM ($2), 0x0", "2020")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BSETM ($8), 0x4", "2480")
         check_instruction("BSETM ($5), 0x5", "2550")
         check_instruction("BSETM ($5), 0x0", "2050")
@@ -33,7 +33,7 @@ class TestMajor2:
         check_instruction("BCLRM ($2), 0x1", "2121")
         check_instruction("BCLRM ($0), 0x0", "2001")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BCLRM ($6), 0x4", "2461")
         check_instruction("BCLRM ($7), 0x4", "2471")
         check_instruction("BCLRM ($6), 0x5", "2561")
@@ -50,7 +50,7 @@ class TestMajor2:
         check_instruction("BNOTM ($3), 0x0", "2032")
         check_instruction("BNOTM ($7), 0x0", "2072")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BNOTM ($6), 0x4", "2462")
         check_instruction("BNOTM ($2), 0x2", "2222")
         check_instruction("BNOTM ($0), 0x1", "2102")
@@ -67,7 +67,7 @@ class TestMajor2:
         check_instruction("BTSTM $0, ($0), 0x0", "2003")
         check_instruction("BTSTM $0, ($7), 0x0", "2073")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("BTSTM $0, ($2), 0x4", "2423")
         check_instruction("BTSTM $0, ($12), 0x6", "26c3")
         check_instruction("BTSTM $0, ($4), 0x5", "2543")
@@ -84,7 +84,7 @@ class TestMajor2:
         check_instruction("TAS $0, ($7)", "2074")
         check_instruction("TAS $0, ($6)", "2064")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("TAS $1, ($6)", "2164")
         check_instruction("TAS $11, ($3)", "2b34")
         check_instruction("TAS $1, ($0)", "2104")
@@ -101,7 +101,7 @@ class TestMajor2:
         check_instruction("SL1AD3 $0, $3, $3", "2336")
         check_instruction("SL1AD3 $0, $12, $12", "2cc6")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SL1AD3 $0, $5, $4", "2546")
         check_instruction("SL1AD3 $0, $11, $4", "2b46")
         check_instruction("SL1AD3 $0, $GP, $3", "2e36")
@@ -118,7 +118,7 @@ class TestMajor2:
         check_instruction("SL2AD3 $0, $12, $0", "2c07")
         check_instruction("SL2AD3 $0, $11, $4", "2b47")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SL2AD3 $0, $10, $SP", "2af7")
         check_instruction("SL2AD3 $0, $4, $8", "2487")
         check_instruction("SL2AD3 $0, $10, $12", "2ac7")
@@ -135,7 +135,7 @@ class TestMajor2:
         check_instruction("SRL $0, $6", "206c")
         check_instruction("SRL $SP, $3", "2f3c")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SRL $9, $6", "296c")
         check_instruction("SRL $2, $7", "227c")
         check_instruction("SRL $9, $12", "29cc")
@@ -152,7 +152,7 @@ class TestMajor2:
         check_instruction("SRA $0, $3", "203d")
         check_instruction("SRA $0, $5", "205d")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SRA $11, $2", "2b2d")
         check_instruction("SRA $9, $6", "296d")
         check_instruction("SRA $4, $8", "248d")
@@ -169,7 +169,7 @@ class TestMajor2:
         check_instruction("SLL $5, $2", "252e")
         check_instruction("SLL $0, $6", "206e")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SLL $4, $0", "240e")
         check_instruction("SLL $SP, $10", "2fae")
         check_instruction("SLL $0, $4", "204e")
@@ -186,7 +186,7 @@ class TestMajor2:
         check_instruction("FSFT $SP, $2", "2f2f")
         check_instruction("FSFT $0, $6", "206f")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("FSFT $SP, $6", "2f6f")
         check_instruction("FSFT $0, $9", "209f")
         check_instruction("FSFT $5, $9", "259f")
diff --git a/test/arch/mep/asm/test_major_opcode_3.py b/test/arch/mep/asm/test_major_opcode_3.py
index 6802e752..3e0c5864 100644
--- a/test/arch/mep/asm/test_major_opcode_3.py
+++ b/test/arch/mep/asm/test_major_opcode_3.py
@@ -16,7 +16,7 @@ class TestMajor3:
         check_instruction("SWCPI $C2, ($3+)", "3230")
         check_instruction("SWCPI $C0, ($3+)", "3030")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SWCPI $C2, ($2+)", "3220")
         check_instruction("SWCPI $C6, ($10+)", "36a0")
         check_instruction("SWCPI $C15, ($SP+)", "3ff0")
@@ -33,7 +33,7 @@ class TestMajor3:
         check_instruction("LWCPI $C1, ($3+)", "3131")
         check_instruction("LWCPI $C10, ($4+)", "3a41")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LWCPI $C0, ($1+)", "3011")
         check_instruction("LWCPI $C0, ($11+)", "30b1")
         check_instruction("LWCPI $C3, ($10+)", "33a1")
@@ -50,7 +50,7 @@ class TestMajor3:
         check_instruction("SMCPI $C8, ($10+)", "38a2")
         check_instruction("SMCPI $C0, ($3+)", "3032")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SMCPI $C5, ($10+)", "35a2")
         check_instruction("SMCPI $C9, ($3+)", "3932")
         check_instruction("SMCPI $C11, ($5+)", "3b52")
@@ -67,7 +67,7 @@ class TestMajor3:
         check_instruction("LMCPI $C3, ($3+)", "3333")
         check_instruction("LMCPI $C0, ($0+)", "3003")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LMCPI $C0, ($SP+)", "30f3")
         check_instruction("LMCPI $C1, ($1+)", "3113")
         check_instruction("LMCPI $C3, ($0+)", "3303")
@@ -84,7 +84,7 @@ class TestMajor3:
         check_instruction("SWCP $C10, ($7)", "3a78")
         check_instruction("SWCP $C0, ($10)", "30a8")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SWCP $C7, ($12)", "37c8")
         check_instruction("SWCP $C1, ($1)", "3118")
         check_instruction("SWCP $C10, ($5)", "3a58")
@@ -101,7 +101,7 @@ class TestMajor3:
         check_instruction("LWCP $C6, ($10)", "36a9")
         check_instruction("LWCP $C6, ($TP)", "36d9")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LWCP $C11, ($9)", "3b99")
         check_instruction("LWCP $C1, ($1)", "3119")
         check_instruction("LWCP $C7, ($3)", "3739")
@@ -118,7 +118,7 @@ class TestMajor3:
         check_instruction("SMCP $C0, ($GP)", "30ea")
         check_instruction("SMCP $C12, ($0)", "3c0a")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SMCP $C3, ($4)", "334a")
         check_instruction("SMCP $C13, ($0)", "3d0a")
         check_instruction("SMCP $C3, ($3)", "333a")
@@ -135,7 +135,7 @@ class TestMajor3:
         check_instruction("LMCP $C9, ($4)", "394b")
         check_instruction("LMCP $C15, ($6)", "3f6b")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LMCP $C0, ($4)", "304b")
         check_instruction("LMCP $C0, ($GP)", "30eb")
         check_instruction("LMCP $C13, ($6)", "3d6b")
diff --git a/test/arch/mep/asm/test_major_opcode_4.py b/test/arch/mep/asm/test_major_opcode_4.py
index c5de257e..e52acf3f 100644
--- a/test/arch/mep/asm/test_major_opcode_4.py
+++ b/test/arch/mep/asm/test_major_opcode_4.py
@@ -21,7 +21,7 @@ class TestMajor4:
         check_instruction("ADD3 $SP, $SP, 0x20", "4f20", multi=2)
         check_instruction("ADD3 $1, $SP, 0x4", "4104", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("ADD3 $11, $SP, 0x38", "4b38", multi=2)
         check_instruction("ADD3 $5, $SP, 0x30", "4530", multi=2)
         check_instruction("ADD3 $TP, $SP, 0x38", "4d38", multi=2)
@@ -48,7 +48,7 @@ class TestMajor4:
         check_instruction("SW $8, 0x4($SP)", "4806", multi=2)
         check_instruction("SW $4, 0x40($SP)", "4442", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SW $4, 0x30($SP)", "4432", multi=2)
         check_instruction("SW $9, 0x3C($SP)", "493e", multi=2)
         check_instruction("SW $6, 0x68($SP)", "466a", multi=2)
@@ -75,7 +75,7 @@ class TestMajor4:
         check_instruction("LW $TP, 0x4($SP)", "4d07", multi=2)
         check_instruction("LW $8, 0x4($SP)", "4807", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LW $9, 0x4C($SP)", "494f", multi=2)
         check_instruction("LW $2, 0x44($TP)", "42c7", multi=2)
         check_instruction("LW $6, 0x58($SP)", "465b", multi=2)
@@ -102,7 +102,7 @@ class TestMajor4:
         check_instruction("LBU $4, 0x5($TP)", "4c85", multi=2)
         check_instruction("LBU $4, 0x6($TP)", "4c86", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LBU $4, 0x21($TP)", "4ca1", multi=2)
         check_instruction("LBU $4, 0x22($TP)", "4ca2", multi=2)
         # Note: the following instruction can not be easily manipulated due to
diff --git a/test/arch/mep/asm/test_major_opcode_5.py b/test/arch/mep/asm/test_major_opcode_5.py
index dc984420..e39230f4 100644
--- a/test/arch/mep/asm/test_major_opcode_5.py
+++ b/test/arch/mep/asm/test_major_opcode_5.py
@@ -16,7 +16,7 @@ class TestMajor5:
         check_instruction("MOV $0, 0", "5000", multi=2)
         check_instruction("MOV $0, 3", "5003", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("MOV $8, 84", "5854", multi=2)
         check_instruction("MOV $SP, 108", "5f6c", multi=2)
         check_instruction("MOV $12, 80", "5c50", multi=2)
diff --git a/test/arch/mep/asm/test_major_opcode_6.py b/test/arch/mep/asm/test_major_opcode_6.py
index be7858b5..5eda1ea6 100644
--- a/test/arch/mep/asm/test_major_opcode_6.py
+++ b/test/arch/mep/asm/test_major_opcode_6.py
@@ -16,7 +16,7 @@ class TestMajor6:
         check_instruction("ADD $SP, -8", "6fe0")
         check_instruction("ADD $4, 1", "6404")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("ADD $2, -26", "6298")
         check_instruction("ADD $TP, 7", "6d1c")
         check_instruction("ADD $SP, 26", "6f68")
@@ -33,7 +33,7 @@ class TestMajor6:
         check_instruction("SLT3 $0, $GP, 0xC", "6e61", multi=2)
         check_instruction("SLT3 $0, $GP, 0xD", "6e69", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SLT3 $0, $8, 0x14", "68a1", multi=2)
         check_instruction("SLT3 $0, $6, 0x0", "6601", multi=2)
         check_instruction("SLT3 $0, $2, 0xB", "6259", multi=2)
@@ -50,7 +50,7 @@ class TestMajor6:
         check_instruction("SRL $12, 0x2", "6c12")
         check_instruction("SRL $5, 0xE", "6572")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SRL $3, 0x16", "63b2")
         check_instruction("SRL $0, 0x1F", "60fa")
         check_instruction("SRL $5, 0xF", "657a")
@@ -67,7 +67,7 @@ class TestMajor6:
         check_instruction("SRA $4, 0x1", "640b")
         check_instruction("SRA $12, 0x8", "6c43")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SRA $0, 0x1B", "60db")
         check_instruction("SRA $10, 0x17", "6abb")
         check_instruction("SRA $GP, 0xB", "6e5b")
@@ -84,7 +84,7 @@ class TestMajor6:
         check_instruction("SLTU3 $0, $GP, 0xC", "6e65", multi=2)
         check_instruction("SLTU3 $0, $4, 0x4", "6425", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SLTU3 $0, $9, 0x9", "694d", multi=2)
         check_instruction("SLTU3 $0, $TP, 0xF", "6d7d", multi=2)
         check_instruction("SLTU3 $0, $10, 0x1D", "6aed", multi=2)
@@ -101,7 +101,7 @@ class TestMajor6:
         check_instruction("SLL $0, 0x2", "6016")
         check_instruction("SLL $0, 0x3", "601e")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SLL $8, 0x16", "68b6")
         check_instruction("SLL $SP, 0x4", "6f26")
         check_instruction("SLL $4, 0x19", "64ce")
@@ -118,7 +118,7 @@ class TestMajor6:
         check_instruction("SLL3 $0, $GP, 0xD", "6e6f")
         check_instruction("SLL3 $0, $1, 0x3", "611f")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SLL3 $0, $11, 0x16", "6bb7")
         check_instruction("SLL3 $0, $TP, 0xD", "6d6f")
         check_instruction("SLL3 $0, $10, 0xB", "6a5f")
diff --git a/test/arch/mep/asm/test_major_opcode_7.py b/test/arch/mep/asm/test_major_opcode_7.py
index fcd5e1f9..15a045da 100644
--- a/test/arch/mep/asm/test_major_opcode_7.py
+++ b/test/arch/mep/asm/test_major_opcode_7.py
@@ -82,7 +82,7 @@ class TestMajor7:
         check_instruction("CACHE 0x9, ($7)", "7974")
         check_instruction("CACHE 0x2, ($6)", "7264")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("CACHE 0x5, ($8)", "7584")
         check_instruction("CACHE 0xC, ($6)", "7c64")
         check_instruction("CACHE 0x2, ($1)", "7214")
@@ -108,7 +108,7 @@ class TestMajor7:
         check_instruction("STC $8, $LO", "7888")
         check_instruction("STC $0, $LP", "7018")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("STC $9, $DBG", "7989")
         check_instruction("STC $2, $DBG", "7289")
         check_instruction("STC $9, $LO", "7988")
@@ -125,7 +125,7 @@ class TestMajor7:
         check_instruction("LDC $12, $LO", "7c8a")
         check_instruction("LDC $0, $LP", "701a")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LDC $11, $RPC", "7b6a")
         check_instruction("LDC $10, $CFG", "7a5b")
         check_instruction("LDC $2, $NPC", "727b")
diff --git a/test/arch/mep/asm/test_major_opcode_8.py b/test/arch/mep/asm/test_major_opcode_8.py
index c4a8505f..7f15f9e8 100644
--- a/test/arch/mep/asm/test_major_opcode_8.py
+++ b/test/arch/mep/asm/test_major_opcode_8.py
@@ -16,7 +16,7 @@ class TestMajor8:
         check_instruction("SB $4, 0x1($TP)", "8401", multi=2)
         check_instruction("SB $0, 0x3($TP)", "8003", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SB $2, 0x65($TP)", "8265", multi=2)
         check_instruction("SB $5, 0x48($TP)", "8548", multi=2)
         check_instruction("SB $7, 0x77($TP)", "8777", multi=2)
@@ -33,7 +33,7 @@ class TestMajor8:
         check_instruction("SH $4, 0x4($TP)", "8484", multi=2)
         check_instruction("SH $4, 0xC($TP)", "848c", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("SH $7, 0x3A($TP)", "87ba", multi=2)
         check_instruction("SH $2, 0x36($TP)", "82b6", multi=2)
         check_instruction("SH $1, 0x76($TP)", "81f6", multi=2)
@@ -50,7 +50,7 @@ class TestMajor8:
         check_instruction("LB $4, 0x1A($TP)", "8c1a", multi=2)
         check_instruction("LB $4, 0x6($TP)", "8c06", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LB $4, 0x59($TP)", "8c59", multi=2)
         check_instruction("LB $7, 0x53($TP)", "8f53", multi=2)
         check_instruction("LB $6, 0x62($TP)", "8e62", multi=2)
@@ -67,7 +67,7 @@ class TestMajor8:
         check_instruction("LH $4, 0x6($TP)", "8c86", multi=2)
         check_instruction("LH $4, 0x4($TP)", "8c84", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LH $7, 0x28($TP)", "8fa8", multi=2)
         check_instruction("LH $4, 0x16($TP)", "8c96", multi=2)
         check_instruction("LH $0, 0x56($TP)", "88d6", multi=2)
@@ -84,7 +84,7 @@ class TestMajor8:
         check_instruction("LHU $4, 0x10($TP)", "8c91", multi=2)
         check_instruction("LHU $3, 0xC($TP)", "8b8d", multi=2)
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("LHU $3, 0x54($TP)", "8bd5", multi=2)
         check_instruction("LHU $7, 0x66($TP)", "8fe7", multi=2)
         check_instruction("LHU $2, 0x6E($TP)", "8aef", multi=2)
diff --git a/test/arch/mep/asm/test_major_opcode_9.py b/test/arch/mep/asm/test_major_opcode_9.py
index 822f3b6a..b8949887 100644
--- a/test/arch/mep/asm/test_major_opcode_9.py
+++ b/test/arch/mep/asm/test_major_opcode_9.py
@@ -16,7 +16,7 @@ class TestMajor9:
         check_instruction("ADD3 $7, $12, $0", "9c07")
         check_instruction("ADD3 $TP, $4, $0", "940d")
 
-        # Randomly choosen instructions
+        # Randomly chosen instructions
         check_instruction("ADD3 $4, $1, $9", "9194")
         check_instruction("ADD3 $7, $12, $9", "9c97")
         check_instruction("ADD3 $12, $9, $SP", "99fc")
diff --git a/test/core/test_types.py b/test/core/test_types.py
index 0b5f6baa..92867748 100755
--- a/test/core/test_types.py
+++ b/test/core/test_types.py
@@ -79,7 +79,7 @@ set_allocator(my_heap.vm_alloc)
 
 # Ptr tests
 ## Setup for Ptr tests
-# the addr field can now be omited since allocator is set
+# the addr field can now be omitted since allocator is set
 other = OtherStruct(jitter.vm)
 other.foo = 0x1234
 assert other.foo == 0x1234
diff --git a/test/expression/simplifications.py b/test/expression/simplifications.py
index 57895510..364456c6 100644
--- a/test/expression/simplifications.py
+++ b/test/expression/simplifications.py
@@ -20,7 +20,7 @@ args = parser.parse_args()
 if args.verbose:
     log_exprsimp.setLevel(logging.DEBUG)
 
-# Additionnal imports and definitions
+# Additional imports and definitions
 if args.z3:
     import z3
     from miasm2.ir.translators import Translator
diff --git a/test/jitter/test_post_instr.py b/test/jitter/test_post_instr.py
index 97ba167f..0aff667e 100644
--- a/test/jitter/test_post_instr.py
+++ b/test/jitter/test_post_instr.py
@@ -34,7 +34,7 @@ jitter.add_exception_handler(EXCEPT_BREAKPOINT_MEMORY,
                              do_not_raise_me)
 jitter.vm.add_memory_breakpoint(0x11000-4, 4, PAGE_READ | PAGE_WRITE)
 
-# The memory write pending will raise automod execption
+# The memory write pending will raise automod exception
 # The RET should not re evaluate PC @ [ESP+4]
 jitter.init_run(0x1000)
 try:
diff --git a/test/os_dep/linux/test_env.py b/test/os_dep/linux/test_env.py
index a44d62c4..0c80571f 100644
--- a/test/os_dep/linux/test_env.py
+++ b/test/os_dep/linux/test_env.py
@@ -20,7 +20,7 @@ elif arch == "arml":
 elif arch == "aarch64l":
     sandbox = Sandbox_Linux_aarch64l
 else:
-    raise ValueError("Unsuported arch: %s" % arch)
+    raise ValueError("Unsupported arch: %s" % arch)
 
 # Parse arguments
 parser = sandbox.parser(description="ELF sandboxer")
diff --git a/test/test_all.py b/test/test_all.py
index 4cb18241..4b97ffba 100755
--- a/test/test_all.py
+++ b/test/test_all.py
@@ -21,7 +21,7 @@ TAGS = {"regression": "REGRESSION", # Regression tests
         "long": "LONG", # Very time consumming tests
         "llvm": "LLVM", # LLVM dependency is required
         "gcc": "GCC", # GCC based tests
-        "z3": "Z3", # Z3 dependecy is needed
+        "z3": "Z3", # Z3 dependency is needed
         "qemu": "QEMU", # QEMU tests (several tests)
         "cparser": "CPARSER", # pycparser is needed
         "linux": "LINUX", # Test must be run on a Linux
@@ -847,7 +847,7 @@ By default, all tag are considered." % ", ".join(TAGS.keys()), default="")
                 continue
             if tag not in TAGS:
                 print "%(red)s[TAG]%(end)s" % cosmetics.colors, \
-                    "Unkown tag '%s'" % tag
+                    "Unknown tag '%s'" % tag
                 exit(-1)
             dest.append(TAGS[tag])
 
@@ -884,7 +884,7 @@ By default, all tag are considered." % ", ".join(TAGS.keys()), default="")
         config.write(open(coveragerc, 'w'))
 
         # Add arguments to tests command line
-        testset.add_additionnal_args(["-m", "coverage", "run", "--rcfile",
+        testset.add_additional_args(["-m", "coverage", "run", "--rcfile",
                                       coveragerc, "-a"])
 
 
diff --git a/test/utils/testset.py b/test/utils/testset.py
index 5688b7e5..7b60e836 100644
--- a/test/utils/testset.py
+++ b/test/utils/testset.py
@@ -36,10 +36,10 @@ class MessageClose(Message):
     pass
 
 def worker(todo_queue, message_queue, init_args):
-    """Worker launched in parrallel
+    """Worker launched in parallel
     @todo_queue: task to do
     @message_queue: communication with Host
-    @init_args: additionnal arguments for command line
+    @init_args: additional arguments for command line
     """
 
     # Main loop
@@ -75,7 +75,7 @@ class TestSet(object):
     worker = staticmethod(worker)
 
     def __init__(self, base_dir):
-        """Initalise a test set
+        """Initialise a test set
         @base_dir: base directory for tests
         """
         # Parse arguments
@@ -203,7 +203,7 @@ class TestSet(object):
             except OSError:
                 print "Cleanning error: Unable to remove %s" % product
 
-    def add_additionnal_args(self, args):
+    def add_additional_args(self, args):
         """Add arguments to used on the test command line
         @args: list of str
         """