suite: normalize PPC's branch instructions having immediate operand

This commit is contained in:
Nguyen Anh Quynh 2014-11-11 12:51:57 +08:00
parent 278e7270d9
commit 4c36374e2d

View File

@ -225,8 +225,15 @@ def test_file(fname):
else:
mc_output = run_mc(archs[arch], code, mc_modes[(arch, mode)], mc_option)
mc_output2 = normalize_hex(mc_output)
if arch == 'CS_ARCH_MIPS':
mc_output2 = mc_output2.replace(' 0(', '(')
if arch == 'CS_ARCH_PPC':
mc_output2 = mc_output2.replace('.+', '')
mc_output2 = mc_output2.replace('.', '')
mc_output2 = mc_output2.replace(' 0(', '(')
mc_output2 = mc_output2.replace(' ', '')
mc_output2 = mc_output2.replace('opaque', '')