diff options
Diffstat (limited to 'plugins/arm/v7/simd.c')
-rw-r--r-- | plugins/arm/v7/simd.c | 386 |
1 files changed, 193 insertions, 193 deletions
diff --git a/plugins/arm/v7/simd.c b/plugins/arm/v7/simd.c index 79ddcf2..a565011 100644 --- a/plugins/arm/v7/simd.c +++ b/plugins/arm/v7/simd.c @@ -139,7 +139,7 @@ GArchInstruction *process_armv7_simd_advanced_simd_data_processing_instructions( result = process_armv7_simd_two_registers_and_a_scalar(raw, arm); else if (u == b0 && (a & b10110) == b10110 && (c & b0001) == b0000) - result = armv7_read_simd_instr_vext(raw, arm); + result = armv7_read_simd_instr_a8_vext(raw, arm); else if (u == b1 && (a & b10110) == b10110) { @@ -147,10 +147,10 @@ GArchInstruction *process_armv7_simd_advanced_simd_data_processing_instructions( result = process_armv7_simd_two_registers_miscellaneous(raw, arm); else if ((b & b1100) == b1000 && (c & b0001) == b0000) - result = armv7_read_simd_instr_vtbl_vtbx(raw, arm); + result = armv7_read_simd_instr_a8_vtbl_vtbx(raw, arm); else if (b == b1100 && (c & b1001) == b0000) - result = armv7_read_simd_instr_vdup_scalar(raw, arm); + result = armv7_read_simd_instr_a8_vdup_scalar(raw, arm); } @@ -214,17 +214,17 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u if (a == b0000) { if (b == b0) - result = armv7_read_simd_instr_vhadd_vhsub(raw, arm); + result = armv7_read_simd_instr_a8_vhadd_vhsub(raw, arm); else/* if (b == b1)*/ - result = armv7_read_simd_instr_vqadd(raw, arm); + result = armv7_read_simd_instr_a8_vqadd(raw, arm); } else if (a == b0001) { if (b == b0) - result = armv7_read_simd_instr_vrhadd(raw, arm); + result = armv7_read_simd_instr_a8_vrhadd(raw, arm); else/* if (b == b1)*/ { @@ -232,20 +232,20 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u switch (c) { case b00: - result = armv7_read_simd_instr_vand_register(raw, arm); + result = armv7_read_simd_instr_a8_vand_register(raw, arm); break; case b01: - result = armv7_read_simd_instr_vbic_register(raw, arm); + result = armv7_read_simd_instr_a8_vbic_register(raw, arm); break; case b10: /* Cf. vmov_register aussi */ - result = armv7_read_simd_instr_vorr_register(raw, arm); + result = armv7_read_simd_instr_a8_vorr_register(raw, arm); break; case b11: - result = armv7_read_simd_instr_vorn_register(raw, arm); + result = armv7_read_simd_instr_a8_vorn_register(raw, arm); break; } @@ -254,19 +254,19 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u switch (c) { case b00: - result = armv7_read_simd_instr_veor(raw, arm); + result = armv7_read_simd_instr_a8_veor(raw, arm); break; case b01: - result = armv7_read_simd_instr_vbif_vbit_vbsl(raw, arm); + result = armv7_read_simd_instr_a8_vbif_vbit_vbsl(raw, arm); break; case b10: - result = armv7_read_simd_instr_vbif_vbit_vbsl(raw, arm); + result = armv7_read_simd_instr_a8_vbif_vbit_vbsl(raw, arm); break; case b11: - result = armv7_read_simd_instr_vbif_vbit_vbsl(raw, arm); + result = armv7_read_simd_instr_a8_vbif_vbit_vbsl(raw, arm); break; } @@ -278,53 +278,53 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u else if (a == b0010) { if (b == b0) - result = armv7_read_simd_instr_vhadd_vhsub(raw, arm); + result = armv7_read_simd_instr_a8_vhadd_vhsub(raw, arm); else/* if (b == b1)*/ - result = armv7_read_simd_instr_vqsub(raw, arm); + result = armv7_read_simd_instr_a8_vqsub(raw, arm); } else if (a == b0011) { if (b == b0) - result = armv7_read_simd_instr_vcgt_register(raw, arm); + result = armv7_read_simd_instr_a8_vcgt_register(raw, arm); else/* if (b == b1)*/ - result = armv7_read_simd_instr_vcge_register(raw, arm); + result = armv7_read_simd_instr_a8_vcge_register(raw, arm); } else if (a == b0100) { if (b == b0) - result = armv7_read_simd_instr_vshl_register(raw, arm); + result = armv7_read_simd_instr_a8_vshl_register(raw, arm); else/* if (b == b1)*/ - result = armv7_read_simd_instr_vqshl_register(raw, arm); + result = armv7_read_simd_instr_a8_vqshl_register(raw, arm); } else if (a == b0101) { if (b == b0) - result = armv7_read_simd_instr_vrshl(raw, arm); + result = armv7_read_simd_instr_a8_vrshl(raw, arm); else/* if (b == b1)*/ - result = armv7_read_simd_instr_vqrshl(raw, arm); + result = armv7_read_simd_instr_a8_vqrshl(raw, arm); } else if (a == b0110) - result = armv7_read_simd_instr_vmax_vmin_integer(raw, arm); + result = armv7_read_simd_instr_a8_vmax_vmin_integer(raw, arm); else if (a == b0111) { if (b == b0) - result = armv7_read_simd_instr_vabd_vabdl_integer(raw, arm); + result = armv7_read_simd_instr_a8_vabd_vabdl_integer(raw, arm); else/* if (b == b1)*/ - result = armv7_read_simd_instr_vaba_vabal(raw, arm); + result = armv7_read_simd_instr_a8_vaba_vabal(raw, arm); } @@ -333,20 +333,20 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u if (b == b0) { if (u == b0) - result = armv7_read_simd_instr_vadd_integer(raw, arm); + result = armv7_read_simd_instr_a8_vadd_integer(raw, arm); else/* if (u == b1)*/ - result = armv7_read_simd_instr_vsub_integer(raw, arm); + result = armv7_read_simd_instr_a8_vsub_integer(raw, arm); } else/* if (b == b1)*/ { if (u == b0) - result = armv7_read_simd_instr_vtst(raw, arm); + result = armv7_read_simd_instr_a8_vtst(raw, arm); else/* if (u == b1)*/ - result = armv7_read_simd_instr_vceq_register(raw, arm); + result = armv7_read_simd_instr_a8_vceq_register(raw, arm); } @@ -355,32 +355,32 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u else if (a == b1001) { if (b == b0) - result = armv7_read_simd_instr_vmla_vmlal_vmls_vmlsl_integer(raw, arm); + result = armv7_read_simd_instr_a8_vmla_vmlal_vmls_vmlsl_integer(raw, arm); else/* if (b == b1)*/ - result = armv7_read_simd_instr_vmul_vmull_integer_and_polynomial(raw, arm); + result = armv7_read_simd_instr_a8_vmul_vmull_integer_and_polynomial(raw, arm); } else if (a == b1010) - result = armv7_read_simd_instr_vpmax_vpmin_integer(raw, arm); + result = armv7_read_simd_instr_a8_vpmax_vpmin_integer(raw, arm); else if (a == b1011) { if (b == b0) { if (u == b0) - result = armv7_read_simd_instr_vqdmulh(raw, arm); + result = armv7_read_simd_instr_a8_vqdmulh(raw, arm); else/* if (u == b1)*/ - result = armv7_read_simd_instr_vqrdmulh(raw, arm); + result = armv7_read_simd_instr_a8_vqrdmulh(raw, arm); } else/* if (b == b1)*/ { if (u == b0) - result = armv7_read_simd_instr_vpadd_integer(raw, arm); + result = armv7_read_simd_instr_a8_vpadd_integer(raw, arm); } @@ -389,7 +389,7 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u else if (a == b1100) { if (b == b1 && u == b0) - result = armv7_read_simd_instr_vfma_vfms(raw, arm); + result = armv7_read_simd_instr_a8_vfma_vfms(raw, arm); } @@ -400,20 +400,20 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u if (u == b0) { if ((c & b10) == b00) - result = armv7_read_simd_instr_vadd_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vadd_floating_point(raw, arm); else/* if ((c & b10) == b10)*/ - result = armv7_read_simd_instr_vsub_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vsub_floating_point(raw, arm); } else/* if (u == b1)*/ { if ((c & b10) == b00) - result = armv7_read_simd_instr_vpadd_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vpadd_floating_point(raw, arm); else/* if ((c & b10) == b10)*/ - result = armv7_read_simd_instr_vabd_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vabd_floating_point(raw, arm); } @@ -422,12 +422,12 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u else/* if (b == b1)*/ { if (u == b0) - result = armv7_read_simd_instr_vmla_vmls_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vmla_vmls_floating_point(raw, arm); else/* if (u == b1)*/ { if ((c & b10) == b00) - result = armv7_read_simd_instr_vmul_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vmul_floating_point(raw, arm); } @@ -442,17 +442,17 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u if (u == b0) { if ((c & b10) == b00) - result = armv7_read_simd_instr_vceq_register(raw, arm); + result = armv7_read_simd_instr_a8_vceq_register(raw, arm); } else/* if (u == b1)*/ { if ((c & b10) == b00) - result = armv7_read_simd_instr_vcge_register(raw, arm); + result = armv7_read_simd_instr_a8_vcge_register(raw, arm); else/* if ((c & b10) == b10)*/ - result = armv7_read_simd_instr_vcgt_register(raw, arm); + result = armv7_read_simd_instr_a8_vcgt_register(raw, arm); } @@ -461,7 +461,7 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u else/* if (b == b1)*/ { if (u == b1) - result = armv7_read_simd_instr_vacge_vacgt_vacle_vaclt(raw, arm); + result = armv7_read_simd_instr_a8_vacge_vacgt_vacle_vaclt(raw, arm); } @@ -472,10 +472,10 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u if (b == b0) { if (u == b0) - result = armv7_read_simd_instr_vmax_vmin_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vmax_vmin_floating_point(raw, arm); else/* if (u == b1)*/ - result = armv7_read_simd_instr_vpmax_vpmin_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vpmax_vpmin_floating_point(raw, arm); } @@ -484,10 +484,10 @@ static GArchInstruction *process_armv7_simd_three_registers_of_the_same_length(u if (u == b0) { if ((c & b10) == b00) - result = armv7_read_simd_instr_vrecps(raw, arm); + result = armv7_read_simd_instr_a8_vrecps(raw, arm); else/* if ((c & b10) == b10)*/ - result = armv7_read_simd_instr_vrsqrts(raw, arm); + result = armv7_read_simd_instr_a8_vrsqrts(raw, arm); } @@ -547,59 +547,59 @@ static GArchInstruction *process_armv7_simd_three_registers_of_different_lengths } if ((a & b1110) == b0000) - result = armv7_read_simd_instr_vaddl_vaddw(raw, arm); + result = armv7_read_simd_instr_a8_vaddl_vaddw(raw, arm); else if ((a & b1110) == b0010) - result = armv7_read_simd_instr_vsubl_vsubw(raw, arm); + result = armv7_read_simd_instr_a8_vsubl_vsubw(raw, arm); else if (a == b0100) { if (u == b0) - result = armv7_read_simd_instr_vaddhn(raw, arm); + result = armv7_read_simd_instr_a8_vaddhn(raw, arm); else/* if (u == b1)*/ - result = armv7_read_simd_instr_vraddhn(raw, arm); + result = armv7_read_simd_instr_a8_vraddhn(raw, arm); } else if (a == b0101) - result = armv7_read_simd_instr_vaba_vabal(raw, arm); + result = armv7_read_simd_instr_a8_vaba_vabal(raw, arm); else if (a == b0110) { if (u == b0) - result = armv7_read_simd_instr_vsubhn(raw, arm); + result = armv7_read_simd_instr_a8_vsubhn(raw, arm); else/* if (u == b1)*/ - result = armv7_read_simd_instr_vrsubhn(raw, arm); + result = armv7_read_simd_instr_a8_vrsubhn(raw, arm); } else if (a == b0111) - result = armv7_read_simd_instr_vabd_vabdl_integer(raw, arm); + result = armv7_read_simd_instr_a8_vabd_vabdl_integer(raw, arm); else if ((a & b1101) == b1000) - result = armv7_read_simd_instr_vmla_vmlal_vmls_vmlsl_integer(raw, arm); + result = armv7_read_simd_instr_a8_vmla_vmlal_vmls_vmlsl_integer(raw, arm); else if ((a & b1101) == b1001) { if (u == b0) - result = armv7_read_simd_instr_vqdmlal_vqdmlsl(raw, arm); + result = armv7_read_simd_instr_a8_vqdmlal_vqdmlsl(raw, arm); } else if (a == b1100) - result = armv7_read_simd_instr_vmul_vmull_integer_and_polynomial(raw, arm); + result = armv7_read_simd_instr_a8_vmul_vmull_integer_and_polynomial(raw, arm); else if (a == b1101) { if (u == b0) - result = armv7_read_simd_instr_vqdmull(raw, arm); + result = armv7_read_simd_instr_a8_vqdmull(raw, arm); } else if (a == b1110) - result = armv7_read_simd_instr_vmul_vmull_integer_and_polynomial(raw, arm); + result = armv7_read_simd_instr_a8_vmul_vmull_integer_and_polynomial(raw, arm); return result; @@ -653,28 +653,28 @@ static GArchInstruction *process_armv7_simd_two_registers_and_a_scalar(uint32_t } if ((a & b1010) == b0000) - result = armv7_read_simd_instr_vmla_vmlal_vmls_vmlsl_by_scalar(raw, arm); + result = armv7_read_simd_instr_a8_vmla_vmlal_vmls_vmlsl_by_scalar(raw, arm); else if ((a & b1010) == b0010) - result = armv7_read_simd_instr_vmla_vmlal_vmls_vmlsl_by_scalar(raw, arm); + result = armv7_read_simd_instr_a8_vmla_vmlal_vmls_vmlsl_by_scalar(raw, arm); else if ((a & b1011) == b0011 && u == b0) - result = armv7_read_simd_instr_vqdmlal_vqdmlsl(raw, arm); + result = armv7_read_simd_instr_a8_vqdmlal_vqdmlsl(raw, arm); else if ((a & b1110) == b1000) - result = armv7_read_simd_instr_vmul_vmull_by_scalar(raw, arm); + result = armv7_read_simd_instr_a8_vmul_vmull_by_scalar(raw, arm); else if (a == b1010) - result = armv7_read_simd_instr_vmul_vmull_by_scalar(raw, arm); + result = armv7_read_simd_instr_a8_vmul_vmull_by_scalar(raw, arm); else if (a == b1011 && u == b0) - result = armv7_read_simd_instr_vqdmull(raw, arm); + result = armv7_read_simd_instr_a8_vqdmull(raw, arm); else if (a == b1100) - result = armv7_read_simd_instr_vqdmulh(raw, arm); + result = armv7_read_simd_instr_a8_vqdmulh(raw, arm); else if (a == b1101) - result = armv7_read_simd_instr_vqrdmulh(raw, arm); + result = armv7_read_simd_instr_a8_vqrdmulh(raw, arm); return result; @@ -734,51 +734,51 @@ static GArchInstruction *process_armv7_simd_two_registers_and_a_shift_amount(uin } if (a == b0000) - result = armv7_read_simd_instr_vshr(raw, arm); + result = armv7_read_simd_instr_a8_vshr(raw, arm); else if (a == b0001) - result = armv7_read_simd_instr_vsra(raw, arm); + result = armv7_read_simd_instr_a8_vsra(raw, arm); else if (a == b0010) - result = armv7_read_simd_instr_vrshr(raw, arm); + result = armv7_read_simd_instr_a8_vrshr(raw, arm); else if (a == b0011) - result = armv7_read_simd_instr_vrsra(raw, arm); + result = armv7_read_simd_instr_a8_vrsra(raw, arm); else if (a == b0100 && u == b1) - result = armv7_read_simd_instr_vsri(raw, arm); + result = armv7_read_simd_instr_a8_vsri(raw, arm); else if (a == b0101) { if (u == b0) - result = armv7_read_simd_instr_vshl_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vshl_immediate(raw, arm); else/* if (u == b1)*/ - result = armv7_read_simd_instr_vsli(raw, arm); + result = armv7_read_simd_instr_a8_vsli(raw, arm); } else if ((a & b1110) == b0110) - result = armv7_read_simd_instr_vqshl_vqshlu_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vqshl_vqshlu_immediate(raw, arm); else if (a == b1000) { if (u == b0) { if (b == b0 && l == b0) - result = armv7_read_simd_instr_vshrn(raw, arm); + result = armv7_read_simd_instr_a8_vshrn(raw, arm); else if (b == b1 && l == b0) - result = armv7_read_simd_instr_vrshrn(raw, arm); + result = armv7_read_simd_instr_a8_vrshrn(raw, arm); } else/* if (u == b1)*/ { if (b == b0 && l == b0) - result = armv7_read_simd_instr_vqshrn_vqshrun(raw, arm); + result = armv7_read_simd_instr_a8_vqshrn_vqshrun(raw, arm); else if (b == b1 && l == b0) - result = armv7_read_simd_instr_vqrshrn_vqrshrun(raw, arm); + result = armv7_read_simd_instr_a8_vqrshrn_vqrshrun(raw, arm); } @@ -787,25 +787,25 @@ static GArchInstruction *process_armv7_simd_two_registers_and_a_shift_amount(uin else if (a == b1001) { if (b == b0 && l == b0) - result = armv7_read_simd_instr_vqshrn_vqshrun(raw, arm); + result = armv7_read_simd_instr_a8_vqshrn_vqshrun(raw, arm); else if (b == b1 && l == b0) - result = armv7_read_simd_instr_vqrshrn_vqrshrun(raw, arm); + result = armv7_read_simd_instr_a8_vqrshrn_vqrshrun(raw, arm); } else if (a == b1010 && b == b0 && l == b0) { - result = armv7_read_simd_instr_vshll(raw, arm); + result = armv7_read_simd_instr_a8_vshll(raw, arm); /* ??? */ if (result == NULL) - result = armv7_read_simd_instr_vmovl(raw, arm); + result = armv7_read_simd_instr_a8_vmovl(raw, arm); } else if ((a & b1110) == b1110 && l == b0) - result = armv7_read_simd_instr_vcvt_between_floating_point_and_fixed_point_advanced_simd(raw, arm); + result = armv7_read_simd_instr_a8_vcvt_between_floating_point_and_fixed_point_advanced_simd(raw, arm); return result; @@ -853,62 +853,62 @@ static GArchInstruction *process_armv7_simd_two_registers_miscellaneous(uint32_t if (a == b00) { if ((b & b11110) == b00000) - result = armv7_read_simd_instr_vrev16_vrev32_vrev64(raw, arm); + result = armv7_read_simd_instr_a8_vrev16_vrev32_vrev64(raw, arm); else if ((b & b11110) == b00010) - result = armv7_read_simd_instr_vrev16_vrev32_vrev64(raw, arm); + result = armv7_read_simd_instr_a8_vrev16_vrev32_vrev64(raw, arm); else if ((b & b11110) == b00100) - result = armv7_read_simd_instr_vrev16_vrev32_vrev64(raw, arm); + result = armv7_read_simd_instr_a8_vrev16_vrev32_vrev64(raw, arm); else if ((b & b11100) == b01000) - result = armv7_read_simd_instr_vpaddl(raw, arm); + result = armv7_read_simd_instr_a8_vpaddl(raw, arm); else if ((b & b11110) == b10000) - result = armv7_read_simd_instr_vcls(raw, arm); + result = armv7_read_simd_instr_a8_vcls(raw, arm); else if ((b & b11110) == b10010) - result = armv7_read_simd_instr_vclz(raw, arm); + result = armv7_read_simd_instr_a8_vclz(raw, arm); else if ((b & b11110) == b10100) - result = armv7_read_simd_instr_vcnt(raw, arm); + result = armv7_read_simd_instr_a8_vcnt(raw, arm); else if ((b & b11110) == b10110) - result = armv7_read_simd_instr_vmvn_register(raw, arm); + result = armv7_read_simd_instr_a8_vmvn_register(raw, arm); else if ((b & b11100) == b11000) - result = armv7_read_simd_instr_vpadal(raw, arm); + result = armv7_read_simd_instr_a8_vpadal(raw, arm); else if ((b & b11110) == b11100) - result = armv7_read_simd_instr_vqabs(raw, arm); + result = armv7_read_simd_instr_a8_vqabs(raw, arm); else if ((b & b11110) == b11110) - result = armv7_read_simd_instr_vqneg(raw, arm); + result = armv7_read_simd_instr_a8_vqneg(raw, arm); } else if (a == b01) { if ((b & b01110) == b00000) - result = armv7_read_simd_instr_vcgt_immediate_0(raw, arm); + result = armv7_read_simd_instr_a8_vcgt_immediate_0(raw, arm); else if ((b & b01110) == b00010) - result = armv7_read_simd_instr_vcge_immediate_0(raw, arm); + result = armv7_read_simd_instr_a8_vcge_immediate_0(raw, arm); else if ((b & b01110) == b00100) - result = armv7_read_simd_instr_vceq_immediate_0(raw, arm); + result = armv7_read_simd_instr_a8_vceq_immediate_0(raw, arm); else if ((b & b01110) == b00110) - result = armv7_read_simd_instr_vcle_immediate_0(raw, arm); + result = armv7_read_simd_instr_a8_vcle_immediate_0(raw, arm); else if ((b & b01110) == b01000) - result = armv7_read_simd_instr_vclt_immediate_0(raw, arm); + result = armv7_read_simd_instr_a8_vclt_immediate_0(raw, arm); else if ((b & b01110) == b01100) - result = armv7_read_simd_instr_vabs(raw, arm); + result = armv7_read_simd_instr_a8_vabs(raw, arm); else if ((b & b01110) == b01110) - result = armv7_read_simd_instr_vneg(raw, arm); + result = armv7_read_simd_instr_a8_vneg(raw, arm); } @@ -958,41 +958,41 @@ static GArchInstruction *process_armv7_simd_one_register_and_a_modified_immediat if (op == b0) { if ((cmode & b1001) == b0000) - result = armv7_read_simd_instr_vmov_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vmov_immediate(raw, arm); else if ((cmode & b1001) == b0001) - result = armv7_read_simd_instr_vorr_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vorr_immediate(raw, arm); else if ((cmode & b1101) == b1000) - result = armv7_read_simd_instr_vmov_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vmov_immediate(raw, arm); else if ((cmode & b1101) == b1001) - result = armv7_read_simd_instr_vorr_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vorr_immediate(raw, arm); else if ((cmode & b1100) == b1100) - result = armv7_read_simd_instr_vmov_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vmov_immediate(raw, arm); } else/* if (op == b1)*/ { if ((cmode & b1001) == b0000) - result = armv7_read_simd_instr_vmvn_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vmvn_immediate(raw, arm); else if ((cmode & b1001) == b0001) - result = armv7_read_simd_instr_vbic_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vbic_immediate(raw, arm); else if ((cmode & b1101) == b1000) - result = armv7_read_simd_instr_vmvn_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vmvn_immediate(raw, arm); else if ((cmode & b1101) == b1001) - result = armv7_read_simd_instr_vbic_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vbic_immediate(raw, arm); else if ((cmode & b1110) == b1100) - result = armv7_read_simd_instr_vmvn_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vmvn_immediate(raw, arm); else if (cmode == b1110) - result = armv7_read_simd_instr_vmov_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vmov_immediate(raw, arm); else if (cmode == b1111) result = g_undef_instruction_new(IBS_UNDEFINED); @@ -1046,89 +1046,89 @@ GArchInstruction *process_armv7_simd_floating_point_data_processing_instructions if ((opc1 & b1011) == b0000) - result = armv7_read_simd_instr_vmla_vmls_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vmla_vmls_floating_point(raw, arm); else if ((opc1 & b1011) == b0001) - result = armv7_read_simd_instr_vnmla_vnmls_vnmul(raw, arm); + result = armv7_read_simd_instr_a8_vnmla_vnmls_vnmul(raw, arm); else if ((opc1 & b1011) == b0010) { if ((opc3 & b01) == b01) - result = armv7_read_simd_instr_vnmla_vnmls_vnmul(raw, arm); + result = armv7_read_simd_instr_a8_vnmla_vnmls_vnmul(raw, arm); else/* if ((opc3 & b01) == b00)*/ - result = armv7_read_simd_instr_vmul_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vmul_floating_point(raw, arm); } else if ((opc1 & b1011) == b0011) { if ((opc3 & b01) == b00) - result = armv7_read_simd_instr_vadd_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vadd_floating_point(raw, arm); else/* if ((opc3 & b01) == b01)*/ - result = armv7_read_simd_instr_vsub_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vsub_floating_point(raw, arm); } else if ((opc1 & b1011) == b1000) { if ((opc3 & b01) == b00) - result = armv7_read_simd_instr_vdiv(raw, arm); + result = armv7_read_simd_instr_a8_vdiv(raw, arm); } else if ((opc1 & b1011) == b1001) - result = armv7_read_simd_instr_vfnma_vfnms(raw, arm); + result = armv7_read_simd_instr_a8_vfnma_vfnms(raw, arm); else if ((opc1 & b1011) == b1010) - result = armv7_read_simd_instr_vfma_vfms(raw, arm); + result = armv7_read_simd_instr_a8_vfma_vfms(raw, arm); else if ((opc1 & b1011) == b1011) { if ((opc3 & b01) == b00) - result = armv7_read_simd_instr_vmov_immediate(raw, arm); + result = armv7_read_simd_instr_a8_vmov_immediate(raw, arm); else if (opc2 == b0000) { if (opc3 == b01) - result = armv7_read_simd_instr_vmov_register(raw, arm); + result = armv7_read_simd_instr_a8_vmov_register(raw, arm); else if (opc3 == b11) - result = armv7_read_simd_instr_vabs(raw, arm); + result = armv7_read_simd_instr_a8_vabs(raw, arm); } else if (opc2 == b0001) { if (opc3 == b01) - result = armv7_read_simd_instr_vneg(raw, arm); + result = armv7_read_simd_instr_a8_vneg(raw, arm); else if (opc3 == b11) - result = armv7_read_simd_instr_vsqrt(raw, arm); + result = armv7_read_simd_instr_a8_vsqrt(raw, arm); } else if ((opc2 & b1110) == b0010 && (opc3 & b01) == b01) - result = armv7_read_simd_instr_vcvtb_vcvtt(raw, arm); + result = armv7_read_simd_instr_a8_vcvtb_vcvtt(raw, arm); else if ((opc2 & b1110) == b0100 && (opc3 & b01) == b01) - result = armv7_read_simd_instr_vcmp_vcmpe(raw, arm); + result = armv7_read_simd_instr_a8_vcmp_vcmpe(raw, arm); else if (opc2 == b0111 && opc3 == b11) - result = armv7_read_simd_instr_vcvt_between_double_precision_and_single_precision(raw, arm); + result = armv7_read_simd_instr_a8_vcvt_between_double_precision_and_single_precision(raw, arm); else if (opc2 == b1000 && (opc3 & b01) == b01) - result = armv7_read_simd_instr_vcvt_vcvtr_between_floating_point_and_integer_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vcvt_vcvtr_between_floating_point_and_integer_floating_point(raw, arm); else if ((opc2 & b1110) == b1010 && (opc3 & b01) == b01) - result = armv7_read_simd_instr_vcvt_between_floating_point_and_fixed_point_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vcvt_between_floating_point_and_fixed_point_floating_point(raw, arm); else if ((opc2 & b1110) == b1100 && (opc3 & b01) == b01) - result = armv7_read_simd_instr_vcvt_vcvtr_between_floating_point_and_integer_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vcvt_vcvtr_between_floating_point_and_integer_floating_point(raw, arm); else if ((opc2 & b1110) == b1110 && (opc3 & b01) == b01) - result = armv7_read_simd_instr_vcvt_between_floating_point_and_fixed_point_floating_point(raw, arm); + result = armv7_read_simd_instr_a8_vcvt_between_floating_point_and_fixed_point_floating_point(raw, arm); } @@ -1179,42 +1179,42 @@ GArchInstruction *process_armv7_simd_extension_register_load_store_instructions( result = process_armv7_simd_64_bit_transfers_between_arm_core_and_extension_registers(raw, arm); else if ((opcode & b11011) == b01000) - result = armv7_read_simd_instr_vstm(raw, arm); + result = armv7_read_simd_instr_a8_vstm(raw, arm); else if ((opcode & b11011) == b01010) - result = armv7_read_simd_instr_vstm(raw, arm); + result = armv7_read_simd_instr_a8_vstm(raw, arm); else if ((opcode & b10011) == b10000) - result = armv7_read_simd_instr_vstr(raw, arm); + result = armv7_read_simd_instr_a8_vstr(raw, arm); else if ((opcode & b11011) == b10010) { if (rn != b1101) - result = armv7_read_simd_instr_vstm(raw, arm); + result = armv7_read_simd_instr_a8_vstm(raw, arm); else/* if (rn == b1101)*/ - result = armv7_read_simd_instr_vpush(raw, arm); + result = armv7_read_simd_instr_a8_vpush(raw, arm); } else if ((opcode & b11011) == b01001) - result = armv7_read_simd_instr_vldm(raw, arm); + result = armv7_read_simd_instr_a8_vldm(raw, arm); else if ((opcode & b11011) == b01011) { if (rn != 1101) - result = armv7_read_simd_instr_vldm(raw, arm); + result = armv7_read_simd_instr_a8_vldm(raw, arm); else/* if (rn == 1101)*/ - result = armv7_read_simd_instr_vpop(raw, arm); + result = armv7_read_simd_instr_a8_vpop(raw, arm); } else if ((opcode & b10011) == b10001) - result = armv7_read_simd_instr_vldr(raw, arm); + result = armv7_read_simd_instr_a8_vldr(raw, arm); else if ((opcode & b11011) == b10011) - result = armv7_read_simd_instr_vldm(raw, arm); + result = armv7_read_simd_instr_a8_vldm(raw, arm); return result; @@ -1266,53 +1266,53 @@ GArchInstruction *process_armv7_simd_advanced_simd_element_or_structure_load_sto if (a == b0) { if (b == b0010) - result = armv7_read_simd_instr_vst1_multiple_single_elements(raw, arm); + result = armv7_read_simd_instr_a8_vst1_multiple_single_elements(raw, arm); else if ((b & b1110) == b0110) - result = armv7_read_simd_instr_vst1_multiple_single_elements(raw, arm); + result = armv7_read_simd_instr_a8_vst1_multiple_single_elements(raw, arm); else if (b == b1010) - result = armv7_read_simd_instr_vst1_multiple_single_elements(raw, arm); + result = armv7_read_simd_instr_a8_vst1_multiple_single_elements(raw, arm); else if (b == b0011) - result = armv7_read_simd_instr_vst2_multiple_2_element_structures(raw, arm); + result = armv7_read_simd_instr_a8_vst2_multiple_2_element_structures(raw, arm); else if ((b & b1110) == b1000) - result = armv7_read_simd_instr_vst2_multiple_2_element_structures(raw, arm); + result = armv7_read_simd_instr_a8_vst2_multiple_2_element_structures(raw, arm); else if ((b & b1110) == b0100) - result = armv7_read_simd_instr_vst3_multiple_3_element_structures(raw, arm); + result = armv7_read_simd_instr_a8_vst3_multiple_3_element_structures(raw, arm); else if ((b & b1110) == b0000) - result = armv7_read_simd_instr_vst4_multiple_4_element_structures(raw, arm); + result = armv7_read_simd_instr_a8_vst4_multiple_4_element_structures(raw, arm); } else/* if (a == b1)*/ { if ((b & b1011) == b0000) - result = armv7_read_simd_instr_vst1_single_element_from_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vst1_single_element_from_one_lane(raw, arm); else if (b == b1000) - result = armv7_read_simd_instr_vst1_single_element_from_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vst1_single_element_from_one_lane(raw, arm); else if ((b & b1011) == b0001) - result = armv7_read_simd_instr_vst2_single_2_element_structure_from_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vst2_single_2_element_structure_from_one_lane(raw, arm); else if (b == b1001) - result = armv7_read_simd_instr_vst2_single_2_element_structure_from_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vst2_single_2_element_structure_from_one_lane(raw, arm); else if ((b & b1011) == b0010) - result = armv7_read_simd_instr_vst3_single_3_element_structure_from_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vst3_single_3_element_structure_from_one_lane(raw, arm); else if (b == b1010) - result = armv7_read_simd_instr_vst3_single_3_element_structure_from_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vst3_single_3_element_structure_from_one_lane(raw, arm); else if ((b & b1011) == b0011) - result = armv7_read_simd_instr_vst4_single_4_element_structure_from_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vst4_single_4_element_structure_from_one_lane(raw, arm); else if (b == b1011) - result = armv7_read_simd_instr_vst4_single_4_element_structure_from_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vst4_single_4_element_structure_from_one_lane(raw, arm); } @@ -1323,65 +1323,65 @@ GArchInstruction *process_armv7_simd_advanced_simd_element_or_structure_load_sto if (a == b0) { if (b == b0010) - result = armv7_read_simd_instr_vld1_multiple_single_elements(raw, arm); + result = armv7_read_simd_instr_a8_vld1_multiple_single_elements(raw, arm); else if ((b & b1110) == b0110) - result = armv7_read_simd_instr_vld1_multiple_single_elements(raw, arm); + result = armv7_read_simd_instr_a8_vld1_multiple_single_elements(raw, arm); else if (b == b1010) - result = armv7_read_simd_instr_vld1_multiple_single_elements(raw, arm); + result = armv7_read_simd_instr_a8_vld1_multiple_single_elements(raw, arm); else if (b == b0011) - result = armv7_read_simd_instr_vld2_multiple_2_element_structures(raw, arm); + result = armv7_read_simd_instr_a8_vld2_multiple_2_element_structures(raw, arm); else if ((b & b1110) == b1000) - result = armv7_read_simd_instr_vld2_multiple_2_element_structures(raw, arm); + result = armv7_read_simd_instr_a8_vld2_multiple_2_element_structures(raw, arm); else if ((b & b1110) == b0100) - result = armv7_read_simd_instr_vld3_multiple_3_element_structures(raw, arm); + result = armv7_read_simd_instr_a8_vld3_multiple_3_element_structures(raw, arm); else if ((b & b1110) == b0000) - result = armv7_read_simd_instr_vld4_multiple_4_element_structures(raw, arm); + result = armv7_read_simd_instr_a8_vld4_multiple_4_element_structures(raw, arm); } else/* if (a == b1)*/ { if ((b & b1011) == b0000) - result = armv7_read_simd_instr_vld1_single_element_to_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vld1_single_element_to_one_lane(raw, arm); else if (b == b1000) - result = armv7_read_simd_instr_vld1_single_element_to_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vld1_single_element_to_one_lane(raw, arm); else if (b == b1100) - result = armv7_read_simd_instr_vld1_single_element_to_all_lanes(raw, arm); + result = armv7_read_simd_instr_a8_vld1_single_element_to_all_lanes(raw, arm); else if ((b & b1011) == b0001) - result = armv7_read_simd_instr_vld2_single_2_element_structure_to_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vld2_single_2_element_structure_to_one_lane(raw, arm); else if (b == b1001) - result = armv7_read_simd_instr_vld2_single_2_element_structure_to_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vld2_single_2_element_structure_to_one_lane(raw, arm); else if (b == b1101) - result = armv7_read_simd_instr_vld2_single_2_element_structure_to_all_lanes(raw, arm); + result = armv7_read_simd_instr_a8_vld2_single_2_element_structure_to_all_lanes(raw, arm); else if ((b & b1011) == b0010) - result = armv7_read_simd_instr_vld3_single_3_element_structure_to_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vld3_single_3_element_structure_to_one_lane(raw, arm); else if (b == b1010) - result = armv7_read_simd_instr_vld3_single_3_element_structure_to_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vld3_single_3_element_structure_to_one_lane(raw, arm); else if (b == b1110) - result = armv7_read_simd_instr_vld3_single_3_element_structure_to_all_lanes(raw, arm); + result = armv7_read_simd_instr_a8_vld3_single_3_element_structure_to_all_lanes(raw, arm); else if ((b & b1011) == b0011) - result = armv7_read_simd_instr_vld4_single_4_element_structure_to_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vld4_single_4_element_structure_to_one_lane(raw, arm); else if (b == b1011) - result = armv7_read_simd_instr_vld4_single_4_element_structure_to_one_lane(raw, arm); + result = armv7_read_simd_instr_a8_vld4_single_4_element_structure_to_one_lane(raw, arm); else if (b == b1111) - result = armv7_read_simd_instr_vld4_single_4_element_structure_to_all_lanes(raw, arm); + result = armv7_read_simd_instr_a8_vld4_single_4_element_structure_to_all_lanes(raw, arm); } @@ -1439,14 +1439,14 @@ GArchInstruction *process_armv7_simd_8_16_and_32_bit_transfer_between_arm_core_a if (c == b0) { if (a == b000) - result = armv7_read_simd_instr_vmov_between_arm_core_register_and_single_precision_register(raw, arm); + result = armv7_read_simd_instr_a8_vmov_between_arm_core_register_and_single_precision_register(raw, arm); else if (a == b111) { - result = armv7_read_simd_instr_vmsr(raw, arm); + result = armv7_read_simd_instr_a8_vmsr(raw, arm); /* B9 ? */ if (result == NULL /* ! */) - result = armv7_read_simd_instr_vmsr_b9(raw, arm); + result = armv7_read_simd_instr_b9_vmsr(raw, arm); } @@ -1455,10 +1455,10 @@ GArchInstruction *process_armv7_simd_8_16_and_32_bit_transfer_between_arm_core_a else/* if (c == b1)*/ { if ((a & b100) == b000) - result = armv7_read_simd_instr_vmov_arm_core_register_to_scalar(raw, arm); + result = armv7_read_simd_instr_a8_vmov_arm_core_register_to_scalar(raw, arm); else if (/*(a & b100) == b000) && */(b & b10) == b00) - result = armv7_read_simd_instr_vdup_arm_core_register(raw, arm); + result = armv7_read_simd_instr_a8_vdup_arm_core_register(raw, arm); } @@ -1469,21 +1469,21 @@ GArchInstruction *process_armv7_simd_8_16_and_32_bit_transfer_between_arm_core_a if (c == b0) { if (a == b000) - result = armv7_read_simd_instr_vmov_between_arm_core_register_and_single_precision_register(raw, arm); + result = armv7_read_simd_instr_a8_vmov_between_arm_core_register_and_single_precision_register(raw, arm); else if (a == b111) { - result = armv7_read_simd_instr_vmrs(raw, arm); + result = armv7_read_simd_instr_a8_vmrs(raw, arm); /* B9 ? */ if (result == NULL /* ! */) - result = armv7_read_simd_instr_vmrs_b9(raw, arm); + result = armv7_read_simd_instr_b9_vmrs(raw, arm); } } else/* if (c == b1)*/ - result = armv7_read_simd_instr_vmov_scalar_to_arm_core_register(raw, arm); + result = armv7_read_simd_instr_a8_vmov_scalar_to_arm_core_register(raw, arm); } @@ -1531,10 +1531,10 @@ GArchInstruction *process_armv7_simd_64_bit_transfers_between_arm_core_and_exten op = (raw >> 4) & b1111; if (c == b0 && (op & b1101) == 0001) - result = armv7_read_simd_instr_vmov_between_two_arm_core_registers_and_two_single_precision_registers(raw, arm); + result = armv7_read_simd_instr_a8_vmov_between_two_arm_core_registers_and_two_single_precision_registers(raw, arm); else if (c == b1 && (op & b1101) == 0001) - result = armv7_read_simd_instr_vmov_between_two_arm_core_registers_and_a_doubleword_extension_register(raw, arm); + result = armv7_read_simd_instr_a8_vmov_between_two_arm_core_registers_and_a_doubleword_extension_register(raw, arm); return result; |