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 (FPSR)

Test 1: uops

Code:

  mrs x0, fpsr

(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)03mmu table walk instruction (07)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)1e1f3a3f51schedule uop (52)schedule int uop (53)696a6d6emap stall dispatch (70)map rewind (75)map stall (76)8283flush restart other nonspec (84)85inst all (8c)ld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10041002777101000110012261000100049694710027100279672397671002713931110010007521342210024100010001002810028100281002810028
10041002778101000110012261000100049694710027100279672397671002713931110010007521342210024100010001002810028100281002810028
10041002778101000110012261000100049694710027100279672397671002713931110010007521342210024100010001002810028101001006410028
100410027781010120110012261000100049694710027100279672397671002713931110010007521342210024100010001002810028100281002810028
10041002778101000110012261000100049694710027100279672397671002713931110010037521342210024100010001002810028100281002810028
100410027781010120110012261000100049694710027100279672397671002713931110010007521342210024100010001002810028100281002810028
10041002778101000110012261000100049694710027100279672397671002713931110010007521342210024100010001002810028100281002810028
10041002778101000110012261000100049694710027100279672397671002713931110010107521342210024100010001002810028100281002810102
10041002777101000110012261000100049694710027100279672397671002713931110010007521342210024100010001002810028100281002810028
10041002778101000110012261000100049694710027100279672397671002713931110010107521342210024100010001002810028100281002810028

Test 2: throughput

Count: 8

Code:

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

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)191e3a3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6b6d6emap 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)st unit uop (a7)l1d cache writeback (a8)a9acl1d cache miss ld nonspec (bf)c2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ebec? int retires (ef)f5f6f7f8fd
80204800027620200008000123880100801001005000497969470800027800027789782378987710020020080002713931180201100991001001000000000000005110212422800024800020080100800028800028800028800028800029
802048000276202000080001226801008010010050004980810708000638000277897823789877100200200800027139321802011009910010010044004028887000005122212413800047800000080100800028800028800028800028800028
80204800027599300008000122680100801001005000497969470800027800027789782378987710020020280002713931180201100991001001000000000000005110212422800024800000080100800028800051800028800028800028
80204800027599200008000122680100801001005000497969480800073800027789782378987710020020080002713931180201100991001001000000100000005110212422800024800000080100800028800028800028800028800028
802048001735995101208000122680100801001095000497969470800027800027789782378987710020020080002713932180202100991001001000000000000005110212422800024800000080100800028800028800028800028800028
80204800027599300008000122680100801001005000497969470800027800027789782378987710120020080002713931180201100991001001000230020020005875212422800025800040080100800028800028800028800028800049
80204800027599200008000362680100801001006500987969470800028800027789782378987710020020080002713931180201100991001001000000003000005110212422800024800000080100800028800028800028800028800028
80205800027599200008000122680100801001005001497969470800027800027789782378987710020020080002713931180201100991001001000000100000005110212422800024800000080100800028800029800028800028800028
8020480017659930017708000123880100801001005000987969470800027800027789782378987710020020080002713931180201100991001001000000000000005110012402800024800000080100800028800028800028800028800028
80204800027599200008000122680100801001005000497969470800027800027789783378987710020020080002713931180201100991001001000000000000105110212420800024800000080100800028800028800028800028800029

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6b6d6emap 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)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d2l1i cache miss demand (d3)d5map dispatch bubble (d6)dadbddfetch restart (de)e0? int output thing (e9)eaebec? int retires (ef)f5f6f7f8fd
8002480002762950000012008000122680010800101050149796947080002780002778980437898991020208000271393118002110910101000000000050200001612400978000248000000080010800028800028800028800028800028
800248000276201000000008000122680011800101050149796947080002780002778980437898991020208004341393118002110910101000000010050200108124001078000248000000080010800029800028800028800028800028
800248000276201000263969680800012268001080010105004979694738000278000277898043789899102020800027139311800211091010100001000005020000912400698000248000000080010800028800028800028800028800028
80024800027620200000000800012268001180010105004979694708000278000277898043789899102020800027139311800211091010100000002005020000812400688000248000000080010800028800028800028800028800028
8002480002762020000000080001226800108001010501497969470800027800027789804378989910202080002713931180021109101010000057000050200005124006108000248000003180010800028800028800028800052800028
80024800027620100000001800012268001080010105014979694708000278000277898043789899102020800027139311800211091010100000000005020000712400968000248000000080010800028800028800028800028800028
8002480002762020000000080001226800108001010501497969470800027800027789804378989910202080002727861180021109101010000000110502000010124009108000248000000080010800028800028800028800028800028
8002480002759930000000080001226800108001010500497969473800027800027789804378989910202080002713931180022109101010000000000502000010124007108000248000000080010800028800028800028800028800028
800248000275993000000008000122680010800121056149796947080002780002778980437898991020208000271393118002110910101002030000050200005180001098000248000000080010800028800028800028800051800028
800248000275992000001062880800049268001180010105014979698308001008000277898398789899102020800027139321800211091010102000000005020000812400998000248000000080010800028800028800028800028800028