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

Test 1: uops

Code:

  mrs x0, tpidr_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)606d6emap stall dispatch (70)map rewind (75)map stall (76)8283flush restart other nonspec (84)85inst all (8c)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10041034701019261000100011034103486538821034164111001000731261110311000100010351035103510351035
10041034801019261000100001034103486538821034164111001000731261110311000100010351035103510351035
10041034801019261000100011034103486538821034164111001000731261110311000100010351035103510351035
10041034801019261000100011034103486538821034164111001000731261110311000100010351035103510351035
10041034801019261000100001034103486538821034164111001000731261110311000100010351035103510351035
10041034831019261000100001034103486538821034164111001020731261110311000100010351035103510351035
10041034801019261000100011034103486538821034164111001100731261110311000100010351035103510351035
10041034801019261000100011034103486538821034164111001000731261110311000100010351035103510351035
10041034801019261000100011034103486538821034164111001000731261110311000100010351035103510351035
10041034801019261000100011034103486538821034164111001000731261110311000100010351035103510351035

Test 2: throughput

Count: 8

Code:

  mrs x0, tpidr_el0
  mrs x1, tpidr_el0
  mrs x2, tpidr_el0
  mrs x3, tpidr_el0
  mrs x4, tpidr_el0
  mrs x5, tpidr_el0
  mrs x6, tpidr_el0
  mrs x7, tpidr_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)03191e3f51schedule 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 cache writeback (a8)acbranch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
80204800616210080020268010080100100500149769558003580035699663699841002002008003516411802011009910010010000051105255380032800000801008003680036800368003680036
80204800356200080020268010080100100500149769558003580035699663699841002002008003516411802011009910010010003051105255580032800000801008003680036800368003680036
80204800356200080020268010080100100500149769558003580035699663699841002002008003516411802011009910010010003051105255580032800000801008003680036800368003680036
802048003562001280020268010080100100500049769558003580035699663699841002002008003516411802011009910010010000051105255580032800000801008003680036800368003680036
802048003562001280020268010080100100500149769558003580035699663699841002002008003516411802011009910010010000051105255580032800000801008003680036800368003680036
80204800356210080020268010080100100500198769558003580035699663699841002002008003516411802011009910010010010051105255380032800000801008003680036800368003680036
80204800356200080020268010080100100500149769628003580035699663699841002002008003516411802011009910010010000151103253580032800000801008003680043800368003680036
80204800356200080020268010080100100500049769558003580035699663699841002002008003516411802011009910010010003051105255380032800000801008003680036800368003680036
80204800356200080020268010080100100500149769558003580035699663699841002002008003516411802011009910010010003051105255580032800000801008003680036800368003680036
80204800356200080020268010080100100500149769558003580035699663699841002002008003516411802011009910010010010051105255580032800000801008003680036800368003680036

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)031e3f51schedule 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)accdcfd0d2d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
800248005062021800202680010800101050004976955800358003569988370038102020800351641180021109101010125505020002252280032800000800108003680036800368003680036
800248003562008002026800108001010500049769558003580035699883700061020208003516411800211091010101005020001251180032800000800108003680036800368003680036
800248003562008002026800108001010500549769558003580035699883700061020208003516411800211091010100005020001251180032800000800108003680036800368003680036
80024800356210800202680010800101050004976955800358003569988370006102020800351641180021109101010022205020002252280032800000800108003680036800368003680036
800248003562008002026800108001010501549769558003580035699883700061020208003516411800211091010100305020501251180032800000800108003680036800368003680036
800248003562108002026800108001010500049739108003580035699883700061020208003516411800211091010100005020541251180032800000800108003680036800368003680036
8002480035620818002026800108001010500549769558003580035699883700061020208003516411800211091010100005020001251180032800000800108003680036800368003680036
800248003562008002026800108001010500049769558003580035699883700061020208003516411800211091010100005020541251180032800000800108003680036800368003680036
800248003562108002026800108001010500049769558003580035699883700061020208003516411800211091010100005020001251180032800000800108003680036800368003680036
8002480035621080020268001080010105000497695580035800356998837000610202080035164118002110910101007205020001251180032800000800108003680036800368003680036