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

MSR (DIT)

Test 1: uops

Code:

  msr s3_3_c4_c2_5, x0
  mrs x0, s3_3_c4_c2_5

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 0.000

Integer unit issues: 0.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)03l1i tlb fill (04)1e3f5160696a6d6emap stall dispatch (70)map rewind (75)map stall (76)8283flush restart other nonspec (84)85inst all (8c)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0f5f6f7f8fd
10041202797101201226149894712027120271163031174312027120271110010073215811120241202812028120281202812028
10041202793001201226149894712027120271163031174312027120271110010073115811120241202812028120281202812028
10041202793001201226149894712027120271163031174312027120271110010073115811120241202812028120281202812028
10041202794001201226149894712027120271163031174312027120271110011373115811120241202812028120281202812028
10041202793001201253149894712027120271163031174312027120271110010073115811120241202812028120281202812028
10041202793001201226049894712027120271163031174312027120271110010073115811120241202812028120281202812028
100412027930121201226149894712027120271163031174312027120271110010073115811120241202812028120281202812028
10041202793001201226149894712027120271163031174312027120271110010073115811120241202812028120281202812028
10041202793001201226149894712027120271163031174312027120271110010073115811120241202812028120281202812028
10041202793001201226149894712027120271163031174312027120271110010073115811120241202812028120281202812028

Test 2: throughput

Code:

  msr s3_3_c4_c2_5, x0
  mrs x0, s3_3_c4_c2_5

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 12.0035

retire uop (01)cycle (02)0309181e3a3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)6061696a6d6emap 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)a9acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d2d5map dispatch bubble (d6)ddfetch restart (de)e0? int retires (ef)f5f6f7f8fd
102041200359300030601200202610010010050010491169551200351200351186067118719100200200120035957591110201100991001001000001117195103400120032100120036120036120036120036120036
102041200359310034801200202610010010050010491169551200351200351186067118719100200200120035957591110201100991001001001001117190103400120032100120036120036120036120036120036
10204120035931006001200202610010010050010491169551200351200351186067118719100200200120035957591110201100991001001000001117190103400120032100120036120036120036120036120036
10204120035930003001200202610010010050005491169551200351200351186067118719100200200120187957591110201100991001001000001117190003400120032100120036120036120036120036120036
10204120035931006601200202610010010050005491169551200351200351186067118719100200200120035957591110202100991001001001001117190003400120032100120036120036120036120036120036
10204120035930006001200202610010010050010491169551200351200351186067118719100200202120035957591110201100991001001000001117195103400120032100120036120036120036120036120036
10204120035931007501200202610010010050010491169551200351200351186067118719100200200120035957591110201100991001001000001117190103400120032100120036120036120036120036120036
10204120035930003001200202610010010050010491169551200351200351186067118719100200200120035957591110201100991001001000001117190103400120032100120036120036120036120036120036
10204120035931006301200202610010010050010491169551200351200351186067118719100200200120035957591110201100991001001000001117190103400120032100120036120036120036120036120036
102041200359300029701200202610010010050010491169551200351200351186067118719100200200120035957591110201100991001001000001117190003400120032100120036120036120036120036120036

1000 unrolls and 10 iterations

Result (median cycles for code): 12.0027

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)09l2 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)6061696a6d6emap 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 access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acl1d tlb miss nonspec (c1)c2cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0ea? int retires (ef)f5f6f7f8fd
1002412004293010011007202120012261010105000491169471200271200271185143118627102020120027120027111002110910101000000300064361461111120024010120028120028120028120028120028
1002412002793010010000021200122610101050004911694712002712002711851431186271020201200271200271110021109101010000000000643111461111120024010120028120028120028120028120028
1002412002793010010000021200122610101050004911694712002712002711851431186271020201200271200271110021109101010000000000643111461111120024010120028120028120028120028120029
10024120027930100100012021200122610101050004911694712002712002711851431186271020201200271200271110021109101010000100000643111461212120024010120028120028120028120028120028
100241200279311001000002120012261010105000491169471200271200271185143118627102020120103120027111002110910101000000300064371461211120024010120028120028120028120028120028
100241200279301001000002120012261010105000491169471200271200271185143118627102020120027120027111002110910101000000300064311146611120024010120028120028120028120028120028
100241200279301001000002120012261010105000491169471200271200271185143118627102020120027120027111002110910101000000300064311146129120024010120028120028120028120028120028
1002412002793010010000021200122610101050004911694712002712005811851431186271020201200271200271110021109101010000003000643121461111120024010120028120028120028120028120028
1002412002793010010000021200122610101050004911694712002712002711851431186271020201200271200271110021109101010000100000643111461111120024010120028120028120028120028120028
10024120027930100100012021200122610101050004911694712002712002711851431186271020201200271200271110021109101010000100000643111461211120024010120028120028120028120028120028