Skip to content

Commit

Permalink
cmge -> ASimdCompare
Browse files Browse the repository at this point in the history
  • Loading branch information
dop-amin committed Apr 3, 2024
1 parent 88dc5e9 commit 7aabde4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions slothy/targets/aarch64/apple_m1_firestorm_experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get_min_max_objective(slothy):
vqdmulh_lane,
vmull, vmlal,
vsrshr, vushr, vusra, vshl,
vand, vbic, cmge): ExecutionUnit.V(),
vand, vbic, ASimdCompare): ExecutionUnit.V(),
(vadd, vsub,
trn1, trn2): ExecutionUnit.V(),
Vins: ExecutionUnit.V(), # guessed
Expand Down Expand Up @@ -184,7 +184,7 @@ def get_min_max_objective(slothy):
vqdmulh_lane,
vmull, vmlal,
vsrshr, vushr, vusra, vshl,
vand, vbic, cmge): 1,
vand, vbic, ASimdCompare): 1,
(vadd, vsub,
trn1, trn2): 1,

Expand Down Expand Up @@ -239,7 +239,7 @@ def get_min_max_objective(slothy):
vmull, vmlal,
vsrshr, vusra): 3,
(vshl, vushr,
vand, vbic, cmge): 2,
vand, vbic, ASimdCompare): 2,
(vadd, vsub,
trn1, trn2): 2,
Vins: 2, # or something less than 13
Expand Down
6 changes: 3 additions & 3 deletions slothy/targets/aarch64/apple_m1_icestorm_experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_min_max_objective(slothy):
vqdmulh_lane,
vmull, vmlal,
vsrshr, vushr, vusra, vshl,
vand, vbic, cmge): ExecutionUnit.V(),
vand, vbic, ASimdCompare): ExecutionUnit.V(),

(vadd, vsub,
trn1, trn2): ExecutionUnit.V(),
Expand Down Expand Up @@ -154,7 +154,7 @@ def get_min_max_objective(slothy):
vqdmulh_lane,
vmull, vmlal,
vsrshr, vushr, vusra, vshl,
vand, vbic, cmge): 1,
vand, vbic, ASimdCompare): 1,
(vadd, vsub,
trn1, trn2): 1,

Expand Down Expand Up @@ -209,7 +209,7 @@ def get_min_max_objective(slothy):
vmull, vmlal,
vsrshr, vusra): 3,
(vshl, vushr,
vand, vbic, cmge): 2,
vand, vbic, ASimdCompare): 2,
(vadd, vsub,
trn1, trn2): 2,
Vins: 2, # 2 or <= 9
Expand Down
4 changes: 2 additions & 2 deletions slothy/targets/aarch64/cortex_a55.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_min_max_objective(slothy):
vqrdmulh, vqrdmulh_lane, vqdmulh_lane, vmull,
vmlal,
vsrshr, umov_d ) : 1,
(trn2, trn1, cmge): 1,
(trn2, trn1, ASimdCompare): 1,
( Ldr_Q ) : 2,
( Str_Q ) : 1,
( tst_wform ) : 1,
Expand Down Expand Up @@ -215,7 +215,7 @@ def get_min_max_objective(slothy):
is_qform_form_of([vadd, vsub]) : 3,
is_dform_form_of([vadd, vsub]) : 2,

(trn1, trn2, cmge): 2,
(trn1, trn2, ASimdCompare): 2,
( vsrshr ) : 3,
( vmul, vmul_lane, vmls, vmls_lane,
vqrdmulh, vqrdmulh_lane, vqdmulh_lane, vmull,
Expand Down
6 changes: 3 additions & 3 deletions slothy/targets/aarch64/cortex_a72_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_min_max_objective(slothy):
: [ExecutionUnit.ASIMD0],

(vadd, vsub,
trn1, trn2, cmge )
trn1, trn2, ASimdCompare )
: [ExecutionUnit.ASIMD0, ExecutionUnit.ASIMD1],

Vins : [ExecutionUnit.ASIMD0, ExecutionUnit.ASIMD1],
Expand Down Expand Up @@ -147,7 +147,7 @@ def get_min_max_objective(slothy):
: 2,

(vadd, vsub,
trn1, trn2, cmge)
trn1, trn2, ASimdCompare)
: 1,

Vins : 1,
Expand Down Expand Up @@ -176,7 +176,7 @@ def get_min_max_objective(slothy):
: 5,

(vadd, vsub,
trn1, trn2, cmge )
trn1, trn2, ASimdCompare )
: 3, # Approximation -- not necessary to get it exactly right, as mentioned above

( Ldr_Q, Ldr_X,
Expand Down

0 comments on commit 7aabde4

Please sign in to comment.