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

Test 1: uops

Code:

  ins v0.h[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
2004203520011100010001000100030045031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000

Test 2: Latency 1->1

Code:

  ins v0.h[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)
2020420035201031011000010002100100001000330030015509314201032001000510005200100052001011000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004202100452009011000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030030509314201022001000410004200100042000811000010000100
2020420035201041011000010003100100001000330030009509314201032001000510005200100052001011000010000100
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)
2002420035200141110000100031010000100003030000509314200102010000100002010000200001100001000010
2002520124200911110020100601010070100003030058509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030008509314200102010000100002010000200001100001000010
2002420035200131110000100021010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100383030210509712200822010040100402010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010

Test 3: Latency 1->2 roundtrip

Code:

  ins v0.h[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)
302049003040101101012000010000100200001001830013764932318738301462001002020038200100023000610001100001000010100
302059006540107101022000310002100200281000030013763442318486301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001001730013766362318969301462001002120039200100023000310001100001000010100
302049003040101101012000010000100200001000030013782352321502301002001000220002200100023000310001100001000010100
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)
30024900384001110011200001000010200001000030137632023184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001001730137668023190473005620100212003920100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100003000010001100001000010010
30024900304001110011200001000010200001001930137685723193073005820100222004220100003000010001100001000010010

Test 4: throughput

Count: 8

Code:

  movi v0.16b, 0
  ins v0.h[2], w8
  movi v1.16b, 0
  ins v1.h[2], w8
  movi v2.16b, 0
  ins v2.h[2], w8
  movi v3.16b, 0
  ins v3.h[2], w8
  movi v4.16b, 0
  ins v4.h[2], w8
  movi v5.16b, 0
  ins v5.h[2], w8
  movi v6.16b, 0
  ins v6.h[2], w8
  movi v7.16b, 0
  ins v7.h[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)
2402046035716011010180004800051008000880008300240024629602160116200800088000820080008160016180000160000100
2402046010516011110180004800061008000880008300240219629959160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629897160116200800088000820080008160016180000160000100
2402056016016017010180033800361008003780008300240024629900160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240065630011160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240107629984160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240041629916160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240065629936160116200800088000820080008160016180000160000100

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)
2400246227916002111800048000610800088003830240114627017160086208003880038208000916001618000016000010
2400246064516001111800008000010800008000030240000623431160010208000080000208000016000018000016000010
2400246023516001111800008000010800008000030240000623371160010208000080000208000016000018000016000010
2400246023316001111800008000010800008000030240000623164160010208000080000208000016000018000016000010
2400246024116001111800008000010800008000030240000623164160010208000080000208000016000018000016000010
2400246023516001111800008000010800008000030240000623164160010208000080000208000016000018000016000010
2400246024116001111800008000010800008000030240000623373160010208000080000208000016000018000016000010
2400246022016001111800008000010800008000030240000623161160010208000080000208000016000018000016000010
2400246023816001111800008000010800008000030240000623166160010208000080000208000016000018000016000010
2400246022216001111800008000010800008000030240000623172160010208000080000208000016000018000016000010