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

MOV (from sp, 32-bit)

Test 1: uops

Code:

  mov w0, wsp

(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)dispatch int uop (56)int uops in schedulers (59)6d6emap 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 int alu (97)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100420210352510001000100050002022023935710001000100020239111001100030731191119910001000203203203203203
100420220352510001000100050002022023935710001000100020239111001100000731191119910001000203203203203203
100420210352510001000100050002022023935710001000100020239111001100000731191119910001000203203203203203
100420210352510001000100050002022023935710001000100020239111001100000731191119910001000203203203203203
100420210352510001000100050002022023935710001000100020239111001100000731191119910001000203203203203203
100420220352510001000100050002022023935710001000100020239111001100000731191119910001000203203203203203
100420210352510001000100050002022023935710001000100020239111001100000731191119910001000203203203203203
1004202203525100010001000500020220239357100010001000202391110011000069731191119910001000203203203203203
100420210562510001000100050002022023935710001000100020239111001100000731191119910001000203203203203203
100420220352510001000100050002022023935710001000100020239111001100000731191119910001000203203203203203

Test 2: throughput

Count: 8

Code:

  mov w0, wsp
  mov w1, wsp
  mov w2, wsp
  mov w3, wsp
  mov w4, wsp
  mov w5, wsp
  mov w6, wsp
  mov w7, wsp

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)0318191e1f3f51schedule 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 miss (a1)l1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802041342010400003525801008010080100400500049103061338613386332333341801008020080200133863911802011009910080100100018105111219221338380000801001338713387133871338713387
802041338610400120352580100801008010040050004910306133861338633233334180100802008020013386391180201100991008010010001005111219221338380000801001338713387133871338713387
80204133861040000772580100801008010040050004910306133861338633233334180100802008020013386391180201100991008010010001005111219221338380000801001338713387133871338713387
802041338610400003525801008010080100400500049103061338613386332333341801008020080200133863911802011009910080100100017305111219221338380000801001338713387133871338713387
80204133861030000352580100801008010041033504910306133861338633233334180100802008020013386391180201100991008010010000305111219221338380000801001338713387133871338713387
802041338610400003525801008010080100400500149103061338613386332333341801008020080200133863911802021009910080100100037005111219221338380000801001338713387133871338713387
802041338610400003525801008010080100400500049103061338613386332333341801008020080200133863911802011009910080100100033305111219221338380000801001338713387133871338713387
80204133861030000352580100801008010040050004910306133861338633233334180100802008020013386391180201100991008010010000305111219221338380000801001338713387133871338713387
80204133861040000352580100801008010040050004910306133861338633233334180100802008020013386391180201100991008010010000005111219221338380000801001338713387133871338713387
80204133861030000352580100801008010040050004910306133861338633233334180100802638020013386391180201100991008010010001005111219221338380000801001338713387133871338713387

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03181e3f51schedule 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)9fld unit uop (a6)l1d cache writeback (a8)a9acc2branch indir mispred nonspec (c6)cfd2l1i tlb miss demand (d4)d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ec? int retires (ef)f5f6f7f8fd
80024133871040123525800108001080010400050049102911337113371333033348800108002080020133713911800211091080010100620005029001519251513368800000800101339213372133721337213372
8002413371104003525800108001080010400713049102911337113371333033348800108002080020133713911800211091080010100000005029001419261513368800000800101339213372133721337213372
800241337110301210525800108001080010400050049102911337113371333033348800108002080020133713911800211091080010100000055031002919272713368800000800101337513372133721337213372
8002413371104003525800108001080010400050049102911337113371333033348800108002080020133713911800211091080010100000005029001219271413368800000800101337513372133721337213372
8002413371104093525800108001080010400050049102911337113371333033348800108002080020133713911800211091080010100000005031002519152613368800000800101342113372133721337213372
8002413371104003525800108001080010400050049102911337113371333033348800108002080020133713911800211091080010100700005027001419272813368800000800101339113372133721337213372
8002413371103003525800108001080010400050049102911337113371333033348800108002080020133713911800211091080010100003005032002719192713368800000800101340213372133721337213372
8002413371103003525800108001080010400050049102911337113371333033348800108002080020133713911800211091080010100003005031002419192613368800000800101339213372133721337213372
8002413371103003525800108001080010400050049102911337113371333033348800108002080020133713921800211091080010100003005027001319271513368800000800101339113372133721337213372
8002413371103003525800108001080010400050049102911337113371333033348800108002080020133713911800211091080010100000005031002719262613368800000800101339113372133721337213372