Apple Microarchitecture Research by Dougall Johnson

M1/A14 P-core (Firestorm): Overview | Base Instructions | SIMD and FP Instructions
M1/A14 E-core (Icestorm):  Overview | Base Instructions | SIMD and FP Instructions

FJCVTZS

Test 1: uops

Code:

  fjcvtzs w0, d0
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 2.000

Issues: 3.000

Integer unit issues: 1.001

Load/store unit issues: 0.000

SIMD/FP unit issues: 2.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch simd uop (57)ldst uops in schedulers (5b)dispatch uop (78)map simd uop (7e)map simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
20042150300110012000200025203200020002000100110001000
20042150300110012000200025203200020002000100110001000
20042150300110012000200025203200020002000100110001000
20042150300110012000200025203200020002000100110001000
20042150300110012000200025203200020002000100110001000
20042150300110012000200025203200020002000100110001000
20042150300110012000200025203200020002000100110001000
20042150300110012000200025203200020002000100110001000
20042150300110012000200025203200020002000100110001000
20042150300110012000200025203200020002000100110001000

Test 2: Latency 1->2 roundtrip

Code:

  fjcvtzs w0, d0
  fmov d0, x0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 10.0032

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)
302041000324010110101200001000010020000100113008777041279649301262001001420028200100022000410001100001000010100
302041000324010110101200001000010020000100003008776141279516301002001000120003200100012000310001100001000010100
302041000324010110101200001000010020000100003008776141279516301002001000120003200100012000310001100001000010100
302041000324010110101200001000010020000100003008776141279516301002001000120003200100012000310001100001000010100
302041000324010110101200001000010020000100003008776141279516301002001000120003200100012000310001100001000010100
302041000324010110101200001000010020000100003008776141279516301002001000120003200100012000310001100001000010100
302051000624010710102200031000210020015100003008776141279516301002001000120003200100012000310001100001000010100
302041000324010110101200001000010020000100003008776141279516301002001000120003200100012000310001100001000010100
302041000324010110101200001000010020000100003008776141279516301002001000120003200100012000310001100001000010100
302041000324010110101200001000010020000100003008776141279516301002001000120003200100012000310001100001000010100

1000 unrolls and 10 iterations

Result (median cycles for code): 10.0032

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)
30024100034400111001120000100001020000100003087715212795163001020100002000020100002000010001100001000010010
30024100032400111001120000100001020000100003087716412795163001020100002000020100002000010001100001000010010
30024100032400111001120000100001020000100003087716412795163001020100002000020100002000010001100001000010010
30024100032400111001120000100001020000100103087774812803123003520100112002220100002000010001100001000010010
30025100083400171001220003100021020015100003087716412795163001020100012000320100122002610002100001000010010
30024100045400111001120000100001020000100003087716412795163001020100002000020100002000010001100001000010010
30024100097400111001120000100001020000100003087728812796853001020100002000020100002000010001100001000010010
30024100032400111001120000100001020000100003087716412795163001020100002000020100002000010001100001000010010
30024100032400111001120000100001020000100003087716412795163001020100002000020100002000010001100001000010010
30025100062400171001220003100021020015100003087725112796333001020100002000020100002000010001100001000010010

Test 3: throughput

Count: 8

Code:

  fjcvtzs w0, d8
  fjcvtzs w1, d8
  fjcvtzs w2, d8
  fjcvtzs w3, d8
  fjcvtzs w4, d8
  fjcvtzs w5, d8
  fjcvtzs w6, d8
  fjcvtzs w7, d8
  mov x8, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code divided by count): 2.1116

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
1602041689342401018010116000001001600000300020349641601012000160008200160008800018000080100
1602041689272401018010116000001001600010300020353161601012000160008200160008800018000080100
1602041689272401018010116000001001600010300020353161601012000160008200160008800018000080100
1602041689272401018010116000001001600010300020353161601012000160008200160008800018000080100
1602051689672401228010516001701001600310300020353161601012000160008200160008800018000080100
1602041689272401018010116000001001600010300020354061601332000160048200160008800018000080100
1602041689272401018010116000001001600010300020353161601012000160008200160008800018000080100
1602041689272401018010116000001001600010300020353161601012000160008200160008800018000080100
1602041689272401018010116000001001600010300020353161601012000160008200160052800078000080100
1602041689272401018010116000001001600010300020353161601012000160008200160008800018000080100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 2.1116

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
16002516897124003280015160017101600313020351091600122016001020160000800018000080010
16002416892724001180011160000101600003020353111600102016000020160000800018000080010
16002416892724001180011160000101600003020353111600102016000020160000800018000080010
16002416892724001180011160000101600003020354761600502016005220160000800018000080010
16002416892724001180011160000101600003020353111600102016000020160000800018000080010
16002416892724001180011160000101600003020353111600102016000020160000800018000080010
16002416892724001180011160000101600003020353111600102016000020160044800058000080010
16002416892724001180011160000101600003020353111600102016000020160000800018000080010
16002416892724001180011160000101600003020353111600102016000020160000800018000080010
16002416892724001180011160000101600003020353111600102016000020160000800018000080010