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

LD1 (single, post-index, H)

Test 1: uops

Code:

  ld1 { v0.h }[1], [x6], x8
  nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop
  mov x0, 1
  mov x1, 2
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 60 nops): 2.000

Issues: 3.001

Integer unit issues: 1.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 1.001

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 ldst uop (7d)map simd uop (7e)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)
6200529602301310031008100210021002100030003000776030001000100020002000100110001000
6200429746300210011001100010001000100030003000776030001000100020002000100110001000
6200429764300210011001100010001000100030003000776030001000100020002000100110001000
6200429347300210011001100010001000100030003000776030001000100020002000100110001000
6200429392300210011001100010001000100030003000776030001000100020002000100110001000
6200429361300210011001100010001000100030003000776030001000100020002000100110001000
6200429364300210011001100010001000100030003000776030001000100020002000100110001000
6200429364300210011001100010001000100030003000776030001000100020002000100110001000
6200429363300210011001100010001000100030003000776030001000100020002000100110001000
6200429347300210011001100010001000100030003000776030001000100020002000100110001000

Test 2: Latency 1->2 roundtrip

Chain cycles: 3

Code:

  ld1 { v0.h }[1], [x6], x8
  fmov x0, d0
  eor x8, x8, x0
  eor x8, x8, x0
  add x6, x6, x8
  mov x0, 1
  mov x1, 2
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 3 chain cycles): 9.0049

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)
6020512015180115501022001210001401322002410003319928394352519521987011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760278200283004150007100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100

1000 unrolls and 10 iterations

Result (median cycles for code, minus 3 chain cycles): 9.0049

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)
6002512016080025500122001210001400422002410003319945494464519543737002330029100042000760020200003000050001100001000040010
6002412004980015500112000410000400102000010000319943294460719542967001030020100002000060020200003000050001100001000040010
6002412004980015500112000410000400102000010000319943294460719542967001030020100002000060098200283004150007100001000040010
6002412004980015500112000410000400102000010000319943294460719542967001030020100002000060020200003000050001100001000040010
6002412005080015500112000410000400102000010000319948694462319543327001030020100002000060020200003000050001100001000040010
6002412004980015500112000410000400102000010000319943294460719542967001030020100002000060020200003000050001100001000040010
6002412004980015500112000410000400102000010000319943294460719542967001030020100002000060020200003000050001100001000040010
6002412004980015500112000410000400102000010000319943294460719542967001030020100002000060098200283004150007100001000040010
6002412004980015500112000410000400102000010000319943294460719542967001030020100002000060020200003000050001100001000040010
6002412004980015500112000410000400102000010000319943294460719542967001030020100002000060020200003000050001100001000040010

Test 3: throughput

Count: 8

Code:

  ld1 { v0.h }[1], [x6], x8
  ld1 { v0.h }[1], [x6], x8
  ld1 { v0.h }[1], [x6], x8
  ld1 { v0.h }[1], [x6], x8
  ld1 { v0.h }[1], [x6], x8
  ld1 { v0.h }[1], [x6], x8
  ld1 { v0.h }[1], [x6], x8
  ld1 { v0.h }[1], [x6], x8
  mov x7, x6
  mov x8, x6
  mov x9, x6
  mov x10, x6
  mov x11, x6
  mov x12, x6
  mov x13, x6
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

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)
16020516015124017580133800108003280134800298000528051728025840396922401142008000580005200160008160008800038000080000100
16020416004524010780103800028000280104800038000428048528019340395692401112008000480004200160008160008800038000080000100
16020416004524010780103800028000280104800038000428048528019340395692401112008000480004200160008160008800038000080000100
16020416004524010780103800028000280104800038003328091028061040399222402002028003380033200160008160008800038000080000100
16020416004524010780103800028000280104800038000428048528019340395692401112008000480004200160008160008800038000080000100
16020416004524010780103800028000280104800038000428048528019340395692401112008000480004200160008160008800038000080000100
16020416004524010780103800028000280104800038000428048528019340395692401112008000480004200160008160008800038000080000100
16020516008024017580133800108003280134800338000428047328070640397772401112008000480004200160008160008800038000080000100
16020416004524010780103800028000280104800038000428048528019340395692401112008000480004200160008160008800038000080000100
16020416004524010780103800028000280104800038000428048528019340395692401112008000480004200160008160008800038000080000100

1000 unrolls and 10 iterations

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

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)
16002516027424008580043800108003280044800298000028026028027740397992400102080000800002016000016000080001800008000010
16002416005524001580011800048000080010800008000028023528024440398542400102080000800002016000016000080001800008000010
16002416004724001380011800028000080010800008000028023528024440398542400102080000800002016000016000080001800008000010
16002416004724001380011800028000080010800008003028066228066940402362401002080030800302016000016000080001800008000010
16002416004724001380011800028000080010800008000028023528024440398542400102080000800002016000016000080001800008000010
16002416005524001580011800048000080010800008000028023528024440398542400102080000800002016000016000080001800008000010
16002416005524001580011800048000080010800008000028023528024440398542400102080000800002016000016000080001800008000010
16002516009624008580043800108003280044800338000028023528024440398542400102080000800002016000016000080001800008000010
16002416004724001380011800028000080010800008000028023528024440398542400102080000800002016000016000080001800008000010
16002416004724001380011800028000080010800008000028023528024440398542400102080000800002016000016000080001800008000010