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, D)

Test 1: uops

Code:

  ld1 { v0.d }[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.002

Integer unit issues: 1.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 1.002

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)
6200529693301310031008100210021002100030003000776730001000100020002000100110001000
6200429440300310011002100010001000100030003000776730001000100020002000100110001000
6200429414300310011002100010001000100030003000776730001000100020002000100110001000
6200429391300310011002100010001000100030003000776730001000100020002000100110001000
6200429399300310011002100010001000100030003000776730001000100020002000100110001000
6200429369300310011002100010001000100030003000776730001000100020002000100110001000
6200429394300310011002100010001000100030003000776730001000100020002000100110001000
6200429375300310011002100010001000100030003000776730001000100020002000100110001000
6200429361300310011002100010001000100030003000776730001000100020002000100110001000
6200429362300310011002100010001000100030003000776730001000100020002000100110001000

Test 2: Latency 1->2 roundtrip

Chain cycles: 3

Code:

  ld1 { v0.d }[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)
6020512014980115501022001210001401322002310003319983894369319525777011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020512013680115501072000710001401352002510003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003320163294439219538807011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760278200283004150007100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020412004980105501012000410000401042000610003319936494363619524007011330209100042000760218200083001150001100001000040100
6020512009480117501072000910001401352002510003319939194364519524187011330209100042000760218200083001150001100001000040100

1000 unrolls and 10 iterations

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

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)
6002612018380035500182001510002400732004310003319940094970919195357002130028100032000660020200003000050001100001000040010
6002412004780015500112000410000400102000010000319937894459119542607001030020100002000060020200003000050001100001000040010
6002412004780015500112000410000400102000010000319937894459119542607001030020100002000060020200003000050001100001000040010
6002412004780015500112000410000400102000010000319937894459119542607001030020100002000060020200003000050001100001000040010
6002512009080027500172000910001400452002410000319989194476219545917001030020100002000060020200003000050001100001000040010
6002512008080025500172000710001400452002510000319937894459119542607001030020100002000060020200003000050001100001000040010
6002412004780015500112000410000400102000010000319937894459119542607001030020100002000060020200003000050001100001000040010
6002412004780015500112000410000400102000010000319937894459119542607001030020100002000060020200003000050001100001000040010
6002412004780015500112000410000400102000010000319937894459119542607001030020100002000060020200003000050001100001000040010
6002412004780015500112000410000400102000010000319937894459119542607001030020100002000060020200003000050001100001000040010

Test 3: throughput

Count: 8

Code:

  ld1 { v0.d }[1], [x6], x8
  ld1 { v0.d }[1], [x6], x8
  ld1 { v0.d }[1], [x6], x8
  ld1 { v0.d }[1], [x6], x8
  ld1 { v0.d }[1], [x6], x8
  ld1 { v0.d }[1], [x6], x8
  ld1 { v0.d }[1], [x6], x8
  ld1 { v0.d }[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.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)
16020516015124017580133800108003280134800298000528053328027440396522401142008000580005200160008160008800038000080000100
16020416005324010980103800048000280104800038000528050128024240397322401142008000580005200160008160008800038000080000100
16020416005324010980103800048000280104800038000428047328021440397772401112008000480004200160008160008800038000080000100
16020516010424018380134800168003380135800348000428047328027240397772401112008000480004200160068160068800338000080000100
16020416005324010980103800048000280104800038000428047328021440397772401112008000480004200160008160008800038000080000100
16020416005324010980103800048000280104800038000428047328021440397772401112008000480004200160008160008800038000080000100
16020416005324010980103800048000280104800038000428047328021440397772401112008000480004200160068160068800338000080000100
16020416005324010980103800048000280104800038000428047328021440397772401112008000480004200160008160008800038000080000100
16020416005324010980103800048000280104800038000428047328021440397772401112008000480004200160008160008800038000080000100
16020416005324010980103800048000280104800038000428047328021440397772401112008000480004200160008160008800038000080000100

1000 unrolls and 10 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)
16002516016324008580043800108003280044800298000528027628028540398292400242080005800052016000816000880003800008000010
16002416004724001380011800028000080010800008000028023928022640396462400102080000800002016000016000080001800008000010
16002416004724001380011800028000080010800008000028023928022640396462400102080000800002016000816000880003800008000010
16002416004724001380011800028000080010800008003428067928066540400482401112080034800342016000016000080001800008000010
16002416004724001380011800028000080010800008000028023928022640396462400102080000800002016000016000080001800008000010
16002416004724001380011800028000080010800008000028023928022640396462400102080000800002016000016000080001800008000010
16002416004724001380011800028000080010800008000028023928022640396462400102080000800002016000016000080001800008000010
16002516008224008580043800108003280044800338000028023928022640396462400102080000800002016000016000080001800008000010
16002416004724001380011800028000080010800008000028023928022640396462400102080000800002016000016000080001800008000010
16002416004724001380011800028000080010800008000028023928027040396462400102080000800002016000016000080001800008000010