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

CSET (64-bit)

Test 1: uops

Code:

  cset x0, hi
  mov x0, 1

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 1.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)033a3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)606d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst int alu (97)9fl1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004369203625100010001000500013693692063225100010001000369661110011000100000732182236610001000370370370370370
1004369203625100010001000500013693692063225100010001000369661110011000100030732182236610001000370370370370370
1004369203625100010001000500013693692063225100010001000369661110011000100020732182236610001000370370370370370
1004369308925100010001000500013693692063225100010001000369661110011000100000732182236610001000370370370370370
1004369203625100010001000500013693692063225100010001000369661110011000100000732182236610001000370370370370370
1004369303625100010001000500013693692063225100010001000369661110011000100000732182236610001000370370370370370
100436930362510001000100050001369369206322510001000100036966111001100010000230732182236610001000370370370370370
100436930362510001000100050001369369206322510001000100036966111001100010000245732182236610001000370370370370370
1004369203625100010001000500013693692063225100010001000369661110011000100000732182236610001000370370370370370
1004369303625100010001000500013693692063225100010001000369661110011000100000732182236610001000370370370370370

Test 2: Latency 1->2

Chain cycles: 1

Code:

  cset x0, hi
  tst x0, 1
  mov x0, 1

(non-fused SUB/CBNZ loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 1 chain cycle): 1.0035

retire uop (01)cycle (02)031e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst int alu (97)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)? int retires (ef)f5f6f7f8fd
2020420035150327611993025202002020020212129773304916955200352003517425717485202122022420224200801041120201100992010010000001111320216112001120100101002003620036200362003620036
20204200351500611993025202002020020212129773314916955200352003517425717486202122022420224200351041120201100992010010000001111320116112001120100101002003620036200362003620036
20204200351500611993025202002020020212129773304916955200352003517425717486202122022420224200351041120201100992010010000001111320116112001120100101002003620036200362003620036
20204200351500611993025202002020020212129773304916955200352003517425717485202122022420224200351041120201100992010010000101111319116122001120100101002003620036200362003620036
20204200351500611993025202002020020212129773304916955200352003517425817486202122022420224200351041120201100992010010000001111319116112001120100101002003620036200362003620036
20204200351503611993025202002020020212129773304916955200352003517432717486202122022420224200351041120201100992010010000001111320216212001120100101002003620081200362003620036
20204200351490611993025202002020020212129773304916955200352003517425717486202122022420224200351041120201100992010010000001111319116112001120100101002003620036200362003620036
20204200351500611993025202002020020212129773304916955200352003517425717486202122022420224200351041120201100992010010000001111320116112001120100101002003620036200362003620036
20204200351500611993025202002020020212129773314916955200352003517425817485202122022420224200351041120201100992010010000001111319116122001120100101002003620036200362003620036
20204200351500611993025202002020020212129773304916955200352003517425717486202122022420224200351041120201100992010010000001111319116112001120100101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code, minus 1 chain cycle): 1.0035

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss instruction (0a)1e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6b6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst int alu (97)9fl1d cache writeback (a8)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
200242003515000876119918252002020020200201297297149169550200352003517428317504200202002020020200351041120021109200101000001270227111999520010100102003620036200362003620036
20024200351500006119918252002020020200201297297049169550200352003517428317504200202002020020200351041120021109200101000001270127111999520010100102003620036200362003620036
20024200351500006119918252002020020200201297297149169550200352003517428317504200202002020020200351041120021109200101000001270127111999520010100102003620036200362003620036
200242003515000025119918252002020020200201297297049169550200352003517428317504200202002020020200351041120021109200101000001270127111999520010100102003620036200362003620036
20024200351500006119918252002020020200201297297049169550200352003517428317504200202011620020200351041120021109200101000001270127111999520010100102003620036200362003620036
20024200351501006119918252002020020200201297297049169550200352003517428317504200202002020020200351041120021109200101000001270127111999520010100102003620036200362003620036
200242003515000306119918252002020020200201297297049169550200352003517428317504200202002020020200351041120021109200101000001270127111999520010100102006720067200362003620036
2002420035150002193519918252002020020200201297297149169550200352003517428317504200202002020020200351041120021109200101000001270127111999520010100102003620036200362003620036
200242003515000038319918252002020020200201297297149169550200352003517428317504200202002020020200351041120021109200101000001270127111999520010100102003620036200362003620036
20024200351500006119918252002020020200201297297049169550200352003517428317504200202030420020200351041120021109200101000001270127111999520010100102003620036200362003620036

Test 3: throughput

Count: 8

Code:

  cset x0, hi
  cset x1, hi
  cset x2, hi
  cset x3, hi
  cset x4, hi
  cset x5, hi
  cset x6, hi
  cset x7, hi
  mov x0, 0
  cmp x0, x0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)031e3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d cache writeback (a8)accdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204267972000362580100801008010047979914923656267362673616672316691801008020080200267366611802011009910080100801000005110219112673280000801002673726737267372673726737
80204267362070362580100801008010047979914923656267362673616672316691801008020080200267366611802011009910080100801002305110119112673280000801002673726737267372673726737
80204267362000362580100801008010047979904923656267362673616672316691801008020080200267366611802011009910080100801001005110119112673280000801002673726737267372673726737
80204267362000362580100801008010047979914923656267362673616672316691801008020080200267366611802011009910080100801002605110119112673280000801002673726737267372673726737
802042673620003625801008010080100479799149236562673626736166723166918010080200802002673666118020110099100801008010007805110119112673280000801002673726737267372673726737
80204267362000362580100801008010047979904923656267362673616672316691801008020080200267366611802011009910080100801001005110119112673280000801002673726737267372673726737
80204267362000362580100801008010047979914923656267362673616672316691801008020080200267366611802011009910080100801002005110119112673280000801002673726737267372673726737
80204267362000362580100801008010047979914923656267362673616672316691801008020080200267366611802011009910080100801001005110119112673280000801002673726737267372673726737
8020426736201036258010080100801004797990492365626736267361667231669180100802008020026736661180201100991008010080100117105110119112673280000801002673726737267372673726737
80204267362000362580100801008010047979904923656267362673616672316691801008020080200267366611802011009910080100801001605110119112673280000801002673726737267372673726737

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)031e1f3a3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d tlb miss (a1)l1d cache writeback (a8)a9acc2cfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
800242672320000036258001080010800104720594923626267062670616665316684800108002080020267066611800211091080010800100000050200318322670280000800102670726707267072670726707
800242670620000036258001080010800104720594923626267062670616665316684800108002080020267066611800211091080010800100000050200318232670280000800102670726707267072670726707
8002426706200300212258001080010800774720594923626267062670616665316684800108002080020267066621800211091080010800100040050200318332670280000800102670726707267072670726707
800242670620000078258001080010800104720594923626267062670616665316684800108002080020267066611800211091080010800100000050200218332670280000800102670726707267072670726707
800242670620000036258001080010800104720594923626267062670616665316684800108002080020267066611800211091080010800102103250200318322670280000800102670726707267072670726707
8002426706207088036258001080010800104720594923963267062670616665316684800108002080020267066611800211091080010800100400050200218322670280000800102670726707267072670726707
800242670620000036258001080010800104720594923626267062670616665316684800108002080020267066611800211091080010800100000050200218332670280000800102670726707267072670726707
800242670620000036258001080010800104720594923626267062670616665316684800108002080020267066611800211091080010800100000050200318232670280000800102670726707267072670726707
800242670619900036258001080010800104720594923626267062670616665316684800108002080020267066611800211091080010800100000050200318322670280000800102670726707267072670726707
800242670620000036258001080010800104720594923626267062670616665316684800108002080020267066611800211091080010800100000050200318332670280000800102670726707267072670726707