From cc6cf65980aab52f0fcb6707bc3997a5825ad259 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sun, 1 Dec 2013 09:01:52 +0800 Subject: [PATCH] tests: add some test insn (commented) --- tests/test_arm.c | 1 + tests/test_x86.c | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/test_arm.c b/tests/test_arm.c index f9acdba25..ef05e05c5 100644 --- a/tests/test_arm.c +++ b/tests/test_arm.c @@ -145,6 +145,7 @@ static void test() #define ARM_CODE2 "\xd1\xe8\x00\xf0\xf0\x24\x04\x07\x1f\x3c\xf2\xc0\x00\x00\x4f\xf0\x00\x01\x46\x6c" //#define THUMB_CODE "\x70\x47" // bl 0x26 //#define THUMB_CODE "\x07\xdd" // ble 0x1c +//#define THUMB_CODE "\x01\x47" // bx r0 #define THUMB_CODE "\x70\x47\xeb\x46\x83\xb0\xc9\x68\x1f\xb1" #define THUMB_CODE2 "\x4f\xf0\x00\x01\xbd\xe8\x00\x88\xd1\xe8\x00\xf0" diff --git a/tests/test_x86.c b/tests/test_x86.c index a3b949abb..d1d8298d2 100644 --- a/tests/test_x86.c +++ b/tests/test_x86.c @@ -111,6 +111,7 @@ static void test() #define X86_CODE16 "\x8d\x4c\x32\x08\x01\xd8\x81\xc6\x34\x12\x00\x00\x05\x23\x01\x00\x00\x36\x8b\x84\x91\x23\x01\x00\x00\x41\x8d\x84\x39\x89\x67\x00\x00\x8d\x87\x89\x67\x00\x00\xb4\xc6" //#define X86_CODE16 "\x67\x00\x18" +//#define X86_CODE32 "\xd1\xe1" // shl ecx, 1 #define X86_CODE32 "\x8d\x4c\x32\x08\x01\xd8\x81\xc6\x34\x12\x00\x00\x05\x23\x01\x00\x00\x36\x8b\x84\x91\x23\x01\x00\x00\x41\x8d\x84\x39\x89\x67\x00\x00\x8d\x87\x89\x67\x00\x00\xb4\xc6" struct platform platforms[] = {