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

FRSQRTE (scalar, H)

Test 1: uops

Code:

  frsqrte h0, h0
  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)031e3f4e51schedule 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
100430372201561900251000100010001044513018303730372738328951000100010003037303711100110000073316112919100030383038303830383038
10043037230611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
10043037220611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
10043037230611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
10043037220611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
10043037230611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
10043037230611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
10043037230611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
10043037230611900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038
10043037230821900251000100010001044513018303730372738328951000100010003037303711100110000073116112919100030383038303830383038

Test 2: Latency 1->2

Code:

  frsqrte h0, h0
  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)031e3a3f4e51schedule 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)a9accdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
102043003722500611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010000007102162229919100001003022930227302293022730085
102043003722500611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010001007102162229919100001003003830038300383003830038
102043003722500611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010000007102162229919100001003003830038300383003830038
102043003722400611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010000007102162229919100001003003830038300383003830038
102043003722500611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010000007102162229919100001003003830038300383003830038
102043003722500611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010000007102162229919100001003003830038300383003830038
102043003722500611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010000007102162229919100001003003830038300383003830038
102043003722500611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010000007102162229919100001003003830038300383003830038
102043003722500611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010001007102162229919100001003003830038300383003830038
102043003722500611990025101001001000010010000500106745113001830037300372858832874510100200100002001000030037300371110201100991001001000010000007102162229919100001003003830038300383003830038

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)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)st unit uop (a7)l1d cache writeback (a8)a9acc2branch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
10024300372250000006119900251001010100001010000501067451030018300373003728610328767100102010000201000030037300371110021109101010000100000000006402162229919010000103003830038300383003830038
10024300372250000006619900251001010100001010000501067451030018300373003728610328767100102010000201000030037300371110021109101010000100000000006402162229919010000103003830038300383003830038
10024300372250000006119900251001010100001010000501067451030018300373003728610328767100102010000201000030037300371110021109101010000100000000006402162229919010000103003830038300383003830038
10024300372250000006119900251001010100001010000501067451030018300373003728610328767100102010000201000030037300371110021109101010000100000000006402162229919010000103003830038300383003830038
100243003722500000015619900251001010100001010000501067451030018300373003728610328767100102010000201000030037300371110021109101010000100000000006402162229919010000103003830038300383003830038
10024300372250000006119900251001010100001010000501067451030018300373003728610328767100102010000201000030037300371110021109101010000100000000006402162229919010000103003830038300383003830038
10024300372250000006119900251001010100001010000501067451030018300373003728610328767100102010000201000030037300371110021109101010000100000000006402162229919010000103003830038300383003830038
10024300372250000006119900251001010100001010000501067451030018300373003728610328767100102010000201000030037300371110021109101010000100000000006402162229919010000103003830038300793003830038
10024300372250000006119900251001010100001010000501067451030018300373003728610328767100102010000201000030037300371110021109101010000100000000006402162229919010000103003830038300383003830038
10024300372250000006119900251001010100001010000501067451030018300373003728610328767100102010000201000030037300371110021109101010000100000000006402162229919010000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  frsqrte h0, h8
  frsqrte h1, h8
  frsqrte h2, h8
  frsqrte h3, h8
  frsqrte h4, h8
  frsqrte h5, h8
  frsqrte h6, h8
  frsqrte h7, h8
  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)031e3f51schedule 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)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
80204800395990392580100100800001008000050064000008002080039800396997166999380100200800082008000880039800391180201100991001008000010000112511701600800360800001008004080040800408004080040
80204800396000392580100100800001008000050064000008002080039800396997166999380100200800082008000880039800391180201100991001008000010000111511701600800360800001008004080040800408004080040
80204800395990392580100100800001008000050064000008002080039800396997166999380100200800082008000880039800391180201100991001008000010000111511701600800360800001008004080040800408004080040
80204800395990392580100100800001008000050064000018002080039800396997167002880178200800082008000880039800391180201100991001008000010000111511701600800360800001008004080040800408004080040
80204800396000269737180561101803601028033851164385708002080039800396997166999380100200800082008000880039800391180201100991001008000010000111511701600800360800001008004080040800408004080040
80204800395990392580100100800001008000050064000008002080039800396997166999380100200800082008000880039800391180201100991001008000010000111511701600800360800001008004080040800408004080040
802048003959903925801001008000010080000500640000080020800398003969971256999380100200800082008000880039800391180201100991001008000010000111511701600800360800001008004080040800898004080040
802048003960007042580100100800001008000050064000008002080039800396997166999380100200800082008000880039800391180201100991001008000010020111511701600800360800001008009080040800408004080040
802048003959907042580100100800001008000050064000008002080039800396997166999380100200800082008000880039800391180201100991001008000010000111511701600800360800001008004080040800408004080040
802048008859902292580100100800001008000050064000008002080039800396997166999380100200800082008000880039800391180201100991001008000010000111511701600800360800001008004080040800408004080040

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)1e1f3f51schedule 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 tlb access (a0)ld unit uop (a6)l1d cache writeback (a8)a9acbranch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0ebec? simd retires (ee)? int retires (ef)f5f6f7f8fd
800248004060000005025801061080000108000050640000180020800398003970049370019800102080000208000080039800391180021109101080000100000189050201816178800340080000108023780040800408004080040
80024800396000000502580010108000010800005064000018002080039800396998637001980010208000020800008003980039118002110910108000010030021005020616178800340080000108004080040800408004080040
8002480039599000050258001010800001080000506400001800208003980039699863700198001020800002080000800398003911800211091010800001000003905020816615800340080000108004080040800408004080040
8002480039599100071258001010800001080000506400001800208023580039699863700198001020800002080000800398023811800211091010800001000102130502017481717800340080000108004080040800408004080040
8002480039599000050258001010800001080000506400000800208003980039699863700198001020800002080000800398003911800211091010800001000001980502017161717800340080000108004080040800408004080040
80024800396000000502580010108000010800005064000008002080039800396998637001980010208000020800008003980039118002110910108000010000015050201716817800340080000108004080040800408004080040
800248003960000005025800101080000108000050640000180020800398003969986370019800102080000208000080039800391180021109101080000100000204050201716714800340080000108004080040800408004080040
800248003960000002622580010108000010800005064000008002080039800396998637001980010208000020800008003980039118002110910108000010000020705020716817800340080000108004080040800408004080040
800248003959900165050258001010800001080000506400001800208003980039699863700198001020800002080150800398003911800211091010800001000002310502017161717800340080000108004080040800408004080040
800248003959900005025800101080000108000050640000080020800398003969986370019800102080000208000080039800391180021109101080000100000204050201716186800340080000108004080040800408004080040