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

CSETM (32-bit)

Test 1: uops

Code:

  csetm w0, 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)031e3f51schedule 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
1004369303625100010001000500013693692063225100010001000369661110011000100000731181136610001000370370370370370
1004369203625100010001000500013693692063225100010001000369661110011000100000731181136610001000370370370370370
1004369303625100010001000500013693692063225100010001000369661110011000100000731181136610001000370370370370370
1004369233625100010001000500013693692063225100010001000369661110011000100000731181136610001000370370370370370
1004369303625100010001000500013693692063225100010001000369661110011000100000731181136610001000370370370370370
1004369303625100010001000500013693692063225100010001000369661110011000100000731181136610001000370370370370370
1004369303625100010001000500013693692063225100010001000369661110011000100000731181136610001000370370370370370
1004369303625100010001000500013693692063225100010001000369661110011000100000731181136610001000370370370370370
1004369303625100010001000500013693692063225100010001000369661110011000100000731181136610001000370370370370370
1004369303625100010001000500013693692063225100010001000369661110011000100000731181136610001000370370370370370

Test 2: Latency 1->2

Chain cycles: 1

Code:

  csetm w0, 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)03mmu table walk instruction (07)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f3a3f4d51schedule 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 tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
202042003515000000014400611993025202002020020212129773304916955200352003517425817485202122022420224200351041120201100992010010000000000011113200216222001320100101002003620036200362003620036
2020420035150101000000611993025202002020020212129773314916955200352003517425717486202122022420224200351041120201100992010010000000000011113200216222001320100101002003620036200362003620036
202042003515010100013801611993025202002020020212129773314916955200352003517425817486202122022420224200351041120201100992010010000000000011113200216222001320100101002003620036200362003620036
20204200351502010000016119930252020020200202121297733149169552003520035174258174852021220224202242003510411202011009920100100000000024011113190216222001320100101002003620036200362003620036
2020420035150101000001611993025202002020020212129773304916955200352003517425717486202122022420224200351041120201100992010010000000000011113200216222001320100101002003620036200362003620036
2020420035150101000001611993025202002020020212129773314916955200352003517425717485202122022420224200351041120201100992010010000000100011113190216222001320100101002003620036200362003620036
2020420035150101000001611993025202002020020212129773314916955200352003517425817485202122022420224200351041120201100992010010000000000011113200216222001320100101002003620036200362003620036
202042003515010100022801611993025202002020020212129773304916955200352003517425717485202122022420224200351041120201100992010010000000000011113190216222001320100101002003620036200362003620036
20204200351491010001801611993025202002020020212129773314916955200352003517425717486202122022420224200351041120201100992010010000000200011113190216222001320100101002003620036200362003620036
2020420035150101000001611993025202002020020212129773304916955200352003517425717486202122022420224200351041120201100992010010000000000011113190216222001320100101002003620036200362003620036

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)0318191e3f4d51schedule 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
200242003515000025119918252002020020200201297297149169552003520035174283175042002020020200202003510411200211092001010000001270227111999520010100102003620036200362003620036
20024200351490006119918252002020020200201297297149169552003520035174283175042002020020200202003510411200211092001010000001270127111999520010100102003620036200362003620036
20024200351501006119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270127111999520010100102003620036200362003620036
20024200351500021610319918252002020020200201297297149169552003520035174283175042002020020200202003510411200211092001010000001270127111999520010100102003620036200362003620036
20024200351500006119918252002020020200201297297149169552003520035174283175042002020020200202003510411200211092001010000001270127111999520010100102003620036200362003620036
20024200351500006119918252002020020200201297297149169552003520035174283175042002020020200202003510411200211092001010000001270127111999520010100102003620036200362003620036
20024200351500066119918252002020020200201297297149169552003520035174283175042002020020200202003510411200211092001010000001270127111999520010100102003620036200362003620036
2002420035150002796119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270127111999520010100102003620036200362003620036
200242003515000246119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270127111999520010100102003620036200362003620036
20024200351500006119918252002020020200201297297149169552003520035174283175042002020020200202003510411200211092001010000001270127111999520010100102003620036200362003620036

Test 3: throughput

Count: 8

Code:

  csetm w0, hi
  csetm w1, hi
  csetm w2, hi
  csetm w3, hi
  csetm w4, hi
  csetm w5, hi
  csetm w6, hi
  csetm w7, 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)9fld unit uop (a6)l1d cache writeback (a8)a9acbranch cond mispred nonspec (c5)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204267402010362580100801008010047979904923656267362673616672316691801008020080200267366611802011009910080100801000000005110319222673280000801002673726737267372673726737
80204267362010362580100801008010047979904923656267362673616672316691801008020080200267366611802011009910080100801000100005110219222673280000801002673726737267372673726737
80204267362000362580100801008010047979914923656267362673616672316691801008020080200267366611802011009910080100801000200005110219222673280000801002673726737267372673726737
80204267362010362580100801008010047979914923656267362673616672316691801008020080200267366611802011009910080100801000300005110219222673280000801002673726737267372673726737
80204267362000362580100801008010047979914923656267362673616672316691801008020080200267366611802011009910080100801000003005110219222673280000801002673726737267372673726737
80204267362000362580100801008010047979904923656267362673616672316691801008020080200267366611802011009910080100801000000005110219222673280000801002673726737267372673726737
80204267362000362580100801008010047979914923656267362673616672316691801008020080200267366611802011009910080100801000000005110219222673280000801002673726737267372673726737
80204267362000362580100801008010047979904923656267362673616672316691801008020080200267366611802011009910080100801000000005110219222673280000801002673726737267372673726737
80204267362000362580100801008010047979914923656267362673616672316691801008020080200267366611802011009910080100801000000005110219222673280000801002673726737267372673726737
80204267362010362580100801008010047979904923656267362673616672316691801008020080200267366611802011009910080100801000000005110219222673280000801002673726737267372673726737

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)1e1f3f51schedule 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)acbranch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80024267232000153039258001080010800104720590492362626706267061666531668480010800208002026706661180021109108001080010000502015188152670280000800102670726707267072670726707
800242670620000036258001080010800104720590492362626706267061666531668480010800208002026706661180021109108001080010130502081811112670280069800102670726707267072675526756
80024268012001120648258001080010800105379811492362626706267061666531668480010800208002026706661180021109108001080010000502010181082670280000800102670726707267072670726707
80024267062000120362580010800108001047205914923626267062670616665316684800108002080020267066611800211091080010800100305020151812122670280000800102670726707267072670726707
8002426706200000362580010800108001047205914923626267062670616665316684800108002080020267066611800211091080010800100305020121812102670280000800102670726707268462670726942
800242675420001086192362580010800108001047205904923674267632670616665316684800108002080020267066611800211091080010800100005020121815122670280000800102670726707267072670726707
8002426706200000362580010800108001047205914923626267062670616665316684800108002080020267066611800211091080010800100315020111812122670280000800102670726707267072670726707
800242670620000036258001080010800104720590492362626706267061666531668480010800208002026706661180021109108001080010000502081813132670280000800102670726707267072670726707
800242670620004980362580010800108001047205904923626267062670616665316684800108002080020267066611800211091080010800100005020101812122670280000800102670726707267072670726707
800242670620000036258001080010800104720590492362626706267061666531668480010800208002026706661180021109108001080010000502071813112670280000800102670726707267072670726707