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, lsl, 64-bit)

Test 1: uops

Code:

  eon x0, x0, x1, lsl #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)031e3f4c4d51schedule 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
100420351606110001735252000200010003257020352035157531842100010002000203542111001100000732672217812000100020362036203620362036
100420351606110001735252000200010003257020352035157531842100010002000203542111001100000732672217812000100020362036203620362036
100420351506110001735252000200010003257020352035157531842100010002000203542111001100003732672217812000100020362036203620362036
100420351506110001735252000200011453257020352035157531842100010002000203542111001100000732672217812000100020362036203620362036
1004203516012410001735252000200010003257020352035157531842100010002000203542111001100000732672217812000100020362036203620362036
1004203516015610001735252000200010003257020352035157531842100010002000203542111001100000732672217812000100020362036203620362036
100420351606110001735252000200010003257020352035157531842100010002000203542111001100000732672217812000100020362036203620362036
100420351508210001735252000200010003257020352035157531842100010002000203542111001100003732672217812000100020362036203620362036
100420351606110001735252022200010003257020352035157531842100010002000203542111001100000732672217812000100020362036203620362036
100420351506110001735252000200010003257020352035157531842100010002000203542111001100000732672217812000100020362036203620362036

Test 2: Latency 1->2

Code:

  eon x0, x0, x1, lsl #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)031e3f4c4d51schedule 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 cache writeback (a8)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102042003515006110000198032520100201001011118498514916955020035200351847771873510111102322026420035421110201100991001010010000111720016001984520000101002003620036200362003620036
1020420035150010310000198032520100201001011118498514916955020035200351847731870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534214916955020035200351842931870010100102002020020035421110201100991001010010030000710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534214916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
1020420035150017010000198032520100201001010018534214916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534214916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
1020420035150012410000198032520100201001010018534214916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534214916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
1020420035150053610000198032520100201001010018534214916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534214916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)0318191e3f4c4d51schedule 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10024200351553018497100001974325200102001010010185310149169552003520035184513187181015510020200202003542111002110910100101013640263221979220000100102003620036200362003620036
10024200351550012797100001974325200102001010010185310149169552003520035184513187181001010020200202003542111002110910100101003640263221979220000100102003620036200362003620036
10024200351550012103100001974325200102001010010185310149169552003520035184513187181001010020200202003542111002110910100101013640263221979220000100102003620036200362003620036
10024200351550042104100001974325200102001010010185310149169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
10024200351550012103100001974325200102001010010185310149169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
10024200351550054103100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101003640263221979220000100102003620036200362003620036
1002420035156001261100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101010640263221979220000100102003620036200362003620036
10024200351550012103100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101013640263221979220000100102003620036200362003620036
100242003515500061100001974325200102001010010185310149169552003520035184513187181001010020200202003542111002110910100101013640263221979220000100102003620036200362003620036
1002420035155001261100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101003640263221979220000100102003620036200362003620036

Test 3: Latency 1->3

Code:

  eon x0, x1, x0, lsl #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)03mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f4c4d51schedule 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 tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204200351570000000061100001980325201002010010569184985491695520035200351847771878210111102322026420035421110201100991001010010002000400111720016001984520000101002003620036200362008120036
1020420035155000000001210100001979725201002010010111184503491695520035200351847771873510111102322127220035421110201100991001010010000000000111720016001984520000101002003620036200362003620036
10204201161610010000061100001979725201532010010111184985491695520035200351847771873510111102322026420035421110201100991001010010000000202111720016001984520000101002003620036200362003620036
10204201261550000000161100001980390201252010010111184985491713820035200351848071873410111102322026420035421110201100991001010010000002000111720016001984420000101002003620036200362003620036
10204200351550003000061100001980325201002010010111184985491695520035200351847771873510111102002020020035421110201100991001010010000010000000780159111979120025101002003620036200362003620036
102042003515600000000103100001980325201002010010100185342491695520035200351842931870010100102002020020035421110201100991001010010000000000000710159311979120000101002003620036200362003620036
10204200801550000000061100001980325201002010010100185342491695520035200351842931870010100102002020020035421110201100991001010010000004000000710159111979120000101002003620036200362003620036
10204200351560000000061100001979725201002010010100185342491695520035200351842931870010100102002020020035421110201100991001010010000000060000712159111979120000101002003620036200362003620036
10204200351560000000061100001980325201002010010100185342491695520035200351842931870010125102002020020035421110201100991001010010000001000000710159111979120025101002003620036200362003620036
10204200351550000000061100001980325201002010010100185342491695520035200351842931870010100102002020020035421110201100991001010010000000000000710259111979120000101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03191e3f4c4d51schedule 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1002420035155060061100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640463221979220000100102003620036200362003620036
100242003515503361100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
10024200351550061100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
100242003515502461100001974325200102001010010185310049169552006820035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
1002420035156051411100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
100242003515506661100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101003640263221979220000100102003620036200362003620036
10024200351550243601100001974325200102001010010185310149169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
100242003515501261100001974325200102001010010185310149169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
100242003515603661100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
100242003515502761100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036

Test 4: throughput

Count: 8

Code:

  eon x0, x8, x9, lsl #17
  eon x1, x8, x9, lsl #17
  eon x2, x8, x9, lsl #17
  eon x3, x8, x9, lsl #17
  eon x4, x8, x9, lsl #17
  eon x5, x8, x9, lsl #17
  eon x6, x8, x9, lsl #17
  eon x7, x8, x9, lsl #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)03l2 tlb miss data (0b)191e1f3f4c4d51schedule 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)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802042676720700120104800002609425160100160100801001643181492364526725267251661531667780100802001602002672539118020110099100801001000003051102221126717160000801002672626726267262672626726
80204267252070012061800002609425160100160100801001643180492364526725267251661531667780100802001602002672539118020110099100801001000103051101221126717160000801002672626726267262672626726
80204267252070000103800002609425160100160100801001643181492364526725267251661531667780100802001602002672539118020110099100801001000103051101221126717160000801002672626726267262672626726
802042672520700120103800002609425160100160100801001643181492364526725267251661531667780100802001602002672539118020110099100801001000103051101221126717160000801002672626726267262672626726
80204267252070012061800002609425160100160100801001643181492364526725267251661531667780100802001602002672539118020110099100801001000103051101221126717160000801002672626726267262672626726
802042672520700120103800002609425160100160100801001643180492364526725267251661531667780100802001602002672539118020110099100801001000000051101221126717160000801002672626726267262672626726
80204267252070012061800002609425160100160100801001643181492364526725267251661531667780100802001602002672539118020110099100801001000103051101221126717160000801002672626726267262672626726
802042672520700120103800002609425160100160100801001643181492364526725267251661531667780100802001602002672539118020110099100801001000103051101221126717160000801002672626726267262672626726
802042672520700120618000026094251601001601008010016431814923645267252672516624101667780100802001602002672539118020110099100801001000103051101221126717160000801002672626726267262672626726
80204267252080000103800002609425160100160100801001643181492364526725267251661531667780100802001602002672539118020110099100801001000103051102311126717160000801002672626726267262672626726

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l2 tlb miss data (0b)1e3f4c4d51schedule 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 tlb access (a0)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eb? int retires (ef)f5f6f7f8fd
80024267342070061800002128025160010160010800101631424923631267112671116623316685800108002016002026711391180021109108001010000502042284267041600000800102671226712267122671226712
80024267112070061800002128025160010160010800101631424923631267112671116623316685800108002016002026711391180021109108001010003502042276267041600000800102671226712267122671226712
80024267112070061800002128025160010160010800101631424923631267112671116623316685800108002016002026711391180021109108001010000502042243267041600000800102671226712267122671226712
80024267112070384800002128025160010160010800101631424923631267112671116623316685800108002016002026711391180021109108001010200502042243267041600000800102671226712267122671226712
800242671120700103800002128025160010160010800101631424923631267112671116623316685800108002016002026711391180021109108001010000502032243267041600000800102671226712267122671226712
80024267112070061800002128025160010160010800101631424923631267112671116623316685800108002016002026711391180021109108001010000502062276267041600000800102671226712267122671226712
800242671120700103800002128025160010160010800101631424923631267112671116623316685800108002016002026711391180021109108001010000502042266267041600000800102671226712267122671226712
80024267112060061800002128025160010160010800101631424923631267112671116623316685800108002016002026711391180021109108001010000502042243267041600000800102671226712267122671226712
80024267112070089800002128025160010160010800101631424923631267112671116623316685800108002016002026711391180021109108001010000502042243267041600000800102671226712267122671226712
80024267112070061800002128025160010160010800101631424923631267112671116623316685800108002016002026711391180021109108001010000502042234267041600000800102671226712267122671226712