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

STP (post-index, D)

Test 1: uops

Code:

  stp d0, d1, [x6], #0x10
  nop ; nop ; nop ; nop ; nop ; nop ; nop

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 7 nops): 2.000

Issues: 3.000

Integer unit issues: 1.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 1.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)
90064278304310151014101410141014100030008765400030001000100020002000100110001000
90042422300110011000100010001000100030008755400030001000100020002000100110001000
90042302300110011000100010001000100030008757400030001000100020002000100110001000
90042302300110011000100010001000100030008756400030001000100020002000100110001000
90042303300110011000100010001000100030008759400030001000100020002000100110001000
90042302300110011000100010001000100030008757400030001000100020002000100110001000
90042302300110011000100010001000100030008757400030001000100020002000100110001000
90042302300110011000100010001000100030008756400030001000100020002000100110001000
90042303300110011000100010001000100030008756400030001000100020002000100110001000
90042303300110011000100010001000100030008755400030001000100020002000100110001000

Test 2: Latency 3->3

Code:

  stp d0, d1, [x6], #0x10

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 1.1298

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)
20224142923090010412103081018010413103101000336892192309400303011720010007100072002001420014100061000010000100
20204113113011110106100051000010107100071000035690192948400263011220010006100062002001220012100051000010000100
20204113153010910105100041000010106100061000035692192858400263011220010006100062002001220012100051000010000100
20204113283010910105100041000010106100061000035695191544400263011220010006100062002001220012100051000010000100
20204112403010910105100041000010106100061000035692192876400263011220010006100062002001220012100051000010000100
20204112913010910105100041000010106100061000035692192318400263011220010006100062002001220012100051000010000100
20204114443010910105100041000010106100061000235690194302400263011420010006100062002001220012100051000010000100
20204113183010910105100041000010106100061000035689191454400263011220010006100062002001220012100051000010000100
20204112453010910105100041000010106100061000035689192120400263011220010006100062002001220012100051000010000100
20204112773010910105100041000010106100061000035696191598400263011220010006100062002001220012100051000010000100

1000 unrolls and 10 iterations

Result (median cycles for code): 1.1330

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)
20044157133081910325103141018010326103161000035432191494400183001820100061000620200002000010001100001000010
20024112403001110011100001000010010100001000035629190911400003001020100001000020200002000010001100001000010
20024112323001110011100001000010010100001000035629190983400003001020100001000020200002000010001100001000010
20024112133001110011100001000010010100001000035627191181400003001020100001000020200002000010001100001000010
20024112343001110011100001000010010100001000035629190965400003001020100001000020200002000010001100001000010
20024112523001110011100001000010010100001000035626191255400003001020100001000020200002000010001100001000010
20024112313001110011100001000010010100001000035628191705400003001020100001000020200002000010001100001000010
20024112003001110011100001000010010100001000035627191253400003001020100001000020200002000010001100001000010
20024112313001110011100001000010010100001000035628191543400003001020100001000020200002000010001100001000010
20024112413001110011100001000010010100001000035628191813400003001020100001000020200002000010001100001000010

Test 3: throughput

Count: 8

Code:

  stp d0, d1, [x6], #0x10
  stp d0, d1, [x7], #0x10
  stp d0, d1, [x8], #0x10
  stp d0, d1, [x9], #0x10
  stp d0, d1, [x10], #0x10
  stp d0, d1, [x11], #0x10
  stp d0, d1, [x12], #0x10
  stp d0, d1, [x13], #0x10
  mov x7, x6
  mov x8, x6
  mov x9, x6
  mov x10, x6
  mov x11, x6
  mov x12, x6
  mov x13, x6

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code divided by count): 1.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)
1602248236224089380407803068018080408803088000224031813601623200262401142008000680006200160012160012800058000080000100
1602048005324010980105800048000080106800068000224031813601133200262401142008000680006200160012160012800058000080000100
1602048005324010980105800048000080106800068000224031813602113200262401142008000680006200160012160012800058000080000100
1602058014224018780135800348001880136800368000224031813602113200262401142008000680006200160012160012800058000080000100
1602048005324010980105800048000080106800068000224031813602113200262401142008000680006200160012160012800058000080000100
1602048005324010980105800048000080106800068000224031813602113200262401142008000680006200160012160012800058000080000100
1602048005324010980105800048000080106800068000224031813602113200262401142008000680006200160012160012800058000080000100
1602048005324010980105800048000080106800068000224031813602113200262401142008000680006200160012160012800058000080000100
1602058014224018780135800348001880136800368000224031813602113200262401142008000680006200160012160012800058000080000100
1602048005324010980105800048000080106800068000224031813602113200262401142008000680006200160012160012800058000080000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 1.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)
1600448211324081780324803138018080325803158000224004813604893200262400242080006800062016000016000080001800008000010
1600268026724017780076800658003680077800678000224004813603673200262400242080006800062016000016000080001800008000010
1600248005624001180011800008000080010800008000024003013602593200002400102080000800002016000016000080001800008000010
1600248006624001180011800008000080010800008000024003013604393200002400102080000800002016000016000080001800008000010
1600248005624001180011800008000080010800008000024003013602593200002400102080000800002016000016000080001800008000010
1600248005624001180011800008000080010800008000024003013602593200002400102080000800002016000016000080001800008000010
1600248005624001180011800008000080010800008000024003013602593200002400102080000800002016007216007280035800008000010
1600248005624001180011800008000080010800008000024003013602593200002400102080000800002016000016000080001800008000010
1600248005624001180011800008000080010800008000024003013602593200002400102080000800002016000016000080001800008000010
1600248005624001180011800008000080010800008000024003013602593200002400102080000800002016000016000080001800008000010