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

MVN (register, lsl, 64-bit)

Test 1: uops

Code:

  mvn x0, x0, 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)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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100420351508210001735252000200010003257002035203515753184210001000100020354211100110000731671117812000100020362036203620362036
100420351506110001735252000200010003257002035203515753184210001000100020354211100110000731671117812000100020362036203620362036
100420351506110001735252000200010003257002035203515753184210001000100020354211100110000731671117812000100020362036203620362036
100420351506110001735252000200010003257002035203515753184210001000100020354211100110000731671117812000100020362036203620362036
1004203515010310001735252000200010003257002035203515753184210001000100020354211100110000752632117812000100020362036203620362036
100420351506110001735252000200010003257002035203515753184210001000100020354211100110000731671117812000100020362036203620362036
100420351506110001735252000200010003257002035203515753184210001000100020354211100110000731671117812000100020362036203620362036
1004203515024710001735252000200010003257012035203515753184210001000100020354211100110000731672117812000100020362036203620362036
100420351506110001735252000200010003257002035203515753184210001000100020354211100110000731671117812000100020362036203620362036
100420351508210001735252000200010003257002035203515753184210001000100020354211100110000731671117812000100020362036203620362036

Test 2: Latency 1->2

Code:

  mvn x0, 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)031e3f4c4d51schedule 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)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020420035150061100001980325201002010010100185342049169552003520035184293187001010010200102002003542111020110099100101001000012710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
1020420035150010310000198032520100201001010018534214916955200352003518429318700101001020010200200354211102011009910010100100003710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100207988710159121979120000101002003620036200362003620036
102042003515506110000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
102042003515006110000198032520100201001010018534214916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036

1000 unrolls and 10 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)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
100242003515006110000197432520010200101001018531004916955200352003518451318718100101002010020200354211100211091010010100640363431979220000100102003620036200362003620036
100242003515006110000197432520010200101001018531004916955200352003518451318718100101002010020200354211100211091010010100640463341979220000100102003620036200362003620036
10024200351500372110000197432520010200101001018531004916955200352003518451318718100101002010020200354211100211091010010100640463431979220000100102003620036200362003620036
1002420035150063110000197432520010200101001018531014916955200352003518451318718100101002010020200354211100211091010010100640463431979220000100102003620036200362003620036
100242003515006110000197432520010200101001018531004916955200352003518451318718100101002010020200354211100211091010010100640363341979220000100102003620036200362003620036
100242003515006110000197432520010200101001018531004916955200352003518451318718100101002010020200354211100211091010010100640363341979220023100102003620036200362003620036
100242003515006110000197432520010200101001018531004916955200352003518451318718100101002010020200354211100211091010010100640463431979220000100102003620036200362003620036
100242003515006110000197432520010200101001018531004916955200352003518451318718100101002010020200354211100211091010010100640363431979220000100102003620036200362003620036
100242003515006110000197432520010200101001018531004916955200352003518451318718100101002010020200354211100211091010010100640463341979220000100102003620036200362003620036
100242003515006110000197432520010200101001018531004916955200352003518451318718100101002010020200354211100211091010010100640363431979220000100102003620036200362003620036

Test 3: throughput

Count: 8

Code:

  mvn x0, x8, lsl #17
  mvn x1, x8, lsl #17
  mvn x2, x8, lsl #17
  mvn x3, x8, lsl #17
  mvn x4, x8, lsl #17
  mvn x5, x8, lsl #17
  mvn x6, x8, lsl #17
  mvn x7, x8, lsl #17
  mov x8, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu 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)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)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd2d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204268822010000005588051425426200161484161292817381816824924002270832713916659621679781512819008169627082397180201100991008010010004301730222530802881127005161507801002709427099270962709927099
8020427150204116779561621618059825467248161769161657815151951844924191272122720816620891683581938821168212027096391018020110099100801001004001065732225327011102327203162223801002738627382274352709727387
802042744520500111013988804118000025931311601001601008010017007749236642674426744165726166698010080857802002674439118020110099100801001004220072951115364021434327393162200801002733727226272102744727157
8020427156213100000102800002593131160100160100801001700774923664267442674416572616669801008020080200267443911802011009910080100100000000111512002462226731160000801002674526745267452674526745
8020426744207000000978000025931311601001601008010017007749236642674426744165726166698010080200802002680239118020110099100801001000000061115120240160026729160082801002673326733267332673326733
80204267322310000240028800312614628160182160182802621619064923652267322673116651816661802628037680376267323911802011009910080100100000000111512900160026729160082801002673326733267332673326733
80204267322000000183028800312614628160182160182802621619064923651267322673216651816661802628037680376267323911802011009910080100100000000111512900160026729160082801002673326733267332673326733
80204267322000000444028800312614628160182160182802621619064923652267322673216651816661802628037680376267323911802011009910080100100000000111512900160026729160082801002673326733267332673326733
80204267322000000246028800312614628160182160182802621619064923652267322673216651816661802628037680376267323911802011009910080100100000000111512900160026729160082801002673326785267332673326733
80204267312000000261028800312614628160182160182802621619064923652267322673216651816661802628037680376267323911802011009910080100100000000111512900160026729160082801002673326733267332673326733

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)l2 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
800242671720000024306180000212802516001016001080363163142049236312671126711166233166858001080020800202671139118002110910800101000050203221126704160000800102671226712267122671226712
80024267112000002706180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000050201221126704160000800102671226712267122671226712
800242671120000039906180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000050201221126704160000800102671226712267122671226712
8002426711200000121086180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000050201221126704160000800102671226712267122671226712
80024267112000003006180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000050201221126704160000800102671226712267122671226712
80024267112000003006180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000050201221126704160000800102671226712267122671226712
80024267112000002406180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000050201221126704160000800102671226712267122671226712
800242671120000033906180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000050201221126704160000800102671226712267122671226712
80024267112000002406180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000050201221126704160000800102671226712267122671226712
800242671120000032706180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000050201221126704160000800102671226712267122671226712