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

CBZ (taken)

Test 1: uops

Code:

  cbz x0, .+4

(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 branch (8d)l1d cache writeback (a8)cfd5map dispatch bubble (d6)ddfetch restart (de)e0f5f6f7f8fd
10043842503525100010001000500005355351623180100010001000535535111001100007352133532536536536536536
1004535403525100010001000500015355351623180100010001000535535111001100007332143532536536536536536
1004535403525100010001000500015355351623180100010001000535535111001100007332133532536536536536536
1004535403525100010001000500015355351623180100010001000535535111001100007332133532536536536536536
1004535403525100010001000500015355351623180100010001000535535111001100007332133532536536536536536
1004535403525100010001000500015355351623180100010001000535535111001100007332133532536536536536536
1004535403525100010001000500015355351623180100010001000535535111001100007332133532536536536536536
1004535403525100010001000500015355351623180100010001000535535111001100007332133532536536536536536
1004535403525100010001000500015355351623180100010001000535535111001100007332133532536536536536536
1004535403525100010001000500015355351623180100010001000535535111001100007332133532536536536536536

Test 2: throughput

Count: 8

Code:

  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  mov x0, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f3a3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)696a6d6emap 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)a9acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204809596051001100021012167278010580105801074005304977694807808077661080107802078020780788647421180201801008009910010010000000111807594347033093368077701008078780785807818077980781
80204807746059090000012811278010580105801074005304977704807828077461080107802078020780788647441180201801008009910010010000000111807533176533053218077501008079580799807918079180783
802048078460511090000012145278010580105801074005304977700807808078061080107802078020780784647321180201801008009910010010000000111807633246533063248078101008078780793807878078780787
80204807866059090000012145278010580105801074005304977704807828078461080107802078020780782647381180201801008009910010010000000111807573236593073208079101008078780787807898078980785
80204807806059090000012145278010580105801074005304977704807788077461080107802078020780804647381180201801008009910010010000000111807613226753053198077701008080780795808018078980791
802048080460510090000012170278010580105801074005304977708807928079061080107802078020780782647461180201801008009910010010000000111807573206673033198077901008079380789807858078781217
80204807826059090000012146278010580105801074005304977704807828078462680107802078020780782647441180201801008009910010010000000111807713266693103318078901008078380781807878077980783
80204807746059090000012145278010580105801074005304977698807808078261080107802078020780786647361180201801008009910010010000000111807653246613053208077901008079580785807838078380785
80204807846059090000013145278010580105801074005304977716808148078461080107802078020780780811661180201801008009910010010000000111807653226613083208079701008079180795807878078980791
80204807886059090000012145278010580105801074005304977696807748077661080107802078020780786647361180201801008009910010010000000111807633236513073218077701008078980789807878078780783

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)09l2 tlb miss instruction (0a)0f18191e1f3a3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6b6d6emap 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)a9acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d5map dispatch bubble (d6)daddfetch restart (de)e0eaeb? int retires (ef)f5f6f7f8fd
800242399961799000000002674628800118001180012400269049236962024004424004461080012800228002224004424004411800218001080009101010000111240017080003160020079990800042400410010240045240051240045240045240043
8002424004417982050000026528800118001180012400058049236964024004424004432108001280022800222400442400421180021800108000910101000171111240021080002160016079990800032400410010240043240108240045240045240045
8002424004417984050000026528800118001180012400058049236964024004224004461080107800228002224004224004411800218001080009101010000111240021080002160016079989800022400390010240045240045240045240045240045
8002424004417985050000026528800118001180012400148049236964024004424004461080012800738002224004224004411800218001080009101010000111240021080002160016079988800032400410010240045240045240045240045239946
8002424004417985050006026528800118001180012400058049236964024004224004461080012800228005424004424004411800218001080009101010000111240021080002160016079995800032400430010240049240049240045240047240049
8002524004817980000000028028800118001180012400058049236964024004424004461080053800228002224004424004411800218001080009101010000111240021480002160014079989800032400410010240043240045240045240045240045
800242400441798502000002111828800118001180012400058049236962024004424004461080012800228002224004424004411800218001080009101010000111240021080002160014079989800032400390010240045240045240045240043240045
800242400441798505000002116028800118001180012400058049236964024004424004461080012800228002224004424004411800218001080009101010000111240021080002160016079990800032400410010240045240045240043240045240043
800242400441798505000002111828800118001180012400058049236964024004224004461080012800228002224004423991611800218001080009101010000111240019080002160016079988800032400410010240045240045240043240045240043
800242400441798505000001118128800118001180012400058049236964024004424004461080012800228002224004424004411800218001080009101010000111240021080000160016079988800032400390010240043240045240045239946240043