We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d89ce1b commit 68b668cCopy full SHA for 68b668c
suite/cstest/src/main.c
@@ -37,6 +37,7 @@ static single_dict arches[] = {
37
{"CS_MODE_MIPS2", CS_MODE_MIPS2},
38
{"CS_MODE_V9", CS_MODE_V9},
39
{"CS_MODE_QPX", CS_MODE_QPX},
40
+ {"CS_MODE_PS", CS_MODE_PS},
41
{"CS_MODE_M68K_000", CS_MODE_M68K_000},
42
{"CS_MODE_M68K_010", CS_MODE_M68K_010},
43
{"CS_MODE_M68K_020", CS_MODE_M68K_020},
@@ -84,6 +85,7 @@ static single_dict arches[] = {
84
85
{"CS_MODE_MIPS2", CS_OPT_MODE, CS_MODE_MIPS2},
86
{"CS_MODE_V9", CS_OPT_MODE, CS_MODE_V9},
87
{"CS_MODE_QPX", CS_OPT_MODE, CS_MODE_QPX},
88
+ {"CS_MODE_PS", CS_OPT_MODE, CS_MODE_PS},
89
{"CS_MODE_M68K_000", CS_OPT_MODE, CS_MODE_M68K_000},
90
{"CS_MODE_M68K_010", CS_OPT_MODE, CS_MODE_M68K_010},
91
{"CS_MODE_M68K_020", CS_OPT_MODE, CS_MODE_M68K_020},
suite/test_group_name.py
@@ -146,6 +146,7 @@ def run(self):
146
PPC_GRP_P8ALTIVEC: "p8altivec",
147
PPC_GRP_P8VECTOR: "p8vector",
148
PPC_GRP_QPX: "qpx",
149
+ PPC_GRP_PS: "ps",
150
}
151
152
sparc_dict = {
tests/test_ppc.c
@@ -115,6 +115,7 @@ static void test()
115
{
116
#define PPC_CODE "\x43\x20\x0c\x07\x41\x56\xff\x17\x80\x20\x00\x00\x80\x3f\x00\x00\x10\x43\x23\x0e\xd0\x44\x00\x80\x4c\x43\x22\x02\x2d\x03\x00\x80\x7c\x43\x20\x14\x7c\x43\x20\x93\x4f\x20\x00\x21\x4c\xc8\x00\x21\x40\x82\x00\x14"
117
#define PPC_CODE2 "\x10\x60\x2a\x10\x10\x64\x28\x88\x7c\x4a\x5d\x0f"
118
+#define PPC_CODE3 "\x10\x00\x1f\xec\xe0\x6d\x80\x04\xe4\x6d\x80\x04\x10\x60\x1c\x4c\x10\x60\x1c\x0c\xf0\x6d\x80\x04\xf4\x6d\x80\x04\x10\x60\x1c\x4e\x10\x60\x1c\x0e\x10\x60\x1a\x10\x10\x60\x1a\x11\x10\x63\x20\x2a\x10\x63\x20\x2b\x10\x83\x20\x40\x10\x83\x20\xC0\x10\x83\x20\x00\x10\x83\x20\x80\x10\x63\x20\x24\x10\x63\x20\x25\x10\x63\x29\x3a\x10\x63\x29\x3b\x10\x63\x29\x1c\x10\x63\x29\x1d\x10\x63\x29\x1e\x10\x63\x29\x1f\x10\x63\x24\x20\x10\x63\x24\x21\x10\x63\x24\x60\x10\x63\x24\x61\x10\x63\x24\xA0\x10\x63\x24\xA1\x10\x63\x24\xE0\x10\x63\x24\xE1\x10\x60\x20\x90\x10\x60\x20\x91\x10\x63\x29\x38\x10\x63\x29\x39\x10\x63\x01\x32\x10\x63\x01\x33\x10\x63\x01\x18\x10\x63\x01\x19\x10\x63\x01\x1A\x10\x63\x01\x1B\x10\x60\x19\x10\x10\x60\x19\x11\x10\x60\x18\x50\x10\x60\x18\x51\x10\x63\x29\x3e\x10\x63\x29\x3f\x10\x63\x29\x3c\x10\x63\x29\x3d\x10\x60\x18\x30\x10\x60\x18\x31\x10\x60\x18\x34\x10\x60\x18\x35\x10\x63\x29\x2e\x10\x63\x29\x2f\x10\x63\x20\x28\x10\x63\x20\x29\x10\x63\x29\x14\x10\x63\x29\x15\x10\x63\x29\x16\x10\x63\x29\x17"
119
120
struct platform platforms[] = {
121
@@ -131,6 +132,13 @@ static void test()
131
132
sizeof(PPC_CODE2) - 1,
133
"PPC-64 + QPX",
134
},
135
+ {
136
+ CS_ARCH_PPC,
137
+ (cs_mode)(CS_MODE_BIG_ENDIAN + CS_MODE_PS),
138
+ (unsigned char*)PPC_CODE3,
139
+ sizeof(PPC_CODE3) - 1,
140
+ "PPC + PS",
141
+ },
142
};
143
144
uint64_t address = 0x1000;
0 commit comments