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 (register, D)

Test 1: uops

Code:

  fmov d0, d0
  movi v0.16b, 1
  movi v1.16b, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)03l2 tlb miss data (0b)191e3f4e51schedule uop (52)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 simd alu (9a)l1d cache writeback (a8)accfmap dispatch bubble (d6)dde0? simd retires (ee)f5f6f7f8fd
100420371600361168625100010001000264521020182037203715713189510001000100020372037111001100010731601786100020382038203820382038
100420371700132104168625100010001000264521020182037203715713189510001000100020372037111001100000731601786100020382038203820382038
1004203716001861168625100010001000264521020182037203715713189510001000100020372037111001100003731601786100020382038203820382038
100420371610061168625100010001000264521020182037203715713189510001000100020372037111001100013731601786100020382038203820382038
100420371600061168625100010001000264521020182037203715713191410001000100020372037111001100000731611786100020382038203820382038
1004203717006961168625100010001000264521020182037203715713189510001000117020372037111001100000731601786100020382038203820382038
100420371600061168625100010001000264521020182037203715713189510001000100020372037111001100000731601786100020382038203820382038
100420371700061168625100010001000264521020182037203715713189510001000100020372037111001100000731601786100020382038203820382038
100420371600082168625100010001000264521020182037203715743189510001000100020372037111001100002035731601786100020382038203820382038
10042037160012124168625100010001000264521020182037203715713189510001000100020372037111001100010731601786100020382038203820382038

Test 2: Latency 1->2

Code:

  fmov d0, d0
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0037

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f4e51schedule 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)inst simd alu (9a)9fl1d tlb miss (a1)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
1020420037161000036008219686251010010010000100100005002847521020018200372003718421318745101002001000020010000200372003711102011009910010010000100000071011611197910100001002003820038200382003820038
1020420037161000021006119686251010010010000100100005002847521020018200372003718421318745101002001000020010000200372003711102011009910010010000100000071011611197910100001002003820038200382003820038
1020420037161000015006119686251010010010000100100005002847521020018200372003718421318745101002001000020010000200372003711102011009910010010000100010371011611197910100001002003820038200382003820038
102042003716000004170010319686251010010710000100100005002847521020018200372003718421318745101002001000020010000200372003711102011009910010010000100010071011611197910100001002003820038200382003820038
1020420037161000012009719686251010010010000100101525002847521020018200372003718421318745101002001000020010000200372003711102011009910010010000100000071011611197910100001002003820038200382003820038
102042003716100000008219686251010010010000100100005002847521020018200372003718421318745101002001000020010000200372003711102011009910010010000100000071011611197910100001002003820038200382003820038
1020420037160000027006119686251010010010000100100005002847521020018200372003718421318745101002001000020010000200372003711102011009910010010000100000071011611197910100001002003820038200382003820038
1020420037161000024008919686251010010010000100100005002847521020018200372003718421318745101002001000020010000200372003711102011009910010010000100010371011611197910100001002003820038200382003820038
1020420037161000012006119686251010010010000100100005002847521020018200372003718421318745101002001000020010000200372003711102011009910010010000100000071011611197910100001002003820038200382003820038
1020420037161000012006119686251010010010000100100005002847521020018200372003718421318745101252001000020010000200372003711102011009910010010000100010071011611197910100001002003820038200382003820038

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0037

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f3f4e51schedule 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)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ec? simd retires (ee)? int retires (ef)f5f6f7f8fd
1002420037161000000210821968625100101010000101000050284752102001820037200371845631876710010201000020100002003720037111002110910101000010000103640101656197860010000102003820038200382003820038
1002420037161001000582082196862510010101000010101525028475210200182003720037184473187671001020100002010000200372003711100211091010100001000000364082488197860010000102003820038200382003820038
100242003716100000030821968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037211002110910101000010000100640816115197860010000102003820038200382003820038
1002420037161000000270294196862510010101000010100006128475210200182003720037184433187671001020100002010000200372003711100211091010100001000000064081677197860010000102003820038200382008620038
10024200371610000003082196862510010101000010100005028475210200182003720037184433187671001020100002010000200372003711100211091010100001000000664061688197860010000102003820038200382003820038
1002420037161000000120124196862510022101000010100005028475210200182003720037184433187671001020100002010000200372003711100211091010100001000010364061685197860010000102003820038200382003820038
100242003716000000021061196862510010101000010100005028475210200182003720037184433187671001020100002010000200372003711100211091010100001000000064061676197860010000102003820038200382003820038
100242003716101000030103196862510010101000010100005028475210200182003720037184433187671001020100002010000200372003711100211091010100001000000364071688197860010000102003820038200382003820038
1002420037161000000120124196862510010101000010100005028475210200182003720037184433187671001020100002010000200372003711100211091010100001020000364041666200340010000102003820038200382003820038
100242003716100000030103196862510010101000010100005028475210200182003720037184433187671001020100002010000200372003711100211091010100001000000064061666197860010000102003820038200382003820038

Test 3: throughput

Count: 8

Code:

  fmov d0, d8
  fmov d1, d8
  fmov d2, d8
  fmov d3, d8
  fmov d4, d8
  fmov d5, d8
  fmov d6, d8
  fmov d7, d8
  movi v8.16b, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

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)inst simd alu (9a)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)cdcfmap dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
80204200611550000907125801081008000810080020500640132120019200382003899776998980120200800322008003220038200381180201100991001008000010000000001115118160020035800001002003920039200392003920039
80204200381560000902925801081008000810080020500640132120019200382003899776998980120200800322008003220038200381180201100991001008000010000000001115118160020035800001002009020039200392009520039
80204200391550000002925801081008000810080020500640132120019200382003899776998980120200800322008003220038200381180201100991001008000010000000301115118160020035800001002003920039200392003920039
80204200381550000005725801081008000810080020500640132120019200382003899776998980120200800322008003220038200381180201100991001008000010000000001115118160020035800001002003920039200392003920039
80204200381550000902925801081008000810080020500640132120019201932003899776998980120200800322008003220038200381180201100991001008000010000010301115118160020035800001002003920182201122010620039
8020420038156000012050258010810080008100800205006401321200562003820088997761001380120200800322008012820038200382180201100991001008000010000000001115118160020035800001002003920039200392003920039
80204200381550000102925801081008000810080020500640132120019200382003899776998980120200800322008003220038200381180201100991001008000010000000001115118160020035800001002003920039200392003920039
80204200381560000902925801081008000810080020500640132120019200382003899776998980120200800322008003220038200381180201100991001008000010000010001115118160020035800001002003920039200392003920039
80204200381550000120292580108100800081008002050064013212001920038200389977699898012020080032200800322003820038118020110099100100800001000000046521115135160020035800001002003920039200392003920039
802042003815600000019125801081008000810080020500640132120023200912003899776998980120200800322008003220038200381180201100991001008000010000000001115118160020035800001002003920039200392003920039

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)0918191e1f3a3f51schedule 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)696d6emap 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)inst simd alu (9a)9fld unit uop (a6)l1d cache writeback (a8)a9acbranch mispred nonspec (cb)cfl1i cache miss demand (d3)d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
8002420050161000001200392580010108000010800005064000020019200382003899963100188001020800002080000200892003811800211091010800001005060502003163320035080000102003920039200392003920039
80024200381610000068803925800101080000108000050640772200192003820038999631001880010208000020800002003820038118002110910108000010048000502003163320035080000102003920039200392003920039
800242003816200000000392580010108000010800005064000020019200382003899963100188001020800002080000200382003811800211091010800001003030502003164420035080000102003920039200392003920039
800242003816000000000392580010108000010800005064000020019200382003899963100188001020800002080000200382003811800211091010800001000000502003163320035080000102003920039200392003920039
800242003816100000600392580010108000010800005064000020019200382003899963100188001020800002080000200382003811800211091010800001000000502003163320035080000102003920039200392003920039
80024200381610000000039258001010800001080000506400002001920038200389996310018801072080000208000020038200381180021109101080000100300010015141321400321180000104003540035400354010740035
8002440034466000000006825800101080092108000050640000200192003820038999631001880010208000020800002003820038118002110910108000010048030502003163320035080000102009020039200392003920039
800242003816100000000812580010108000010800005064000020019200382003899963100188001020800002080000200382003811800211091010800001001000502003163320035080000102003920039200392003920039
800242003816100000000392580010108000010800005064000020019200382003899963100188001020800002080000200382003811800211091010800001003000502003163320035080000102003920039200392003920039
80024200381610000013200392580010108000010800005064000020019200382003899963100188001020800002080000200382008911800211091010800001000030502003163420035080000102003920039200392003920039