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

URECPE (vector, 4S)

Test 1: uops

Code:

  urecpe v0.4s, v0.4s
  movi v0.16b, 1
  movi v1.16b, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)03181e3f4e51schedule uop (52)schedule simd uop (54)dispatch simd uop (57)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map simd uop (7e)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst simd alu (9a)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)f5f6f7f8fd
100430372400611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
1004303723001031900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
100430372300611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
1004303723002511900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
1004303723093611900251000100010001044513018303730372738328951000100010003037303711100110001073116112919100030383038303830383038
100430372300611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
100430372300611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
100430372300611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
100430372303611900251000100010001044513018303730372738328951000100010003037303711100110000073124112919100030383038303830383038
10043037240132611900251000100010001044513018303730372738328951000100010003037303711100110001073116112919100030383038303830383038

Test 2: Latency 1->2

Code:

  urecpe v0.4s, v0.4s
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)03l1i tlb fill (04)l2 tlb miss data (0b)18191e3a3f4e51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
1020430037233105000611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010008707101161129919100001003003830038300383003830038
1020430037233001100611990025101001001000010010000500106745103001830037300372858832874510100200100002001000030037300371110201100991001001000010001207101161129919100001003003830038300383003830038
10204300372320000001031990025101001001000010010000500106745103001830037300372858832874510100200100002001000030037300371110201100991001001000010002107101161129919100001003003830038300383003830038
1020430037233000000611990025101001001000010010000500106745103001830037300372858832874510100200100002001000030037300371110201100991001001000010007807101161129919100001003003830038300383003830038
1020430037233000000611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010002107101161129919100001003003830038300383003830038
1020430037233000000611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010002107101162029919100001003003830038300383003830038
10204300372320000001171990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010008407101161129919100001003003830038300383003830038
1020430037232000000611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010002107101161129919100001003003830038300383003830038
1020430037233000000611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010009907101161129919100001003003830038300383003830038
102043003723200001205811990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010001207101161129919100001003003830038300383003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3f4e51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)simd prf full (72)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)acbranch mispred nonspec (cb)cfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
1002430037233000000611990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000000064002162229919010000103003830038300383003830038
10024300372320000001561990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000000064002162229919010000103003830038300383003830038
1002430037233000000611990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000000064002162229919010000103003830038300383003830038
1002430037233000000611990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000000064002162229919010000103003830038300383003830038
1002430037225000000611990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000000064002162229919010000103003830038300383003830038
1002430037225000000611990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000000064002162229919010000103003830038300383003830038
10024300372250000001031990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000000064002162229919010000103003830038300383003830038
1002430037225000000611990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000000064002162229919010002103003830038300383003830038
1002430037225000000611990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000000064002162229919010000103003830038300383003830038
1002430037225000000611990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000000064002162229919010000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  urecpe v0.4s, v8.4s
  urecpe v1.4s, v8.4s
  urecpe v2.4s, v8.4s
  urecpe v3.4s, v8.4s
  urecpe v4.4s, v8.4s
  urecpe v5.4s, v8.4s
  urecpe v6.4s, v8.4s
  urecpe v7.4s, v8.4s
  movi v8.16b, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss data (0b)18191e1f3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)60696b6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fld unit uop (a6)l1d cache writeback (a8)a9acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
802048004059900000000392580100100800001008000050064000018002008003980039699716699938010020080008200800088003980039118020110099100100800001000000011151172162280036800001008004080040801388004080040
802048003959900000000392580100100800001008000050064000018002008003980039699716699938010020080008200800088003980039118020110099100100800001000000011151172162280036800001008004080040800408004080040
802058003960000000000392580100100800001008000050064000008002008003980039699716699938010020080008200800488003980039118020110099100100800001000000011151171162180036800001008004080040800408004080040
802048003959900000000392580100100800001008000050064000018002008003980039699716699938010020080008200800088003980039118020110099100100800001000000011151172162180036800001008004080040800408004080040
802048003960000000000392580100100800001008000050064000018002008003980039699716699938010020080008200800088003980039118020110099100100800001000000011151172162280036800001008004080040800408004080089
8020480039600000000007042580100100800001008000050064000008002008003980039699716699938010020080008200800088003980039118020110099100100800001000000011151172162280036800001008004080040800408004080040
8020480039600000000007042580100100800001008000050064000008002008003980039699716699938010020080008200800088003980039118020110099100100800001000000011151171162280036800001008004080040800408004080040
802048003960000000000392580100100800001008000050064000008002008003980039699716699938010020080008200800088003980039118020110099100100800001000000011151171162180036800001008004080040800408004080040
802048003960000000000392580100100800001008000050064000008002008003980039699716699938010020080008200800088003980039118020110099100100800001000000011151171162180036800001008004080040800408004080040
802048003960000000000392580100122800001008000050064000008002008003980039699716699938010020080008200800088003980039118020110099100100800001000100011151172162180036800001008004080040800408004080040

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)0318191e1f3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)696d6emap stall dispatch (70)simd prf full (72)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
800248004059900009625800101080000108000050640000800208003980039699860370019800102080000208000080039800391180021109101080000100005020216118003480000108004080040800408004080040
80024800396000000147025800101080000108000050640000800208003980039699860370019800102080000208000080039800391180021109101080000100005020116118003480000108004080040800408004080040
800248003960000005025800101080000108000050640000800208003980039699860370019800102080000208000080039800391180021109101080000100005020116118003480000108004080040800408004080040
800248003959900005025800101080000108000050640000800208003980039699860370058800102080000208000080039800391180021109101080000100005020216118003480000108004080040800408004080040
800248003960000005025800101080000108000050640000800208003980039699860370019800102080000208000080039800391180021109101080000100005020116118003480000108004080040800408004080040
800248003959900005025800101080000108000050640000800208003980039699863370019800102080000208000080039800391180021109101080000100005020116118003480000108004080040800408004080040
800248003960100005025800101080000108000050640000800208003980039699860370019800102080000208000080039800391180021109101080000100005020116118003480000108004080040800408004080040
800248003960000005025800101080000108000050640000800208003980039699860370019800102080000208000080039800391180021109101080000100005020116218003480000108004080040800408004080040
800248003960000005025800101080000108000050640000800208003980039699860370019800102080000208000080039800391180021109101080000101005020116118003480000108004080040800408004080040
800248003960000005025800101080000108000050640000800208003980039699860370019800102080000208000080039800391180021109101080000100005020116118003480000108004080040800408004080040