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

LD2 (multiple, post-index, 8H)

Test 1: uops

Code:

  ld2 { v0.8h, v1.8h }, [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): 4.000

Issues: 5.002

Integer unit issues: 1.001

Load/store unit issues: 2.000

SIMD/FP unit issues: 2.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)
64005296065035100320282004100220042000300060001527450002000200030004000100120002000
64004294625003100120022000100020002000300060001527450002000200030004000100120002000
64004294505003100120022000100020002000300060001527450002000200030004000100120002000
64004294375003100120022000100020002000300060001527450002000200030004000100120002000
64004294555003100120022000100020002000300060001527450002000200030004000100120002000
64004294265003100120022000100020002000300060001527450002000200030004000100120002000
64004294675003100120022000100020002000300060001527450002000200030004000100120002000
64004294615003100120022000100020002000300060001527450002000200030004000100120002000
64004294595003100120022000100020002000300060001527450002000200030004000100120002000
64004294615003100120022000100020002000300060001527450002000200030004000100120002000

Test 2: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ld2 { v0.8h, v1.8h }, [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.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)
802051201511001225010230018200024013230030200063199166189856829034509011830209200063000960218300095001550001200002000040100
802051200901001245010930013200024013730033200063199262189884429038089011830209200063000960218300095001550001200002000040100
802041200471001075010130006200004010430008200063199262189884429038089011830209200063000960218300095001550001200002000040100
802041200471001075010130006200004010430008200063199262189884429038089011830209200063000960218300095001550001200002000040100
802041200471001075010130006200004010430008200063199262189884429038089011830209200063000960218300095001550001200002000040100
802041200471001075010130006200004010430008200063199262189884429038089011830209200063000960218300095001550001200002000040100
802051201401001255010730016200024013530035200063199262189884429038089011830209200063000960218300095001550001200002000040100
802041200471001075010130006200004010430008200063199262189884429038089011830209200063000960218300095001550001200002000040100
802041200471001075010130006200004010430008200063199262189884429038089011830209200063000960218300095001550001200002000040100
802041200471001075010130006200004010430008200063199262189884429038089011830209200063000960218300095001550001200002000040100

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)
800251201471000325001230018200024004230030200003199380189931429045919001030020200003000060020300005000050001200002000040010
800241200491000175001130006200004001030000200243200843190027229059509010430056200243003660020300005000050001200002000040010
800241200571000175001130006200004001030000200003199380189931429045919001030020200003000060020300005000050001200002000040010
800241200491000175001130006200004001030000200003199380189931429045919001030020200003000060020300005000050001200002000040010
800241200491000175001130006200004001030000200003199461189936829046699001030020200003000060092300365006050007200002000040010
800241201581000375002130012200044004430027200003199407189933029046139001030020200003000060020300005000050001200002000040010
800241200491000175001130006200004001030000200183200977190030429060789008930047200183002760020300005000050001200002000040010
800241200501000175001130006200004001030000200003201972190104229070869001030020200003000060020300005000050001200002000040010
800241201471000375002130012200044004430027200183201054190035829061579008930047200183002760146300635010550017200002000040010
800241201511000375002130012200044004430027200183201112190039429062089008930047200183002760020300005000050001200002000040010

Test 3: Latency 2->3 roundtrip

Chain cycles: 3

Code:

  ld2 { v0.8h, v1.8h }, [x6], x8
  fmov x1, d1
  eor x8, x8, x1
  eor x8, x8, x1
  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.0066

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)
802051202511001225010230018200024013230030200243201293190005429055129019430236200243003660218300095001550001200002000040100
802041200731001075010130006200004010430008200063199936189913029042099011830209200063000960218300095001550001200002000040100
802041200731001075010130006200004010430008200063199775189914829042269011830209200063000960218300095001550001200002000040100
802041200661001045010130003200004010430008200063199775189914829042269011830209200063000960218300095001550001200002000040100
802041200731001075010130006200004010430008200063199775189914829042269011830209200063000960218300095001550001200002000040100
802051201011001185010930007200024013730033200063199775189914829042269011830209200063000960218300095001550001200002000040100
802041200661001045010130003200004010430008200063199775189914829042269011830209200063000960218300095001550001200002000040100
802041200661001045010130003200004010430008200063199964189926029043809011830209200063000960218300095001550001200002000040100
802041200661001045010130003200004010430008200063199775189914829042269011830209200063000960218300095001550001200002000040100
802041200661001045010130003200004010430008200063199964189926029043809011830209200063000960218300095001550001200002000040100

1000 unrolls and 10 iterations

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

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)
800251201561000325001230018200024004230030200063199483189945829047889002830029200063000960020300005000050001200002000040010
800241200511000175001130006200004001030000200003199434189934629046359001030020200003000060020300005000050001200002000040010
800241200511000175001130006200004001030000200003199434189934629046359001030020200003000060020300005000050001200002000040010
800251200841000295001730010200024004530035200003199757189945229048159001030020200003000060020300005000050001200002000040010
800241200511000175001130006200004001030000200003199434189934629046359001030020200003000060020300005000050001200002000040010
800241200511000175001130006200004001030000200003199434189934629046359001030020200003000060020300005000050001200002000040010
800241200511000175001130006200004001030000200003199434190184629046359001030020200003000060020300005000050001200002000040010
800241200511000175001130006200004001030000200003199515189940029047139001030020200003000060020300005000050001200002000040010
800251200811000295001730010200024004530035200003199434189934629046359001030020200003000060020300005000050001200002000040010
800241200511000175001130006200004001030000200003199434189934629046359001030020200003000060020300005000050001200002000040010

Test 4: throughput

Count: 8

Code:

  ld2 { v0.8h, v1.8h }, [x6], x8
  ld2 { v0.8h, v1.8h }, [x6], x8
  ld2 { v0.8h, v1.8h }, [x6], x8
  ld2 { v0.8h, v1.8h }, [x6], x8
  ld2 { v0.8h, v1.8h }, [x6], x8
  ld2 { v0.8h, v1.8h }, [x6], x8
  ld2 { v0.8h, v1.8h }, [x6], x8
  ld2 { v0.8h, v1.8h }, [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): 1.2513

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)
3202051009744005278018116021816012880182160158160052240378486100128828240023020016005216005220024001832002480005160000160000100
3202041010224006348022416022416018680225160250160372240858491300129499240103020016037216037220024019532026080065160000160000100
3202041001084001578010516004416000880106160012160012240318480284128056040013020016001216001220024001832002480005160000160000100
3202041001084001578010516004416000880106160012160012240318480284128056040013020016001216001220024001832002480005160000160000100
3202041001084001578010516004416000880106160012160012240318480278128056040013020016001216001220024001832002480005160000160000100
3202041001084001578010516004416000880106160012160052240378480516128094240023020016005216005220024001832002480005160000160000100
3202041001084001578010516004416000880106160012160012240318480278128056040013020016001216001220024001832002480005160000160000100
3202041001084001578010516004416000880106160012160012240318480278128056040013020016001216001220024001832002480005160000160000100
3202041001084001578010516004416000880106160012160012240318480284128056040013020016001216001220024001832002480005160000160000100
3202041001084001578010516004416000880106160012160012240318480284128056040013020016001216001220024001832002480005160000160000100

1000 unrolls and 10 iterations

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

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)
3200251001774001978003116012816003880032160038160000240030480256128057640001020160000160000202400003200008000116000016000010
3200241000444000318001116002016000080010160000160000240030480182128033440001020160000160000202400003200008000116000016000010
3200241000444000318001116002016000080010160000160000240030480180128033440001020160000160000202400003200008000116000016000010
3200241000534000478001116003616000080010160000160000240030480182128033440001020160000160000202400003200008000116000016000010
3200241000454000318001116002016000080010160000160000240030480182128033440001020160000160000202400003200008000116000016000010
3200251000974001298003516005616003880036160052160000240030487464128758840001020160000160000202402403203208008116000016000010
3200241000454000338001116002216000080010160000160000240030480642128079440001020160000160000202400003200008000116000016000010
3200241000454000318001116002016000080010160000160000240030480182128033440001020160000160000202400003200008000116000016000010
3200241000444000318001116002016000080010160000160000240030480256128057440001020160000160000202400003200008000116000016000010
3200241004004002718007116011016009080070160120160280240450491314129487840071020160280160280202403003204008010116000016000010