mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-28 07:50:39 +00:00
suite: normalize PPC's branch instructions having immediate operand
This commit is contained in:
parent
278e7270d9
commit
4c36374e2d
@ -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', '')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user