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

Test 1: uops

Code:

  ins v0.b[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
2004203520011100010001000100030005031420001000100010402080110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000
2004203520011100010001000100030005031420001000100010002000110001000

Test 2: Latency 1->1

Code:

  ins v0.b[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
2020420035201031011000010002100100001000330030009509314201032001000510005200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100042000811000010000100
2020420035201031011000010002100100001000230030006509314201022001000410004200100442008811000010000100
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
2002420035200111110000100001010000100403030176509712200842010044100442010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010
2002420035200111110000100001010000100003030000509314200102010000100002010000200001100001000010

Test 3: Latency 1->2 roundtrip

Code:

  ins v0.b[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)
302049003040101101012000010000100200001000130013763222318460301012001000220004200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302059006340108101032000310002100200291000130013763282318460301012001000220004200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100
302049005640101101012000010000100200001000030013764262318616301002001000220002200100023000310001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100023000310001100001000010100

1000 unrolls and 10 iterations

Result (median cycles for code): 9.0063

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)
30025900664001810013200031000210200291000030137653723187983001020100022000220100023000610001100001000010010
30024902324003310017200101000610200601012430138285423293963034420101312025820101123032610017100001000010010
30024900344001110011200001000010200001000030137632823184603001020100002000020100023000310001100001000010010
30024906704008710031200351002110202101010630138378723309023029620101132022320100003000010001100001000010010
30024900304001110011200001000010200001001830137650723187383005620100212003920100003000010001100001000010010
30024900304001110011200001000010200001001930137654723188133005820100222004220100003000010001100001000010010
30025901604002810015200081000510200581000030137658923188763001020100002000020101683049110025100001000010010
30024905514006510025200251001510201501000030137637923185383001020100002000020100003000010001100001000010010
30025900634001810013200031000210200291001830137668723190243005620100212003920100003000010001100001000010010
30024903294004410020200151000910200901017930138667323354903048920101852036420100753022210012100001000010010

Test 4: throughput

Count: 8

Code:

  movi v0.16b, 0
  ins v0.b[2], w8
  movi v1.16b, 0
  ins v1.b[2], w8
  movi v2.16b, 0
  ins v2.b[2], w8
  movi v3.16b, 0
  ins v3.b[2], w8
  movi v4.16b, 0
  ins v4.b[2], w8
  movi v5.16b, 0
  ins v5.b[2], w8
  movi v6.16b, 0
  ins v6.b[2], w8
  movi v7.16b, 0
  ins v7.b[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)
2402046034216011110180004800061008000880008300240024629551160116200800088000820280038160074280000160000100
2402046024916011110180004800061008000880008300240024629802160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240064622586160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046010316011110180004800061008000880008300240196630155160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046009216011010180004800051008000880008300240024629902160116200800088000820080008160016180000160000100
2402046010116011210180005800061008000880008300240064629811160116200800088000820080008160016180000160000100

1000 unrolls and 10 iterations

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

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)
2400246189416002211800058000610800098000930240027628377160027208000980008208000016000018000016000010
2400246060916001111800008000010800008000030240000623130160010208000080000208000016000018000016000010
2400246023616001111800008000010800008000030240000623247160010208000080000208000016000018000016000010
2400246121816002211800058000610800088000030240000623445160010208000080000208000016000018000016000010
2400246023616001111800008000010800008000030240000623370160010208000080000208000016000018000016000010
2400246021716001111800008000010800008000030240000623423160010208000080000208000016000018000016000010
2400246022216001111800008000010800008000030240000623539160010208000080000208000016000018000016000010
2400246023916001111800008000010800008000030240000623353160010208000080000208000016000018000016000010
2400246024616001111800008000010800008000030240000623381160010208000080000208000016000018000016000010
2400246022016001111800008000010800008000030240000623622160010208000080000208000016000018000016000010