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

Test 1: uops

Code:

  mrs x0, cntvct_el0

(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)6d6emap 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
1004103481210192610001000103410348653882103416411100100732262210311000100010351035103510351035
100410348010192610001000103410348653882103416411100110732262210311000100010351035103510351035
1004103481210192610001000103410348653882103416411100110732262210311000100010351035103510351035
100410348010192610001000103410348653882103416411100103732262210311000100010351035103510351035
100410348010192610001000103410348653882103416411100100732262210311000100010351035103510351035
100410348010192610001000103410348653882103416411100100732262210311000100010351035103510351035
1004103481210192610001000103410348653882103416411100100732262210311000100010351035103510351035
1004103481210192610001000103410348653882103416411100100732262210311000100010351035103510351035
100410348010192610001000103410348653882103416411100100732262210311000100010351035103510351035
100410348010192610001000103410348653882103416411100100732262210311000100010351035103510351035

Test 2: throughput

Count: 8

Code:

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

(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)03mmu table walk data (08)l2 tlb miss data (0b)181e1f3f51schedule 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)ld unit uop (a6)l1d cache writeback (a8)acldst x64 uop (b1)c2branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802048006362000000800202680100801001005480497695580035800356996636998410020020080035164118020110099100100100002100005110225228003280000801008021180036800368003680036
802048003562000000800202680100801001005000497695580035800356996636998410020020080035164118020110099100100100003100005110225228003280000801008003680036800368003680036
802048003562000000800202680100801001005001497695580035800356996636998410020020080035164118020110099100100100020300005110225228003280000801008003680036800368003680036
8020480035620000120800202680100801001005000497695580035800356996636998410020020080035164118020110099100100100000200005110225228003280000801008003680036800368003680036
8020480035620000300800202680100801001005000497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
802048003562000000800202680100801341005001497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
802048003562001000800202680100801001005000497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
802048003562000000800202680100801001005001497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036
802048003562000000800202680100801001005000497695580035800356996636998410020020080035164118020110099100100100000030005110225228003280000801008003680036800368003680036
802048003562010000801982680100801001005000497695580035800356996636998410020020080035164118020110099100100100000000005110225228003280000801008003680036800368003680036

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)0f181e1f3f51schedule 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 cache writeback (a8)a9acbranch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)d9ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8002480051620000008002026800108001010500497695580035800356998837000610202080035164118002110910101000000050204250238003280000800108003680036800368003680036
8002480035621050008002026800108001010500497695580035800356998837000610202080035164118002110910101001000050204250358003280062800108003680036800368003680036
8002480035621000308006526800108001010500497695580035800356998837000610202080035164118002110910101000000050203250428003280000800108003680036800368003680036
8002480035621000008005426800108001010501497695580035800356998837000610202080035164118002110910101000030050203250338003280000800108003680036800368003680036
80024800356200015075028006526800438001010500497695580035800356998837000610202080035164118002110910101000000050203250338003280000800108003680036800368003680036
8002480035620001008002026800108001010500497695580035800356998837000610202080035164118002110910101000030050203250338003280000800108003680036800368003680036
8002480035621000008002026800108001010500497695580035800356998837000610202080035164118002110910101002000050203250338003280000800108003680036800368003680036
8002480035620000008002026800108001010500497695580035800356998837000610202080035164118002110910101000000050203250328003280000800108003680036800368003680036
800248003562000030801511058005780074126804977088801698012570041157010512202080165164418002110910101040012550050202250438003280000800108003680036800368003680036
8002480035620000008002026800108001010500497695580035800356998837000610202080035164118002110910101000000050203250338003280000800108003680036800368003680036