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

FMOV (S to W)

Test 1: uops

Code:

  fmov w0, s0
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 2.000

Integer unit issues: 1.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)031e3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch simd uop (57)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map simd uop (7e)map simd uop inputs (81)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
10045384043252000100010001000800005195385383703396100010001000538538111001100000733163353510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000733163353510001000539539539539539
10045384043252000100010001000800015195385383703396100010001000538538111001100010733163353510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000733163353510001000539539539539539
10045384043252000100010001000800015195385383703396100010001000538538111001100000733163353510001000539539539539539
10045384043252000100010001000800015195385383703396100010001000538538111001100000733163353510001000539539539539539
10045384043252000100010001000800015195385383703396100010001000538538111001100000733163353510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100010733163353510001000539539539539539
10045384043252000100010001000800015195385383703396100010001000538538111001100003733163353510001000539539539539539
10045384043252000100010001000800015195385383703396100010001000538538111001100000733163353510001000539539539539539

Test 2: Latency 1->2 roundtrip

Code:

  fmov w0, s0
  fmov d0, x0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 10.0038

retire uop (01)cycle (02)030918191e3a3f4f51schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acbranch mispred nonspec (cb)cfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
2020410003877600001100029895612530100101001000010000100100001000050047784815580349100013100038100038969003974962010020010000100002001000010000100038100038112020110099100101001000010040100000000131012162399637100001000010100100039100039100039100039100039
2020410003877500000100024895612530100101001000010000100100001000050047784815580349100013100038100038969003974992010020010000100002001000010000100038100038112020110099100101001000010000100001000131012162299637100001000010100100039100039100039100039100039
2020410003877500000100056895612530100101001000010000100100001000050047784815580349100013100038100039969003974962010020010000100002001000010000100038100038112020110099100101001000010000100000000131012162299637100001000010100100042100039100039100039100039
2020410003877500000100024895612530100101001000010000100100001000050047784815580349100013100039100038969003974962010020010000100002001000010000100038100038112020110099100101001000010000100000000131012163399637100001000010100100041100039100039100039100039
2020410003877600000100046895612530100101001000010000100100001000062647784815580349100042100038100038969003974972010020010000100002001000010000100038100038112020110099100101001000010000100000000131014172499637100251000010100100040100039100039100039100040
2020410003877500000100370895612530100101001000010000125100001000062647784815580349100013100038100038969003974962010020010000100002001000010000100038100038112020110099100101001000010000100000030131212162399640100001000010100100039100039100039100039100039
2020410003877600000100027895612530100101001000010000100100001000050047784815580349100013100038100038969003974972010020010000100002001000010000100038100038112020110099100101001000010000100000000131013174399637100001000010100100039100039100039100039100039
2020410003877600000100029895612530100101001000010000100100001000050047784815580349100013100038100038969003974962010020010000100002001000010000100038100038112020110099100101001000010000100000001131012162299637100001000010100100039100039100039100039100039
2020410003877500000100045895612530100101001000010000100100001000050047784815580404100013100041100038969003974962010020010000100002001000010000100038100038112020110099100101001000010000100001000131012162299637100001000010100100210100044100119100208100039
2020410003877600000100153895612530100101001000010000100100001000050047784815580349100013100038100038969003974962010020010000100002001000010000100038100038112020110099100101001000010000100000000131012162299637100001000010100100039100039100039100039100039

1000 unrolls and 10 iterations

Result (median cycles for code): 10.0038

retire uop (01)cycle (02)03l2 tlb miss data (0b)18191e1f3f4f51schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
20024100039776000216010002389561253001010010100001000010100001000050477848155789541100013100038100038969253975182001020100001000020100001000010003810003811200211091010010100001000100000000012701161299637100001000010010100039100039100039100039100039
20024100038776000546010002389561253001010010100001000010100001000050477848155789540100013100038100038969223975182001020100001000020100661000010003810003811200211091010010100001000100000000012701161199637100001000010010100039100039100039100039100039
20024100038775000453010002389561253001010010100001000010100001000050477848155790620100013100038100038969223975182001020100001000020100001000010003810003811200211091010010100001000100000100012701161199637100001000010010100039100039100039100039100039
2002410004077500048010002389561253001010010100001000010100001000050477848155789540100013100038100038969223975182001020100001000020100001000010003810003811200211091010010100001000100000000012701161299637100001000010010100039100039100039100039100039
2002410003877500054010002389561253001010010100001000010100001000050477848155789540100013100038100038969223975182001020100001000020100001000010003810003811200211091010010100001000100000003012701161199696100001000010010100039100039100039100039100039
20024100038775000279010002389561253001010010100001000010100001000050477848155789540100013100038100038969223975182001020100001000020100001000010003810003811200211091010010100001000100000000012701161199637100001000010010100039100042100039100039100042
20024100067776000567010002389562253001010010100001000010100001000050477848155789540100015100038100038969223975182001020100001000020100001000010003810003811200211091010010100001000100000000012702161199637100001000010010100039100039100039100039100040
2002410003877600054010002389565253001010010100001000010100001000050477848156280561100013100038100038969223975182001020100001000020100001000010003810003811200211091010010100001000100000100012701161199637100001000010010100039100039100039100039100039
20024100038776000258010002389561253001010010100001000010100001000050477848155789541100013100038100038969273975182001020100001000020100001000010003810003911200211091010010100001000100000000014211491199637100001000010010100039100039100039100039100039
20024100038775000267010002389561253001010010100001000010100001000050477848155789541100013100038100038969223975182001020100001000020100001000010003910003811200211091010010100001000100000100012701161299637100001000010010100039100039100040100039100039

Test 3: throughput

Count: 8

Code:

  fmov w0, s8
  fmov w1, s8
  fmov w2, s8
  fmov w3, s8
  fmov w4, s8
  fmov w5, s8
  fmov w6, s8
  fmov w7, s8
  mov x8, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)0309l2 tlb miss data (0b)18191e1f3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fld unit uop (a6)l1d cache writeback (a8)acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204400543100000003225160100801008000010080004500640024140019400384003829976629991801042008001620080016400384003811802011009910080100100079301115117016004003580000801004003940039400394003940039
8020440038311000000742516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100991008010010000601115117016004003580000801004003940039400394003940039
8020440038310000000322516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100991008010010000301115117016004003580000801004003940039400394003940039
802044003831000001201022516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100991008010010000001115117016004003580000801004003940039400394003940039
802044003831000001202222516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100991008010010000301115117016004003580000801004003940039400394003940039
8020440038310000000322516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100991008010010000001115117016004003580000801004003940039400394003940039
8020440038310000000322516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100991008010010000228101115117016004003580000801004003940039400394003940039
8020440038310000030742516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100991008010010000001115117016004003580000801004003940039400394003940039
8020440038311000000322516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100991008010010000001115117016004003580000801004003940039400394010440039
80204400383100000120322516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100991008010010000001115117016304003580000801004003940039400394003940039

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)09l2 tlb miss data (0b)18191e1f3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)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)dbddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
800244004731000000004325160010800108000010800005064000014001940038400382999233001880010208000020800004003840038118002110910800101000000005020011601140035800000800104003940039400394003940039
800244003831000000304325160010800108000010800005064000014001940038400382999233001880010208000020800004003840038118002110910800101000000005020011601140035800000800104003940039400394003940039
800244003831000000004325160010800108000010800005064000014001940038400382999233001880010208000020800004003840038118002110910800101000000005020011602140035800000800104003940039400394003940039
800244003831000000004325160010800108000010800005064000014001940038400382999233001880010208000020800004003840038118002110910800101000000005020011601140035800000800104003940039400394003940039
800244003831000000004325160010800108000010802505064000014001940038400382999233001880010208000020800004003840038118002110910800101000000025020011601140035800000800104003940039402344003940039
800244003831000000004325160010800108000010800005064000014001940038400382999233001880010208000020800004003840038118002110910800101000000005020011601140035800000800104003940039400394003940039
800244003831000000004325160010800108000010800005064000014001940038402332999233001880010208000020800004003840038118002110910800101000000305020011601140035800000800104003940039400394003940039
800244003831000000004325160010800108000010800005064000014001940038400382999233001880010208000020800004003840038118002110910800101000000005020012401140035800000800104003940039400394003940039
800244003831000000004325160010800108000010800005064000014001940038400382999233001880010208000020800004003840038118002110910800101000000170805020011601240357800000800104022940231400394003940236
800244003831200000546043621600108001080000108000050640000140019400384003829992183001880010208000020800004003840038118002110910800101000010005020011601440035800000800104003940039400394003940039