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

LSL (register, 64-bit)

Test 1: uops

Code:

  lsl x0, x0, x1
  mov x0, 1
  mov x1, 2

(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)1e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)606d6emap 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 tlb access (a0)l1d tlb miss (a1)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10041035700618622510001000100016916110351035728386810001000200010354111100110000000073141119371000100010361036103610361036
10041035700618622510001000100016916110351035728386810001000200010354111100110000000073239229361000100010361036103610361036
10041035710618622510001000100016916010351035728386810001000200010354111100110000000073141119371000100010361036103610361036
10041035700618622510001000100016916110351035728386810001000200010354111100110000000073141119371000100010361036103610361036
10041035800618622510001000100016916110351035728386810001000200010354111100110000000073141119371000100010361036103610361036
10041035700618622510001000100016916010351035728386810001000200010354111100110002000073141119371000100010361036103610361036
10041035810618622510001000100016916110351035728386810001000200010354111100110000000073141119371000100010361036103610361036
10041035800618632510001000100016916010351035728386810001000200010354111100110000000073141119371000100010361036103610361036
10041035800618622510001000100016916110351035728387010001000200010354311100110000000073141119371000100010361036103610361036
10041035700828622510001000100016916110351035728386810001000200010354111100110000000073141119371000100010361036103610361036

Test 2: Latency 1->2

Code:

  lsl x0, x0, x1
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 1.0035

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f4d51schedule 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)st unit uop (a7)l1d cache writeback (a8)a9acc2cfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204100357510000414006198772510100101001010088664049695510035100358580387221010010200202001003541111020110099100101001000000000710023722994110000101001003610036100361003610036
1020410035750000000043398772510100101001010088664049695510035100358580387221010010200202001003541111020110099100101001000000000710023722994110000101001003610036100361003610036
10204100357500000138006198772510100101001010088664049695510035100358580387221010010200202001003541111020110099100101001000000000710023722994110000101001003610036100361003610036
10204100357500000120061987725101001010010100886640496955100351003585803872210100102002020010035411110201100991001010010000047000710023722994110000101001003610036100361003610036
102041003576000000006198772510100101001010088664049695510035100358580387361010010377202001003541111020110099100101001000000000710023722994110000101001003610036100361003610036
1020410035750000039006198772510100101001010088664049695510035100358580387221010010200202001003541111020110099100101001000000000710023722994110000101001003610036100361003610036
1020410035750000060006198772510100101001010088664049695510035100358580387221010010200202001003541111020110099100101001000000000710023722994110000101001003610036100361003610036
1020410035750000042006198772510100101001010088664049695510035100358580387221010010200202001003541111020110099100101001000000000710023722994110000101001003610036100361003610036
1020410035750000063006198772510100101001010088664049695510035100358580387221010010200202001003541111020110099100101001000001000710023722994110000101001003610036100361003610036
102041003575000000006198772510100101001010088664049695510035100818580787221010010200202001003541111020110099100101001000000000710023722994110000101001003610081100361008210036

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0035

retire uop (01)cycle (02)033f4d51schedule 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)9faccfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100241003575103986325100101001010010887840496955100351003586023874010010100202002010035411110021109101001010064024122994010000100101003610036100361003610036
100241003575320986325100101001010010887841496955100351003586023874010010100202002010035411110021109101001010064024122994010000100101003610036100361003610036
10024100357661986325100101001010010887841496955100351003586023874010010100202002010035411110021109101001010064024122994010000100101003610036100361003610036
10024100357561986325100101001010010887840496955100351003586023874010010101912002010035411110021109101001010064024122994010000100101003610036100361003610036
10024100357561986325100101001010010887840496955100351003586023874010010100202002010035411110021109101001010064024122994010000100101003610036100361003610036
100241003575251986325100101001010010887840496955100351003586023874010010100202002010035411110021109101001010064024122994010000100101003610036100361003610036
10024100357561986325100101001010010887841496955100351003586023874010010100202002010035411110021109101001010064024122994010000100101003610036100361003610036
10024100357561986325100101001010010887840496955100351003586023874010010100202002010035411110021109101001010064024122994010000100101003610036100361003610036
10024100357561986325100101003310010887841496955100351003586023874010010100202002010035411110021109101001010064024122994010000100101003610036100361003610036
10024100357561986325100101001010010887840496955100351003586023874010010100202002010035411110021109101001010064024122994010000100101003610036100361003610036

Test 3: Latency 1->3

Code:

  lsl x0, x1, x0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 1.0035

retire uop (01)cycle (02)031e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)696a6d6emap 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)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020410035752856198772510100101001010088664496955100351003585803872210100102002020010035411110201100991001010010000071023711994110000101001003610036100361003610036
10204100357506198772510100101001010088664496955100351003585803872210100102002020010035411110201100991001010010000071013711994110000101001003610036100361003610036
10204100357508298772510100101001010088664496955100351003585803872210100102002020010035411110201100991001010010000071013711994110000101001003610036100361003610036
10204100357506198772510100101001010088664496955100351003585803872210100102002020010035411110201100991001010010000071013711994110000101001003610036100361003610036
1020410035752406198772510100101001010088664496955100351003585803872210100102002020010035413110201100991001010010000071013711994110000101001003610036100361003610036
10204100357606198772510100101001010088664496955100351003585803872210100102002020010035411110201100991001010010000371013711994110000101001003610036100361003610036
10204100357506198772510100101001010088664496955100351003585803872210100102002020010035411110201100991001010010000071013711994110000101001003610036100361003610036
102041003575062098772510100101001010088664496955100351003585803872210100102002020010035411110201100991001010010001071013711994110000101001003610036100361003610036
10204100357506198772510100101001010088664496955100351003585803872210100102002020010035411110201100991001010010000071013711994110000101001003610036100361003610036
102041003575216198772510100101001010088664496955100351003585803872210100102002020010035411110201100991001010010000071013711994110000101001003610036100361003610036

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0035

retire uop (01)cycle (02)031e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)696a6d6emap 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100241003575061986325100101001010010887844969551003510035860238740100101002020020100354111100211091010010100064024122994010000100101003610036100361003610036
100241003575061986325100101001010010887844969551003510035860238740100101002020020100354111100211091010010100064024122994010000100101003610036100361003610036
100251003575061986325100101001010010887844969551003510035860238740100101002020020100354111100211091010010100064024122994010000100101003610036100361003610036
100241003575061986325100101001010010887844969551003510035860238740100101002020020100354111100211091010010101064024122994010000100101003610036100361003610036
100241003575061986325100101001010010887844969551003510035860238740100101002020020100354111100211091010010100064024122994010000100101003610036100361003610036
100241003575061986325100101001010010887844969551003510035860238740100101002020020100354111100211091010010100064024122994010000100101003610036100361003610036
100241003575061986325100101001010010887844969551003510035860238740100101002020020100354111100211091010010101064024122994010000100101003610036100361003610036
1002410035750631986325100101001010010887844969551003510035860238740100101002020020100354111100211091010010100064024122994010000100101003610036100361003610036
100241003575061986325100101001010010887844969551003510035860238740100101002020020100814111100211091010010100364024122994010000100101003610036100361003610036
100241003575061986325100101001010010887844969551003510035860238740100101002020020100354111100211091010010100064024122994010000100101003610036100361003610036

Test 4: throughput

Count: 8

Code:

  lsl x0, x8, x9
  lsl x1, x8, x9
  lsl x2, x8, x9
  lsl x3, x8, x9
  lsl x4, x8, x9
  lsl x5, x8, x9
  lsl x6, x8, x9
  lsl x7, x8, x9
  mov x8, 9
  mov x9, 10

(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)031e3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)696a6d6emap 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)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802041342010027352580100801008010040050049103061338613386332333341801008020016020013386391180201100991008010010045110219111338380000801001338713387133871338713387
80204133861006352580100801008010040050049103061338613386332333341801008020016020013386391180201100991008010010005110119111338380000801001338713387133871338713387
80204133861000352580100801008010040050049103061338613386332333341801008020016020013386391180201100991008010010005110119111338380000801001338713387133871338713387
80204133861006352580100801008010040050049103061338613386332333341801008020016020013386391180201100991008010010005110119111338380000801001338713387133871338713387
80204133861016352580100801008010040050049103061338613386332333341801008020016020013386391180201100991008010010005110119111338380000801001338713387133871338713387
80204133861000352580100801008010040050049103061338613386332333341801008020016020013386391180201100991008010010005110119111338380000801001338713387133871338713387
802041338610012352580100801008010040050049103061338613386332333341801008020016020013386391180201100991008010010005110119111338380000801001338713387133871338713387
80204133861016352580100801008010040050049103061338613386332333341801008020016020013386391180201100991008010010005110119111338380000801001338713387133871338713387
80204133861006352580100801008010040050049103061338613386332333341801008020016020013386391180201100991008010010005110119111338380000801001338713387133871338713387
80204133861006352580100801008010040050049103061338613386332333341801008020016020013386391180201100991008010010005110119111338380000801001338713387133871338713387

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)l2 tlb miss instruction (0a)1e1f3a3f51schedule 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)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
800241338710011003422580010800108001040005004910291133711337133303334880012800201600201337139118002110910800101005030181919181336880000800101337213372133721337213372
8002413371100110031052580010800108001040005004910291133711337133303334880010800201600201337139118002110910800101005032161916161336880000800101337213372133721337213372
8002413371100110033462580010800108001040005004910291133711337133303334880012800201600201337139118002110910800101005030181917211336880000800101337213372133721337213372
80024133711001100342258001080010800104000500491029113371133713330333488001080020160020133713911800211091080010100503218191891336880000800101337213372133721337213372
800241337110011003422580010800108001040005004910291133711337133303334880010800201600201337139118002110910800101005032151917151336880000800101337213372133721337213372
800241337110011003422580010800108001040005014910291133711337133303334880010800201600201337139118002110910800101005027141918151336880000800101337213372133721337213372
800241337110011003422580010800108001040005004910291133711337133303334880010800201600201337139118002110910800101005029181911121336880000800101337213372133721337213372
80024133711001100342258001080010800104000501491029113371133713330333488001080020160020133713911800211091080010100503015191691336880000800101337213372133721337213372
80024133711001100342258001080010800104000500491029113371133713330333488001080020160020133713911800211091080010100503191913161336880000800101337213372133721337213372
800241337110011003422580010800108001040005014910291133711337133303334880010800201600201337139118002110910800101005030131913151336880000800101337213372133721337213372