Skip to content

Commit

Permalink
Add uarch characteristics of cmp_imm to A55 model
Browse files Browse the repository at this point in the history
  • Loading branch information
hanno-becker committed Jul 30, 2024
1 parent 379fa0b commit b971b52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slothy/targets/aarch64/cortex_a55.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ def get_min_max_objective(slothy):
is_dform_form_of(vshl) : [ExecutionUnit.VEC0, ExecutionUnit.VEC1],

(Stp_X, w_stp_with_imm_sp, x_str_sp_imm, Str_X) : ExecutionUnit.SCALAR_STORE,
(x_ldr_stack_imm, ldr_const, ldr_sxtw_wform, Ldr_X, Ldp_X, asm_load,
(x_ldr_stack_imm, ldr_const, ldr_sxtw_wform, Ldr_X, Ldp_X, asm_load,
w_ldr_sp_imm) : ExecutionUnit.SCALAR_LOAD,
(umull_wform, mul_wform, umaddl_wform ): ExecutionUnit.SCALAR_MUL(),
( lsr, bic, bfi, add, add_imm, add_sp_imm, add2, add_lsr, add_lsl,
adcs_to_zero, adcs_zero_r_to_zero, adcs_zero2, cmn,
and_imm, nop, Vins, tst_wform, movk_imm, sub, sbcs_zero_to_zero, cmp_xzr2,
and_imm, nop, Vins, tst_wform, movk_imm, sub, sbcs_zero_to_zero, cmp_xzr2, cmp_imm,
mov, ngc_zero, subs_wform, asr_wform, and_imm_wform, lsr_wform, eor_wform, eor, eor_ror,
bic_ror, movw_imm, ror, add_w_imm) : ExecutionUnit.SCALAR(),
}
Expand Down Expand Up @@ -202,7 +202,7 @@ def get_min_max_objective(slothy):
(and_twoarg, and_imm, and_imm_wform) : 1,
(add, add_imm, add_w_imm, add2, add_lsr, add_lsl, add_sp_imm, adcs_to_zero, adcs_zero2,
adcs_zero_r_to_zero, cmn) : 1,
(cmp_xzr2, sub, subs_wform, asr_wform, sbcs_zero_to_zero, ngc_zero) : 1,
(cmp_xzr2, cmp_imm, sub, subs_wform, asr_wform, sbcs_zero_to_zero, ngc_zero) : 1,
(bfi) : 1,
(vshl, vshl, vushr, vsri) : 1,
(vusra) : 1,
Expand Down Expand Up @@ -249,7 +249,7 @@ def get_min_max_objective(slothy):
(add2, add_lsr, add_lsl, add_sp_imm) : 2,
(add, add_imm, add_w_imm, adcs_to_zero, adcs_zero_r_to_zero, adcs_zero2, cmn,
sub, subs_wform, asr_wform, sbcs_zero_to_zero, cmp_xzr2,
ngc_zero) : 1,
cmp_imm, ngc_zero) : 1,
(bfi) : 2,
(vshl, vushr, vsri) : 2,
(vusra) : 3,
Expand Down

0 comments on commit b971b52

Please sign in to comment.