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, 32-bit)

Test 1: uops

Code:

  mvn w0, w0, 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)03l2 tlb miss data (0b)191e3f4c4d51schedule 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 cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100420351500061100017352520002000100032570020352035157531842100010001000203542111001100000731671117812000100020362036203620362036
100420351500061100017352520002000100032570020352035157531842100010001000203542111001100000731671117812000100020362036203620362036
100420351500061100017352520002000100032570020352035157531842100010001000203542111001100000731671117812000100020362036203620362036
100420351500061100017352520002000100032570020352035157531842100010001000203542111001100000731671117812000100020362036203620362036
1004203515000105100017352520002000100032570020352035157531842100010001000203542111001100010731671117812000100020362036203620362036
100420351500061100017352520002000100032570020352035157531842100010001000203542111001100000731671117812000100020362036203620362036
100420351500061100017352520002000100032570020352035157531842100010001000203542111001100000731671117812000100020362036203620362036
100420351500061100017352520002000100032570020352035157531842100010001000203542111001100000731671117812000100020362036203620362036
100420351500061100017352520002000100032570020352035157531842100010001000203542111001100000731671117812000100020362036203620812036
100420351600061100017352520002000100032570020352035157531842100010001000203542111001100000731671117812000100020362036203620362036

Test 2: Latency 1->2

Code:

  mvn w0, w0, 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)03l2 tlb miss data (0b)1e3f4c4d51schedule 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 cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204200351500010510000198032520100201001010018534214916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
10204200351500012410000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100010710159111979120000101002003620036200362003620036
1020420035150006110000198032520100201001010018534214916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
10204200351500018910000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
10204200351500014510000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
10204200351500019110000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
1020420035150006110000198032520100201001010018534214916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
10204200351500010310000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
10204200351500052310000198032520100201001010018534204916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036
1020420035150008210000198032520100201001010018534214916955200352003518429318700101001020010200200354211102011009910010100100000710159111979120000101002003620036200362003620036

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)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
10024200351500611000019743252001020010100101853104916955200352003518451318718100101002010020200354211100211091010010100640263221979220000100102003620036200362003620036
10024200351490611000019743252001020010100101853104916955200352003518451318718100101002010020200354211100211091010010100640263221979220000100102003620036200362003620036
10024200351500611000019743252001020010100101853104916955200352003518451318718100101002010020200354211100211091010010100640263221979220000100102003620036200362003620036
10024200351509611000019743252001020010100101853104916955200352003518451318718100101002010020200354211100211091010010100640263221979220000100102003620036200362003620036
100242003515005171000019743252001020010100101853104916955200352003518451318718100101002010020200354211100211091010010100640263221979220000100102003620036200362003620036
10024200351500611000019743252001020010100101853104916955200352003518451318778100101002010020200354211100211091010010100640263221986020000100102003620036200362003620036
10024200351500611000019743252001020010100101853104916955200352003518451318718100101002010020200354211100211091010010100640263221979220000100102003620036200362003620036
10024200351500611000019743252001020010100101853104916955200352003518451318718100101002010020200354211100211091010010100640263221979220000100102003620036200362003620036
10024200351500611000019743342001020010100101853104916955200352003518451318718100101002010020200354211100211091010010100640263221979220000100102003620036200362003620036
100242003515002511000019743252001020010100101853104916955200352003518451318718100101002010020200354211100211091010010100640263221979220000100102003620036200362003620036

Test 3: throughput

Count: 8

Code:

  mvn w0, w8, lsl #17
  mvn w1, w8, lsl #17
  mvn w2, w8, lsl #17
  mvn w3, w8, lsl #17
  mvn w4, w8, lsl #17
  mvn w5, w8, lsl #17
  mvn w6, w8, lsl #17
  mvn w7, w8, 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)0918191e1f3a3f4c4d51schedule 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)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
8020426770200000090070800312614628160182160182802621619064923652267322673216651816661802628037680376267323911802011009910080100100000000011151294160026729160082801002684726792267332673326733
80204267322000000000693800312614628160182160182802621619064923652267322673216651816661802628037680376267313911802011009910080100100000000011151290160026729160082801002673326733267322673326733
8020426732200000000028800312614628160182160362804701619064923652267322673216651816661802628037680376267323911802011009910080100100000000011151290160026729160082801002673326733267332673326733
8020426732200000000028800312614628160182160182802621619064923652267322673216651816661811078037680376267323911802011009910080100100000000011151290160126729160082801002673326733267332673326732
8020426732200000000028800312614628160182160182802621619064923652267322673216651816661802628037680376267323911802011009910080100100000000011151290160026729160082801002673326733267332673326733
8020426732200000000028800312614628160182160182802621619064923652267322673216651816661802628037680376267313911802011009910080100100000000011151290160026729160082801002673226733267332673326733
80204267322000000120028800312614628160182160182802621619064923652267322673216651816661802628037680376267323911802011009910080100100000000011151290160026729160082801002673326733267332673326732
80204267322000000000288003126146281601821601828026216190649236522702927081166635716799815178167681459270773971802011009910080100100202124363211152750720027066161180801002714027139270812713827082
802042708120300679245281147580512237461981612741614788173818568149240592713527140166626516841815288168381684271373971802011009910080100100000105153011151290160026729160082801002673226733267892673326733
802042678820010678076160117180510247221991613101614788172718563649240002713926846166605716800817388169281912271383961802011009910080100100022105088011153200811027114161570801002719627196271322714027261

1000 unrolls and 10 iterations

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

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)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)a9acc2branch mispred nonspec (cb)cfd5map dispatch bubble (d6)d9ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
800242673420200000000726800002128025160010160010800101631420492363126711267111662312167078001080020800202671139118002110910800101000000000502052206626704160000800102671226712267122671226712
80024267112000000000072680000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000000000502072208526704160000800102671226712267122671226712
8002426711200000040006180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000000000502042204326704160000800102671226712267122671226712
8002426711200000400006180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000000000502042227726704160000800102671226712267122671226712
8002426711200000000006180000212802516001016001080010163142049236312671126711166233166858001080448800202671139118002110910800101000000000502062206726704160000800102671226712267122671226712
8002426711201000000006180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000000000502042204926704160000800102671226712267122671226712
8002426711200000000006180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000040600502062209626704160000800102671226712267122671226712
8002426711200000000006180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000000000502062204426833160000800102671226712267122671226712
8002426711200000000006180000212802516001016001080010163142049236312671126711166233166858001080020800202671139118002110910800101000000000502062207626704160000800102671226712267122671226712
800242694320000000000577800002128025160010160010800101631420492363126711267111662312167088001080020800202671139118002110910800101000000000502032205426704160000800102671226712267122671226712