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

ST3 (multiple, post-index, 4S)

Test 1: uops

Code:

  st3 { v0.4s, v1.4s, v2.4s }, [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, 0
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 60 nops): 6.000

Issues: 7.000

Integer unit issues: 1.001

Load/store unit issues: 3.000

SIMD/FP unit issues: 3.000

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)
660083013370151003300630061002300630003000250001200070003000300070009000100130003000
660042974970011001300030001000300030003000250001200070003000300070009000100130003000
660042970470011001300030001000300030003000250001200070003000300070009000100130003000
660043044270011001300030001000300030003000250001200070003000300070009000100130003000
660042974570011001300030001000300030003000250001200070003000300070009000100130003000
660042969770011001300030001000300030003000250001200070003000300070009000100130003000
660042974370011001300030001000300030003000250001200070003000300070009000100130003000
660042974270011001300030001000300030003000250001200070003000300070009000100130003000
660043016470011001300030001000300030003000250001200070003000300070009000100130003000
660042974570011001300030001000300030023001250041200570063003300370009000100130003000

Test 2: throughput

Count: 8

Code:

  st3 { v0.4s, v1.4s, v2.4s }, [x6], x8
  st3 { v0.4s, v1.4s, v2.4s }, [x6], x8
  st3 { v0.4s, v1.4s, v2.4s }, [x6], x8
  st3 { v0.4s, v1.4s, v2.4s }, [x6], x8
  st3 { v0.4s, v1.4s, v2.4s }, [x6], x8
  st3 { v0.4s, v1.4s, v2.4s }, [x6], x8
  st3 { v0.4s, v1.4s, v2.4s }, [x6], x8
  st3 { v0.4s, v1.4s, v2.4s }, [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): 3.0005

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)
4802082401595601828011624004824001880116240050240002240306407973896003456011220024000724000920056001672002780002240000240000100
4802042400395601088010224000624000080102240008240038240348408021296020256020420024005024005420056001672002780002240000240000100
4802052400875601838011724004824001880116240051240002240306407989296003456011220024000724000920056001672002780002240000240000100
4802042400395601088010224000624000080102240008240002240306407989296003456011220024000724000920056001672002780002240000240000100
4802052400805601828011624004824001880116240050240002240306407989296003456011220024000724000920056001672002780002240000240000100
4802042400395601088010224000624000080102240008240002240306407989296003456011220024000724000920056001672002780002240000240000100
4802042400395601088010224000624000080102240008240002240306407989296003456011220024000724000920056001672002780002240000240000100
4802042400395601088010224000624000080102240008240002240306407989296003456011220024000724000920056001672002780002240000240000100
4802042400475601088010224000624000080102240008240002240306407989296003456011220024000724000920056001672002780002240000240000100
4802052400995601828011624004824001880116240050240002240306407989296003456011220024000724000920056001672002780002240000240000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 3.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)
4800282401515600928002624004824001880026240050240002240036407998896003456002220240007240009205600167200278000224000024000010
4800242400455600118001124000024000080010240000240000240030408002396000056001020240000240000205600007200008000124000024000010
4800252400855600858002524004224001880024240042240000240030408002396000056001020240000240000205600007200008000124000024000010
4800242400455600118001124000024000080010240000240000240030408002396000056001020240000240000205600007200008000124000024000010
4800242400455600118001124000024000080010240000240000240030408002396000056001020240000240000205601167201628001624000024000010
4800242400455600118001124000024000080010240000240000240030408002396000056001020240000240000205600007200008000124000024000010
4800242400455600118001124000024000080010240000240000240030408002396000056001020240000240000205600007200008000124000024000010
4800242400455600118001124000024000080010240000240038240078408054296020256011420240050240054205600007200008000124000024000010
4800242400455600118001124000024000080010240000240000240030408002396000056001020240000240000205600007200008000124000024000010
4800242400455600118001124000024000080010240000240000240030408002396000056001020240000240000205600007200008000124000024000010