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

INS (general, S)

Test 1: uops

Code:

  ins v0.s[2], w1
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 2.000

Issues: 2.000

Integer unit issues: 0.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 simd uop (57)dispatch ldst uop (58)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)
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000

Test 2: Latency 1->1

Code:

  ins v0.s[2], w1
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0035

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)
2020420035201031011000010002100100001000330030009509314201032001000510005200100052001011000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

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)
2002420035200141110000100031010000100033030009509314200132010005100052010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030006509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010

Test 3: Latency 1->2 roundtrip

Code:

  ins v0.s[2], w0
  fmov x0, d0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 9.0030

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)
302049003040101101012000010000100200001000130013763282318460301012001000220004200100023000610001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001001830013770532319596301462001002120039200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001001930013765472318813301482001002220042200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001001930013765382318813301482001002220042200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100

1000 unrolls and 10 iterations

Result (median cycles for code): 9.0030

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)
30024900304001110011200001000010200001000030137632023184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30025900634001810013200031000210200291000030137645223186683001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001001930137654723188133005820100222004220100003000010001100001000010010

Test 4: throughput

Count: 8

Code:

  movi v0.16b, 0
  ins v0.s[2], w8
  movi v1.16b, 0
  ins v1.s[2], w8
  movi v2.16b, 0
  ins v2.s[2], w8
  movi v3.16b, 0
  ins v3.s[2], w8
  movi v4.16b, 0
  ins v4.s[2], w8
  movi v5.16b, 0
  ins v5.s[2], w8
  movi v6.16b, 0
  ins v6.s[2], w8
  movi v7.16b, 0
  ins v7.s[2], w8
  mov x8, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

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)
2402046039716011110180004800061008000880098300242736632136160294200800988009620080069160136180000160000100
2402046010816011110180004800061008000880039300240941630887160176200800398003720080008160016180000160000100
2402046045116028610180092800931008009680008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240047629927160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046020816016910180033800351008003780008300240042629918160116200800088000820080128160250180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046020716017010180034800351008003880009300240027629816160117200800098000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080039160076180000160000100

1000 unrolls and 10 iterations

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

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)
2400246226816002111800048000610800088000030240000628370160010208000080000208000016000018000016000010
2400246065316001111800008000010800008000030240000629736160010208000080000208000016000018000016000010
2400246021316001111800008000010800008000030240000629766160010208000080000208000016000018000016000010
2400246023916001111800008000010800008000030240000629550160010208000080000208003816007418000016000010
2400246026216001111800008000010800008000030240000629591160010208000080000208000016000018000016000010
2400246022916001111800008000010800008000030240000629516160010208000080000208000016000018000016000010
2400246022916001111800008000010800008000030240000629413160010208000080000208000016000018000016000010
2400246024316001111800008000010800008000030240029629366160010208000080000208000016000018000016000010
2400246022016001111800008000010800008000030240000629601160010208000080000208000016000018000016000010
2400246023716001111800008000010800008000030240000629617160010208000080000208000016000018000016000010