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

Test 1: uops

Code:

  ins v0.d[1], x1
  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.d[1], x1
  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)
2020420035201041011000010003100100001000330030009509314201032001000510005200100052001011000010000100
2020420035201041011000010003100100001000230030012509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001016431433292511705204122041016610166200100042000811000010000100
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)
2002420035200131110000100021010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030006509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030004509314200102010000100002010000200001100001000010

Test 3: Latency 1->2 roundtrip

Code:

  ins v0.d[1], x0
  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)
302049003040101101012000010000100200001000130013763222318460301012001000220004200100023000310001100001000010100
302049003040101101012000010000100200001000030013763452318486301002001000220002200100223006310003100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763602318512301002001000220002200100023000310001100001000010100
302059006340108101032000310002100200291000030013768352319266301002001000220002200100023000310001100001000010100
302049004940101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100

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)
30025900634001810013200031000210200291000030137633823184863001020100022000220100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001001830137649823187383005620100212003920100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010

Test 4: throughput

Count: 8

Code:

  movi v0.16b, 0
  ins v0.d[1], x8
  movi v1.16b, 0
  ins v1.d[1], x8
  movi v2.16b, 0
  ins v2.d[1], x8
  movi v3.16b, 0
  ins v3.d[1], x8
  movi v4.16b, 0
  ins v4.d[1], x8
  movi v5.16b, 0
  ins v5.d[1], x8
  movi v6.16b, 0
  ins v6.d[1], x8
  movi v7.16b, 0
  ins v7.d[1], x8
  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)
2402056042816017210180035800361008003980008300240083629385160116200800088000820080008160016180000160000100
2402046010516011110180004800061008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046010116011110180004800061008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240082629756160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009716011110180004800061008000880008300240024629902160116200800088000820080008160016180000160000100

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)
2400246219816002111800048000610800088000030240000628522160010208000080000208000016000018000016000010
2400246060316001111800008000010800008000030240078624380160010208000080000208003816007618000016000010
2400246037116001111800008000010800008000030240127624254160010208000080000208000016000018000016000010
2400246025616001111800008000010800008000030240041623291160010208000080000208000016000018000016000010
2400246025916001111800008000010800008000030240000623164160010208000080000208000016000018000016000010
2400246047716001111800008000010800008000030240000623226160010208000080000208000016000018000016000010
2400246024216001111800008000010800008000030240064624232160010208000080000208000016000018000016000010
2400246028016001111800008000010800008000030240035626252160010208000080000208000016000018000016000010
2400246034116006911800298002910800298000030240026623321160010208000080000208002916005818000016000010
2400246023916001111800008000010800008003830240307627275160086208003880038208000016000018000016000010