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, 4S)

Test 1: uops

Code:

  frsqrte 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)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)ld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)f5f6f7f8fd
1004303723061190025100010001000104451030183037303727383289510001000100030373037111001100000073316332919100030383038303830383038
1004303723061190025100010001000104451030183037303727383289510001000100030373037111001100000073216332919100030383038303830383038
1004303722061190025100010001000104451030183037303727383289510001000100030373037111001100000073316332919100030383038303830383038
1004303723061190025100010001000104451030183037303727383289510001000100030373037111001100000073316332948100030383038303830383038
1004303723061190025100010001000104451030183037303727383289510001000100030373037111001100000073316332919100030383038303830383038
1004303723061190025100010001000104451030183037303727383289510001000100030373037111001100000073316332919100030383038303830383038
1004303722961190025100010001000104451030183037303727383289510001000100030373037111001100000073316332919100030383038303830383038
1004303723061190025100010001000104451030183037303727383289510001000100030373037111001100000073316332919100030383038303830383038
1004303722061190025100010001000104451030183037303727383289510001000100030373037111001100000073316332919100030383038303830383038
1004303723061190025100010001000104451030183037303727383289510001000100030373037111001100000073316332919100030383038303830383038

Test 2: Latency 1->2

Code:

  frsqrte 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)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)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)9fa9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
102043003722406119900251010010010000100100005001067451130018300373003728588328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
102043003722406119900251010010010000100100005001067451130018300373003728588328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
102043003722506119900251010010010000100100005001067451030018300373003728588328745101002001000020010000300373003721102011009910010010000100007101161129919100001003003830038300383003830038
102043003722506119900251010010010000100100005001067451130018300373003728588328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
102043003722506119900251010010010000100100005001067451030018300373003728588328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
10204300372256396119900251010010010000100100005001067451130018300373003728588328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
102043003722506119900251010010010000100100005001067451030018300373003728588328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
102043003722506119900251010010010000100100005001067451130018300373003728588328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
102043003722506119900251010010010000100100005001067451030018300373003728588328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038
102043003722506119900251010010010000100100005001067451130018300373003728588328745101002001000020010000300373003711102011009910010010000100007101161129919100001003003830038300383003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)030f1e3f4e51schedule 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)9fld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
100243003722520611990025100101010000101000050106745113001830037300372861032876710010201000020100003003730037111002110910101000010000640416432991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001830037300372861032876710010201000020100003003730037111002110910101000010000640416342991910000103003830038300383003830038
100243003722400821990025100101010000101000050106745113001830037300372861032876710010201000020100003003730037111002110910101000010000640416432991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001830037300372861032876710010201000020100003003730037111002110910101000010001260640416342991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001830037300372861032876710010201000020100003003730037111002110910101000010000640416442991910000103003830038300383003830038
100243008322500611990025100101010000101000050106745113001830037300372861032876710010201000020100003003730037111002110910101000010010640416342991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001830037300372861032876710010201000020100003003730037111002110910101000010000640416442991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001830037300372861032876710010201000020100003003730037111002110910101000010000640416442991910000103003830038300383003830038
100243003722500611990025100101010000121000050106745113001830083300852861032876710010201000020100003003730037111002110910101000010000640416342991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001830037300372861032876710010201000020100003003730037111002110910101000010000640416442991910000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  frsqrte v0.4s, v8.4s
  frsqrte v1.4s, v8.4s
  frsqrte v2.4s, v8.4s
  frsqrte v3.4s, v8.4s
  frsqrte v4.4s, v8.4s
  frsqrte v5.4s, v8.4s
  frsqrte v6.4s, v8.4s
  frsqrte 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)03mmu table walk data (08)l2 tlb miss instruction (0a)l2 tlb miss data (0b)181e1f3f51schedule 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)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
802048004060000000020925801001008000010080000500640000080020800398003969971669993801002008000820080008800398003911802011009910010080000100000000111513111612800360800001008004080040800408004080040
802048003960000000027425801001008000010080000500640000080020800398003969971669993801002008000820080008800398003911802011009910010080000100000000111511721612800360800001008004080040800408004080040
8020480039599000000108225801001008000010080000500640000180020800398003969971669993801002008000820080008800398003911802011009910010080000100000000111511721622800360800001008004080040800408004080040
8020480039599000000255125801001008000010080000500640000080020800398003969971669993801002008000820080008800398003911802011009910010080000100000000111511711612800360800001008004080040800898004080040
8020480039599000000216125801001008000010080000500640000080020800398003969971669993801002008000820080008800398003911802011009910010080000100000000111511711612800360800001008004080040800408004080040
8020480039600000033012725801001008000010080106500640000080020800898003969971669993801002008000820080008800398003911802011009910010080000100000000111511721620800360800001008004080040800408004080040
802048003959900000018872580100100800001008000050064000008002080039800396997166999380100200800082008000880039800391180201100991001008000010000000207111511721612800360800001008004080040800408004080040
80204800885990000300237725801001008000010080000500640000080020800398003969971669993801002008000820080008800398003911802011009910010080000100000000111511711612800360800001008004080040800408004080040
8020480039599000039010225801001008000010080000500640000080020800398003969971669993801002008000820080008800398003911802011009910010080000100000000111511721622800360800001008004080040800408004080040
802048003960000000014625801001008000010080052500640000080020800398003969971669993801002008000820280008800398003911802011009910010080000100000000111511721612800360800001008004080040800408004080040

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)0f1e3a3f51schedule 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)5f61696d6emap 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)acc2branch mispred nonspec (cb)cfd0d2d5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
80024800405990001234258001010800001080000506400000580020800398003969986370019800102080000208000080039800391180021109101080000100000502000151611118003480000108004080040800408004080040
800248003960000005025800101080000108000050640000008002080039800396998637001980010208000020800008003980039118002110910108000010000050200012169138003480000108004080040800408004080040
80024800396000000715618001010800001080000506400000080020800398003969986370019800102080000208000080039800391180021109101080000100000502000121611168003480000108004080040800408004080040
80024800395990000715258001010800001080000506400000080020800398003969986370019800102080000208000080039800391180021109101080000100000502000111613118003480000108004080040800408004080040
8002480039600000050258001010800001080000506400000080020800398003969986370019800102080000208000080039800391180021109101080000100000502000131610118003480000108004080089800408004080040
8002480039600000050258001010800001080000506400000080020800398003969986370019800102080000208000080039800391180021109101080000100000502000131613138003480000108004080040800408004080040
8002480039600000050258001010800001080000506400000080020800398003969986370019800102080000208000080039800391180021109101080000100000502000111611108003480000108004080040800408004080040
8002480039599000050258001010800001080000506400000080020800398003969986370019800102080000208000080039800391180021109101080000101020503000131621148041480000108083280928809808102680040
80024800395990057050258001010800001080000506400000580020800398003969986370019800102080000208000080039800391180021109101080000100000502000111610138003480000108004080040800408004080040
8002480039600000050258001010800001080000506400000080020800398003969986370019800102080000208000080039800391180021109101080000100000502050111612118003480000108004080040800408004080040