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 (64-bit)

Test 1: uops

Code:

  csetm 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)031e3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)6d6emap 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)9fcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004369303625100010001000500036936920632251000100010003696611100110001000731181136610001000370370370370370
1004369303625100010001000500036936920632251000100010003696611100110001000731181136610001000370370370370370
1004369303625100010001000500036936920632251000100010003696611100110001000731181136610001000370370370370370
1004369303625100010001000500036936920632251000100010003696611100110001000731181136610001000370370370370370
1004369203625100010001000500036936920632251000100010003696611100110001000731181136610001000370370370370370
10043693013125100010001000500036936920632251000100010003696611100110001000731181136610001000370370370370370
1004369303625100010001000500036936920632251000100010003696611100110001000731181136610001000370370370370370
1004369203625100010001000500036936920632251000100010003696611100110001000731181136610001000370370370370370
1004369303625100010001000500036936920632251000100010003696611100110001000731181136610001000370370370370370
1004369303625100010001000500036936920632251000100010003696611100110001000731181136610001000370370370370370

Test 2: Latency 1->2

Chain cycles: 1

Code:

  csetm 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)03l2 tlb miss data (0b)1e3a3f4d51schedule 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)a9acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
202042003515000084199302520200202002021212974310491695520035200351742571748520212202242022420035104112020110099201001000000911113190116112001120100101002003620036200362003620036
202042003515000061199302520200202002021212977330491695520035200351742581748620212202242022420035104112020110099201001000000011113200116112001120100101002003620036200362003620036
202042003515000061199302520200202002021212974310491695520035200351742581748620212202242022420035104112020110099201001000000011113190116112001120100101002003620036200362003620036
202042003515000061199302520200202002021212977330491695520035200351742581748620212202242022420035104112020110099201001000000011113200116112001120100101002003620036200362003620036
202042003515000061199302520200202002021212977330491695520035200351742571748620212202242022420035104112020110099201001000000011113190116112001120100101002003620036200362003620036
202042003515000061199302520200202002021212977330491695520035200351742571748520212202242022420035104112020110099201001000000311113190116112001120100101002003620036200362003620036
202042003515006061199302520200202002021212977331491695520035200351742571748520212202242022420035104112020110099201001000000011113200116122001120100101002003620036200362003620036
202042003515000061199302520200202002021212977331491695520035200351742571748620212202242022420035104112020110099201001000000011113200116112001120100101002003620036200362003620036
202042003515000061199302520200202002021212977330491695520035200351742581748620212202242022420035104112020110099201001000000011113190116112001120100101002003620036200362003620036
202042003515000061199302520200202002021212977330491695520035200351742571748520212202242022420035104112020110099201001000000011113190116112001120100101002003620036200362003620036

1000 unrolls and 10 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
200242003515006119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270327331999520010100102003620036200362003620036
200242003515006119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270327221999520010100102003620036200362003620036
2002420035150126119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270427221999520010100102003620036200362003620036
200242003515006119918252002020020200201297297049169992003520035174363175042002020020200202003510421200211092001010000031270227231999520010100102003620081201272003620036
200242003515006119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270327331999520010100102003620036200362003620036
200242003515006119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270227231999520010100102003620036200362003620036
200242003515006119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270327221999520010100102003620036200362003620036
2002420035150126119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270227221999520010100102003620036200362003620036
200242003515006119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270227121999520010100102003620036200362003620036
200242003515006119918252002020020200201297297049169552003520035174283175042002020020200202003510411200211092001010000001270227421999520010100102003620036202172003620036

Test 3: throughput

Count: 8

Code:

  csetm x0, hi
  csetm x1, hi
  csetm x2, hi
  csetm x3, hi
  csetm x4, hi
  csetm x5, hi
  csetm x6, hi
  csetm 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)03mmu table walk instruction (07)l2 tlb miss instruction (0a)1e3a3f51schedule 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)9fld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802042679320111024325801008010080100479799492365626736267361667231669180100802008020026736661180201100991008010080100000511481910102673280000801002673726737267372673726737
80204267362011102432580100801008010047979949236562673626736166723166918010080200802002673666118020110099100801008010000051144195102673280000801002673726737267372673726737
8020426736200110243258010080100801004797994923656267362673616672316691801008020080200267366611802011009910080100801000405114101910102673280000801002673726737267372673726737
80204267362001102432580100801008010047979949236562673626736166723166918010080200802002673666118020110099100801008010002051145191092673280000801002673726737267372673726737
802042673620011024325801008010080100479799492365626736267361667231669180100802008020026736661180201100991008010080100000511491910102673280000801002673726737267372673726737
8020426736200110243258010080100801004797994923656267362673616672316691801008020080200267366611802011009910080100801000135114919992673280000801002673726737267372673726737
8020426736200110243258010080100801004797994923656267362673616672316691801008020080200267366611802011009910080100801000305114919992673280000801002673726737267372673726737
8020426736201110243258010080100801004797994923656267362673616672316691801008020080200267366611802011009910080100801000305114919992673280000801002673726737267372673726737
8020426736200110243258010080100801004797994923656267362673616672316691801008020080200267366611802011009910080100801000105114919992673280000801002673726737267372673726737
8020426736200110243258010080100801004797994923656267362673616672316691801008020080200267366611802011009910080100801000305114919492673280000801002673726737267372673726737

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)031e1f3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)5f60696a6d6emap 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)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80024267222000036258001080010800104720591049236262670626706166653166848001080020800202670666118002110910800108001000005020418442670280000800102670726707267072670726707
80024267062000036258001080010800104720590149236262670626706166653166848001080020800202670666118002110910800108001000005020418442670280000800102670726707267072670726707
80024267062000036258001080010800104720590049236262670626706166653166848001080020800202670666118002110910800108001000005020418432670280000800102670726707267072670726707
80024267062000036258001080010800104720590049236262670626706166653166848001080020800202670666118002110910800108001000005020318342670280000800102670726707267072670726707
80024267062000036258001080010800104720590149236262670626706166653166848001080020800202670666118002110910800108001000005020418342670280000800102670726707267072670726707
80024267062000036258001080010800104720590049236262670626706166653166848001080020800202670666118002110910800108001000005020418432670280000800102670726707267072670726707
800242670620012036258001080010800104720590049236262670626706166653166848001080020800202670666118002110910800108001000005020418342670280000800102670726707267072670726707
80024267062000036258001080010800104720590049236262670626706166653166848001080020800202670666118002110910800108001000005020318442670280000800102670726707267072670726707
80024267061990078258001080010800104720590049236262670626706166653166848001080020800202670666118002110910800108001000005020418432670280000800102670726707267072670726707
80024267062010036258001080010800104720590049236262670626706166653166848001080020801612670666118002110910800108001000005020318432670280000800102670726707267072670726707