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

MRS (FPCR)

Test 1: uops

Code:

  mrs x0, fpcr

(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)606d6emap 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)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004103480101926100010000103410348653882103416411100100732262210311000100010351035103510351035
1004103480101926100010001103410348653882103416411100100732262210311000100010351035103510351035
1004103483101926100010001103410348653882103416411100100732262210311000100010351035103510351035
1004103480101926100010001103410348653882103416411100100732262210311000100010351035103510351035
1004103480101926100010001103410348653882103416411100100732262210311000100010351035103510351035
1004103480101926100010001103410348653882103416411100100732262210311000100010351035103510351035
1004103480101926100010001103410348653882103416411100100732262210311000100010351035103510351035
1004103470101926100010001103410348653882103416411100100732262210311000100010351035103510351035
1004103470101926100010001103410348653882103416411100100732262210311000100010351035103510351035
1004103480101926100010001103410348653882103416411100100732262210311000100010351035103510351035

Test 2: throughput

Count: 8

Code:

  mrs x0, fpcr
  mrs x1, fpcr
  mrs x2, fpcr
  mrs x3, fpcr
  mrs x4, fpcr
  mrs x5, fpcr
  mrs x6, fpcr
  mrs x7, fpcr

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)0309l2 tlb miss data (0b)0e18191e1f3f51schedule 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 tlb access (a0)l1d tlb miss (a1)l1d cache miss st (a2)ld unit uop (a6)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204800636200000000800202680100801001005001497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
80204800356210000000800202680100801001005001497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
80204800356200000000800202680100801001005001497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
80204800356200000000800202680100801001005001497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
80204800356200000000800202680100801001005000497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
80204800356200000000800202680100801001005000497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
80204800356200000000800202680100801001005000497695580035800356996636998410020020080124164118020110099100100100000000005110225228003280000801008003680036800368003680036
80204800356210000000800202680100801001005001497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
80204800356200000000800202680100801001005000497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
80204800356200000000800202680100801001005000497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)l2 tlb miss data (0b)18191e1f3f51schedule 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)9fl1d tlb access (a0)st unit uop (a7)l1d cache writeback (a8)a9acbranch mispred nonspec (cb)cfd2l1i cache miss demand (d3)d5map dispatch bubble (d6)dbddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80024800506210000008002026800108001010500049769558003580035699883700061020208003516411800211091010100000005020001625017178003280000800108003680036800368003680036
80024800356200000008002026800108001010500049769558003580169699883700061020208003516411800211091010100000005020001925017178003280000800108003680036800368003680036
8002480035621000012080020268001080010105000497695580035800356998837000610202080035164118002110910101020000050200072501778003280000800108003680036800368003680036
8002480035621000000800202680010800101050004976955800358003569988370006102020800351641180021109101010000000502000172501568003280000800108003680036800368003680036
800248003562000000080020268001080010105011497695580035800356998837000610202080035164118002110910101000000050200072501778003280000800108003680036800368003680036
80024800356200002008015526800108001010500049769558007080035699881870006102020800351641180021109101010000030502000749017178003280000800108003680036800368003680213
8002480035621000000800202680010800101050114976955800358003569988370006102020800351641180021109101010000000504200172501778003280000800108003680036800368003680036
80024800356200000008002026800108001010501149769558021380035699883700061020208003516411800211091010100032005072001725017178003280000800108003680036800368003680036
800248003562100000080020268004380010105000497695580035800356998837000610202080035164118002110910101000000050200072501778003280000800108003680036800368003680036
800248003562100000080020268001080010105011497695580035800356998837000610202080035164118002110910101000003050200072501778003280000800108003680036800368003680036