diff --git a/suite/regress/x86_nasm_directives.py b/suite/regress/x86_nasm_directives.py index 4c3c6ea11ee325775fd2861f628b14cabf9d59f7..54b5ccb4b8b0c49f358fdf6f37e5ff1ca52d4dd1 100755 --- a/suite/regress/x86_nasm_directives.py +++ b/suite/regress/x86_nasm_directives.py @@ -28,5 +28,9 @@ class TestX86(regress.RegressTest): # Assert the result self.assertEqual(encoding, [ 0x01, 0xd8, 0x66, 0x01, 0xd8 ]) + encoding, count = ks.asm(b"[Bits 32]\n add eax, ebx\n[bits 16]\nadd eax, ebx") + # Assert the result + self.assertEqual(encoding, [ 0x01, 0xd8, 0x66, 0x01, 0xd8 ]) + if __name__ == '__main__': regress.main()