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 (vector, 4H)

Test 1: uops

Code:

  frsqrte v0.4h, v0.4h
  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)60696d6emap 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 tlb miss (a1)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)f5f6f7f8fd
1004303723061190025100010001000104451130183037303727383289510001000100030373037111001100000073116112919100030383038303830383038
100430372311161190025100010001000104451130183037303727383289510001000100030373037111001100000073116112919100030383038303830383038
1004303722061190025100010001000104451130183037303727383289510001000100030373037111001100000073116112919100030383038303830383038
1004303723061190025100010001000104451130183037303727383289510001000100030373037111001100000073116112919100030383038303830383038
1004303722061190025100010001000104451130183037303727383289510001000100030373037111001100000073116112919100030383038303830383038
1004303723061190025100010001000104451130183037303727383289510001000100030373037111001100000073116112954100030383038303830383038
1004303722061190025100010001000104451130183037303727383289510001000100030373037111001100000073116112919100030383038303830383038
1004303723061190025100010001000104451130183037303727383289510001000100030373037111001100000073116112919100030383038303830383038
100430372322561190025100010001000104451130183037303727383289510001000100030373037111001100000073116112919100030383038303830383038
1004303723061190025100010001000104451130183037303727383289510001000100030373037111001100000073116112919100030383038303830383038

Test 2: Latency 1->2

Code:

  frsqrte v0.4h, v0.4h
  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)031e3f4e51schedule 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 cache writeback (a8)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
1020430037225061199002510100100100001001000050010674510300183003730037285880328745101002001000020010000300373003711102011009910010010000100027102161129919100001003003830038300383003830038
1020430037225061199002510100100100001001000050010674510300183003730037285880328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
1020430037225061199002510100100100001001000050010674510300183003730037285880328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
1020430037225061199002510100100100001001000050010676120300183003730037285880328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
1020430037225061199002510100100100001001000050010674510300183003730037285880328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
1020430037225061199002510100100100001001000050010674510300183003730037285880328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
1020430037225061199002510100100100001001000050010674510300183003730037285880328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
10204300372240943199002510100100100001001000050010674510300183003730037285880328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
1020430037225061199002510100100100001001000050010674510300183003730037285880328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
1020430037225061199002510100100100001001000050010674510300183003730037285880328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)031e1f3f4e51schedule 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 cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
1002430037224005801990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
1002430037224008731990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
10024300372250010251990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
10024300372250011081990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
1002430037225004281990025100101010008101008450106745103001830037300372861003287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
10024300372250015341990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
1002430037225003761990025100101010000101000050106745113001830037300372861003287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
1002430037224009971990025100101010000101000050106745113001830037300372861003287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
1002430037225009711990025100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
100243003722500611988425100101010000101000050106745103001830037300372861003287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  frsqrte v0.4h, v8.4h
  frsqrte v1.4h, v8.4h
  frsqrte v2.4h, v8.4h
  frsqrte v3.4h, v8.4h
  frsqrte v4.4h, v8.4h
  frsqrte v5.4h, v8.4h
  frsqrte v6.4h, v8.4h
  frsqrte v7.4h, v8.4h
  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)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f51schedule 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)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)st unit uop (a7)l1d cache writeback (a8)acc2branch 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
8020480040600000000070425801001008000010080000500640000080020080039800396997106699938010020080008200800088003980039118020110099100100800001000000000111511701600800360800001008004080040800408004080078
80204800396000000000199325801001008000010080000500640000080020080039800396997106699938010020080008200800088003980039118020110099100100800001000000000111511701600800360800001008004080040800408004080040
80204800396000000000141625801001008000010080000500640000080020080039800396997106699938010020080008200800088003980039118020110099100100800001000000000111511701600800360800001008004080040800408004080040
80204800396000000000209825801001008000010080000500640000180020080039800396997106699938010020080008200800088003980039118020110099100100800001004000020600111514311600800360800001008068080878806328097980978
802048043459900001200101925801001008000010080000500640000180020080039800396997106699938010020080008200800088003980039118020110099100100800001000000000111511701600800360800001008004080040800408004080040
8020480039600001500038225801001008000010080000500640000080020080039800396997106699938010020080008200800088003980039118020110099100100800001000000100111511701600800360800001008004080040800408004080040
80204800395990000000156625801001008000010080000500640000080020080039800396997106699938010020080008200800088003980039118020110099100100800001000000000111511701600800360800001008004080040800408004080040
80204800395990000000117125801001008000010080000500640000180020080039800396997106699938010020080008200800558003980039118020110099100100800001000000200111511701600800360800001008004080040800408004080040
80204800395990000000279525801001008000010080000500640000080020080039800396997106699938010020080008200800088003980039118020110099100100800001000000000111511701600800360800001008004080040800408004080040
80204800395990000000194625801001008002410080000500640000180020080039800396997106699938010020080008200800088003980039118020110099100100800001002000000111511701600800740800001008004080040801388004080040

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)191e1f3f51schedule 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)5f60696d6emap 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 miss (a1)l1d cache writeback (a8)acbranch mispred nonspec (cb)cfd2l1i cache miss demand (d3)d5map dispatch bubble (d6)d9daddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
8002480040599009050258001010800001080000506400000080020800398003969986037001980010208000020800008003980039118002110910108000010000050200031600338003480000108004080040800408004080040
8002480039599000050258001010800001080000506400000080020800398003969986037001980010208000020800008003980039518002110910108000010000050200021600238003480000108004080040800408004080040
800248003960000001988258001010800001080000506400000080020800398003969986037001980010208000020800008003980039118002110910108000010000050200021600338003480000108004080040800408004080040
80024800396000000502580010108000010800005064000000801728003980039699860167012980114208000020800008003980039218002110910108000010401725050720021600338007280000108004080090800408004080040
80024802166000258231650258001010800001080000506400000080020800398003969986037001980010208000020800008003980039118002110910108000010000050200031600338003480000108004080040800408004080040
80024800396000015050258001010800001080000506400000080020800398003969986337001980010208000020800008003980039118002110910108000010000050200021600338003480000108004080040800408004080040
8002480039600000050258001010800001080000506400000080020800398003969986037001980010208000020800008003980039518002110910108000010000050200041600338008580000108004080040800408004080040
80024800395990000502580010108000010800005064000000800208003980039699860370019800102080000208000080039800391180021109101080000100510150200041600338003480000108004080040800408004080040
8002480039599000050258001010800001080000506400000080020800398003969986037001980010208000020800008003980039118002110910108000010000050200031600248003480000108004080040800408004080040
8002480039599000050258001010800001080000506400000080020800398003969986037001980010208000020800008003980039118002110910108000010000050200031600328003480000108004080040800408004080040