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

EON (register, lsr, 32-bit)

Test 1: uops

Code:

  eon w0, w0, w1, lsr #17
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 2.000

Integer unit issues: 2.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)0318191e1f3a3f4c4d51schedule 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 miss (a1)st unit uop (a7)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004208116010001031000173525200020001000325700203520351575318421000100020002035422110011000000731671117812000100020362036203620362036
1004203516000001031009173525200020001000325701203520811575318531000100020002035421110011000000731671118152000100020362036203620362036
100420351500000611000173525200020001000325700203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
100420351600000611000173525200020001000325701203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
100420351600000611000173525200020001000325701203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
100420351600000611000173525200020001000325701203520351575318661000100020002035421110011000020911671117812000100020362036203620362036
100420351610000891000173525200020001000325701203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
100420351600000110100017352520002000100032570020352035157531842100010002000203542111001100020220731671117812000100020362081203620362036
1004203516000003181000173525200020001000325701203520801575318421000100020002035421110011000000731671117812000100020362036203620362036
100420351500000611000173525200020001000325701203520351575318421000100020002035421110011000000731671117812000100020362036203620362036

Test 2: Latency 1->2

Code:

  eon w0, w0, w1, lsr #17
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03191e1f3f4c4d51schedule 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 cond mispred nonspec (c5)branch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020420035156000611000019803252010020100101001853421491695520035200351842921187001010010200202002003542111020110099100101001000000710159111979120000101002003620083200362008120036
1020420035155027061100001980325201002010010100185342149169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
1020420035156060726100001980325201002010010100185342149169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
102042003515509061100001980325201002010010100185342149169552003520035184293187001010010200202002003542111020110099100101001001000710159111979120000101002003620036200362003620036
102042003515506061100001980325201002010010100185342149169552003520035184293187001010010200202002003542111020110099100101001001000710159111979120000101002003620036200362003620036
1020420035155000103100001980325201002010010100185342049169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002008320036200362003620036
1020420035156012061100001980325201002010010100185342149169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
102042003515506061100001980325201002010010100185342149169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
1020420035155027061100001980325201002010010100185342049169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
102042003515609061100001980325201002010010100185342149169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk data (08)l2 tlb miss data (0b)18191e1f3f4c4d51schedule 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)st unit uop (a7)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100242003515510000007110000197432520010200101001018531004916955200352003518451318718100101002020020200354211100211091010010100000000640363331979220000100102003620036200362003620036
100242003515500000006110000197432520010200101001018531004916955200352003518451318718100101002020020200354211100211091010010100000000640375331979220000100102003620036200362003620036
100242003515600000006110000197432520010200101001018531014916955200352003518451318718100101002020020200354211100211091010010100000000640363331979220000100102003620036200362003620036
100242003515600000006110000197432520010200101001018531014916955200352003518451318718100101002020020200354211100211091010010100000000640363331979220000100102003620036200362003620036
100242003515500000006110000197432520010200101001018531004916955200352003518451318718100101002020020200354211100211091010010100000000640363331979220000100102003620036200362003620036
100242003515500000006110000197432520010200101001018531014916955200352003518451318718100101002020020200354211100211091010010100000000640363331979220000100102003620036200362003620036
100242003515500000006110000197432520010200101001018531014916955200352003518451318718100101002020020200354211100211091010010100000000640363331979220000100102003620036200362003620036
100242003515500000006110000197432520010200101001018531004916955200352003518451318718100101002020020200354211100211091010010100000000640363331979220000100102003620036200362003620036
100242003515500000006110000197432520010200101001018531014916955200352003518451318718100101002020020200354211100211091010010100000000640363331979220000100102003620036200362003620036
100242003515500000008610000197432520010200101001018531004916955200352003518451318718100101002020020200354211100211091010010100000000640363331979220000100102003620036200362003620036

Test 3: Latency 1->3

Code:

  eon w0, w1, w0, lsr #17
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)030918191e1f3a3f4c4d51schedule 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)st unit uop (a7)l1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)daddfetch restart (de)e0? int output thing (e9)eb? int retires (ef)f5f6f7f8fd
10204200351550000008210000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000000071015901119791200000101002003620036200362003620036
102042003515500000011010000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000003071015901119791200000101002003620036200362003620036
10204200351561000006110000198032520100201001010018534214916955200352003518429318700101001020020200200354211102011009910010100100000000071015901119791200000101002003620036200362003620036
10204200351560000006110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000000071015901119791200000101002003620036200362003620036
10204200351550000006110000198032520100201001010018534214916955200352003518429318700101001020020200200354211102011009910010100100000000071015901119791200000101002003620036200362003620036
102042003515500000011010000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000000071015901119791200000101002003620036200362003620036
10204200351560000006110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000000071015901119791200000101002003620036200362003620036
102042003515500000012410000198032520100201001010018534214916955200352003518429318700101001020020200200354211102011009910010100100000010071015901119791200230101002003620036200362003620036
102042003515500000012610000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000013071015901119791200000101002003620036200362003620036
10204200351550000006110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000000071015901119791200000101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03l2 tlb miss data (0b)181e3f4c4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)int prf full (71)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)? int retires (ef)f5f6f7f8fd
100242003515500076810000197432520010200101001018531014916955200352003518451031871810010100202002020035421110021109101001010000640363221979220000100102003620036200362003620036
10024200351550006110000197432520010200101001018531014916955200352003518451031871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
10024200351550006110000197432520010200101001018531014916955200352003518451031871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
10024200351550006110000197432520010200101001018531004916955200352003518451031871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
10024200351550006110000197432520010200101001018531004916955200352003518451031871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
10024200351550006110000197432520010200101001018531004916955200352003518451031871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
10024200351550006110000197432520010200101001018531004916955200352003518451031871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
10024200351550006110000197432520010200101001018531014916955200352003518451031871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
10024200351550006110000197432520010200101001018531004916955200352003518451031871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
10024200351550006110000197432520010200101001018531014916955200352003518451031871810010100202002020035421110021109101001010000640263271979220000100102003620036200362003620036

Test 4: throughput

Count: 8

Code:

  eon w0, w8, w9, lsr #17
  eon w1, w8, w9, lsr #17
  eon w2, w8, w9, lsr #17
  eon w3, w8, w9, lsr #17
  eon w4, w8, w9, lsr #17
  eon w5, w8, w9, lsr #17
  eon w6, w8, w9, lsr #17
  eon w7, w8, w9, lsr #17
  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.3341

retire uop (01)cycle (02)03mmu table walk instruction (07)l2 tlb miss data (0b)1e3f4c4d51schedule 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 miss (a1)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204267692080006180000260942516010016010080100164318149236450267252672516615316677801008020016020026725391180201100991008010010000051102222126717160000801002672626726267262672626726
80204267252070006180000260942516010016010080100164318149236450267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
80204267252070008980000260942516010016010080100164318149236450267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
80204267252070006180000260942516010016010080100164318149236450267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
80204267252070006180000260942516010016010080100164318149236450267252672516615316677801008041116020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
8020426725207000184180080260942516010016010080539167878149236450267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
802042672520700014580000260942516010016010080100164318149236450267252672516615316701801008020016020026725391180201100991008010010001051101221126717160000801002672626726267262672626726
802042672520700044180000260942516010016010080100164318149236450267252672516615316682801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
80204267252080006180000260942516010016010080100164318149236450267252672516615316677801008020016020026725391180201100991008010010001051101221126717160000801002672626726267262672626726
80204267252070006180000260942516010016012580100164318149236450267252672516620316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f3a3f4c4d51schedule 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)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
800242671720901020008198000021280961600101600108001017546214923724267112671116623316752806458002016132226711391180021109108001010022000251203221126837160000800102671226887267122677026883
8002426711208000000011780000212802516001016056880010163142149236312688226711166251016685806428002016002026881394180021109108001010000100050441481126832160000800102688326712268162671226712
80024267112070000000618024721280251601951600108001016314204923631267112671116630316685800108002016002026711391180021109108001010000000050202221126704160000800102688526712267122694726712
800242688521401040007680000212802516001016001080010163142149236312671126711166233416685800108002016002026711391180021109108001010000120050201222126704160000800102671226712267122671226712
80024267112070000000618000021280251600101600108021916314214923631267112671116623316685800108002016002026711391180021109108001010000000050201221126704160000800102671226712270652671226712
8002426711207000000063180000212802516001016001080010163142049236312671126711166232716685800108002016002026711391180021109108001010000000050201221226704160000800102671226712267122671226712
8002426711207000002640618000021280251600101600108001016314214923631267112671116623316753800108002016002026711391180021109108001010000100050201221126704160000800102671226712267122694226712
80024267112070000000618000021280251600101600108001016314204923631267112671116623316685800108087616002026711391180021109108001010000100050201221126704160000800102671226712267122671226712
80024267112070030000618000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010000000050201221126704160000800102671226712267122682726712
800242671120700000007958000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010000000050201221126704160000800102671226770267122671226712