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

FRECPX (scalar, D)

Test 1: uops

Code:

  frecpx d0, d0
  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)6061696d6emap 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)accfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)f5f6f7f8fd
10043037230611900251000100010001044511030183037303727383289510001000100030373037111001100000730116112919100030383038303830383038
100430372202391900251000100010001044511030183037303727383289510001000100030373037111001100006730116112919100030383038303830383038
100430372301781900251000100010001044511030183037303727383289510001000100030373037111001100000730116112919100030383038303830383038
10043037220611900251000100010001044511030183037303727383289510001000100030373037111001100000730116112919100030383038303830383038
100430372305501900251000100010001044511030183037303727383289510001000100030373037111001100000730116112919100030383038303830383038
10043037220611884251000100010001044511030183037303727383289510001000100030373037111001100000730116112919100030383038303830383038
100430372202421900251000100010001044511030183037303727383289510001000100030373037111001100000730116112919100030383038303830383038
100430372301701900251000100010001044511030183037303727383289510001000100030373037111001100000730116112919100030383038303830383038
100430372301681900251000100010001044511030183037303727383289510001000100030373037111001100000730116112919100030383038303830383038
100430372201511900251000100010001044511030183037303727383289510001000100030373037111001100000730116112919100030383038303830383038

Test 2: Latency 1->2

Code:

  frecpx d0, d0
  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)0318191e3f4e51schedule 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)9fl1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
1020430037225000611990025101001001000010010000500106745103001803003730037285883287451010020010000200100003003730037111020110099100100100001000071011611299190100001003003830038300383003830038
1020430037225000611990025101001001000010010000500106745103001803003730037285883287451010020010000200100003003730037111020110099100100100001000071011611299190100001003003830038300383003830038
1020430037225000611990025101001001000010010000500106745103001803003730037285883287451010020010000200100003003730037111020110099100100100001000071011611299190100001003003830038300383003830038
1020430037225000611990025101001001000010010000500106745103001803003730037285883287451010020010000200100003003730037111020110099100100100001000071011611299190100001003003830038300383003830038
1020430037225000611990025101001001000010010000500106745113001803003730037285883287451010020010000200100003003730037111020110099100100100001000071011611299190100001003003830038300383003830038
1020430037225000611990025101001001000010010000500106745103001803003730037285883287451010020010000200100003003730037111020110099100100100001000071011611299190100001003003830038300383003830038
1020430037225000611990025101001001000010010000500106745113001803003730037285883287451010020010000200100003003730037111020110099100100100001000071011611299190100001003003830038300383003830038
1020430037225000611990025101001001000010010000500106745103001803003730037285883287451010020010000200100003003730037111020110099100100100001000071011611299190100001003003830038300383003830038
1020430037225000611990025101001001000010010000500106745113001803003730037285883287451010020010000200100003003730037111020110099100100100001000071011611299190100001003003830038300383003830038
1020430037225000611990025101001001000010010000500106745113001803003730037285883287451010020010000200100003003730037111020110099100100100001000071011611299190100001003003830038300383003830038

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)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)9fl1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
100243003722500611990025100101010000101000050106745113001803003730037286103287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001803003730037286103287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001803003730037286103287671001020100002010000300373003711100211091010100001000640316222991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001803003730037286103287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001803003730037286103287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001803003730037286103287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001803003730037286103287671001020100002010000300373007611100211091010100001000640216222991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001803003730037286103287671001020100002010000300373003711100211091010100001003640116222991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745103001803003730037286103287671001020100002010000300373003711100211091010100001000640316222991910000103003830038300383003830038
100243003722500611990025100101010000101000050106745113001803003730037286103287671001020100002010000300373003711100211091010100001000640216222991910000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  frecpx d0, d8
  frecpx d1, d8
  frecpx d2, d8
  frecpx d3, d8
  frecpx d4, d8
  frecpx d5, d8
  frecpx d6, d8
  frecpx d7, d8
  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)03l2 tlb miss instruction (0a)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)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)a9acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
802048004060000003925801001008000010080000500640000180020800398003969971669993801002008000820080008800398003911802011009910010080000100000011151172163480036800001008004080040800408004080040
8020480039599000070425801001008000010080000500640000180020800398003969971669993801002008000820080008800398003911802011009910010080000100000011151174164480036800001008004080040800408004080040
8020480039599000070425801001008000010080000500640000180020800398003969971669993801002008000820080008800398003911802011009910010080000100000011151175173480036800001008004080040800408004080040
802048003959900003925801001008000010080000500640000180020800398003969971669993801002008000820080008800398003911802011009910010080000100000011151174164380036800001008004080040800408004080040
802048003960000003925801001008000010080000500640000180020800398003969971669993801002008000820080008800398003911802011009910010080000100000011151174162380036800001008004080040800408004080040
802048003960000003925801001008000010080000500640000180020800398003969971669993801002008000820080008800398003911802011009910010080000100000011151174163480036800001008004080040800408004080040
802048003959900003925801001008000010080000500640000180020800398003969971669993801002008000820080008800398003911802011009910010080000100000011151173163480036800001008004080040800408004080040
802048003960000003925801001008000010080000500640000180020800398003969971669993801002008000820080048800398003911802011009910010080000100000011151173164380036800001008004080040800408004080040
802048003959900003925801001008000010080000500640000180020800398003969971669993801002008000820080008800398003911802011009910010080000100000011151174164380036800001008004080040800408004080040
8020480039600001203925801001008000010080000500640000180020800398003969971669993801002008000820080008800398003911802011009910010080000100010311151173164480036800001008004080040800408004080040

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l2 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 miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acbranch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)daddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
8002480040600004826450258001010800001080000506400000800208003980039699863700198001020800002080114800398003911800211091010800001000000050204160438003480000108004080040800408004080040
8002480039599000050258001010800001080000506400001800208003980039699863700198001020800002080000800398003911800211091010800001000003050204160438003480000108023880040800408004080040
8002480039599000050258001010800001080000506400001800208003980039699863700198001020800002080000800398003911800211091010800001000400050204160438003480000108004080040800408004080138
8002480039600000092258001010800001080000506400001800208003980039699863700198003620800002080000800398003911800211091010800001000000050204160348003480000108004080040800408004080040
8002480039599100050258001010800001080000506400001800208003980039699863700198001020800002080000800398003911800211091010800001000000050204160448003480000108004080040800408004080040
8002480039599000050258001010800001080026506400001800208003980039699863700198001020800002080000800398003911800211091010800001000000050203160448003480000108004080040800408004080040
8002480039600000050258001010800001080000506400001800208003980039699863700198001020801522080000800398003911800211091010800001000000050203160448003480000108004080040800408004080040
8002480039599000050258001010800001080000506400001800208003980039699863700198001020800002080000800398003911800211091010800001000000050204160348003480000108004080040800408004080040
8002480039599000050258001010800001080000506400001800208003980039699863700198001020800002080000800398003911800211091010800001000000050203160348003480000108004080040800408004080040
8002480039600000050258001010800001080000506400001800208003980039699863700198001020800002080000800398003911800211091010800001000000050204160348003480000108004080040800408004080040