Skip to content

Commit

Permalink
updated DB
Browse files Browse the repository at this point in the history
  • Loading branch information
JanLJL committed Aug 19, 2024
1 parent 2bdc765 commit df55c29
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 6 deletions.
100 changes: 96 additions & 4 deletions osaca/data/zen2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,66 @@ port_model_scheme: |
+-------+

instruction_forms:
##########################################
# assume all jmp instruction 0
- name: [jo, jno, js, jns, jp, jpe, jnp, jpo]
operands:
- class: identifier
throughput: 0.0
latency: 0.0
port_pressure: []
- name: [jc, jb, jae, jnb, jna, jbe, ja, jnbe]
operands:
- class: identifier
throughput: 0.0
latency: 0.0
port_pressure: []
- name: [je, jz, jne, jnz, jl, jnge]
operands:
- class: identifier
throughput: 0.0
latency: 0.0
port_pressure: []
- name: [jge, jnl, jle, jng, jg, jnle]
operands:
- class: identifier
throughput: 0.0
latency: 0.0
port_pressure: []
- name: jmp
operands:
- class: identifier
throughput: 0.0
latency: 0.0
port_pressure: []
##########################################
- name: call # docs
operands: # docs
- class: identifier # docs
latency: 1 # docs
port_pressure: [[1, '4567'], [1, ['10']]] # docs
throughput: 0.5 # docs
uops: 2 # docs
- name: [or, and, xor, test, not] # uops.info
operands: # uops.info
- class: register # uops.info
name: gpr # uops.info
- class: register # uops.info
name: gpr # uops.info
latency: 1 # uops.info
port_pressure: [[1, '6789']] # uops.info
throughput: 0.25 # uops.info
uops: 1 # uops.info
- name: [or, and, xor, test, not] # uops.info
operands: # uops.info
- class: immediate
imd: int
- class: register # uops.info
name: gpr # uops.info
latency: 1 # uops.info
port_pressure: [[1, '6789']] # uops.info
throughput: 0.25 # uops.info
uops: 1 # uops.info
- name: vmovdqa
operands:
- class: register
Expand Down Expand Up @@ -905,7 +965,7 @@ instruction_forms:
- name: lea
operands:
- class: memory
base: gpr
base: '*'
offset: '*'
index: '*'
scale: '*'
Expand All @@ -923,6 +983,15 @@ instruction_forms:
throughput: 0.0
latency: 0.0
port_pressure: []
- name: [mov, movabs]
operands:
- class: immediate
imd: int
- class: register
name: gpr
throughput: 0.25
latency: 1.0
port_pressure: [[1, '4567']]
- name: [movsxd, movslq] # JH: assumed from agner and port model
operands:
- class: register
Expand Down Expand Up @@ -967,7 +1036,7 @@ instruction_forms:
name: xmm
- class: register
name: xmm
throughput: ~ #8.5
throughput: 8.5
latency: 20.0
port_pressure: [[1, '3'], [8.5, ['3DV']]]
- name: sqrtss
Expand All @@ -976,9 +1045,32 @@ instruction_forms:
name: xmm
- class: register
name: xmm
throughput: ~ #5.5
throughput: 5.5
latency: 14.0
port_pressure: [[1, '3'], [5.5, ['3DV']]]
- name: vsqrtsd
operands:
- class: register
name: xmm
- class: register
name: xmm
- class: register
name: xmm
throughput: 8.5
latency: 20.0
port_pressure: [[1, '3'], [8.5, ['3DV']]]
- name: vsqrtss
operands:
- class: register
name: xmm
- class: register
name: xmm
- class: register
name: xmm
throughput: 5.5
latency: 14.0
port_pressure: [[1, '3'], [5.5, ['3DV']]]

- name: sub
operands:
- class: register
Expand Down Expand Up @@ -1215,7 +1307,7 @@ instruction_forms:
latency: 3.0 # 1*p01
port_pressure: [[1, '01']]
uops: 1
- name: [shl, shr]
- name: [shl, shr, sal, sar]
operands:
- class: immediate
imd: int
Expand Down
4 changes: 2 additions & 2 deletions osaca/data/zen3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4553,8 +4553,8 @@ instruction_forms:
operands: # docs
- class: identifier # docs
latency: 1 # docs
port_pressure: [[1, ['6', '10']], [1, '13']] # docs
throughput: 0.5 # docs
port_pressure: [[1, ['6', '10']], [1, ['13']]] # docs
throughput: 1.0 # docs
uops: 2 # docs
- name: test # uops.info
operands: # uops.info
Expand Down

0 comments on commit df55c29

Please sign in to comment.