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, S)

Test 1: uops

Code:

  fmov s0, s0
  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)031e3f4e51schedule 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)e0? simd retires (ee)f5f6f7f8fd
100420371608216862510001000100026452102018203720371571318951000100010002037203711100110000073161786100020382038203820382038
1004203716012316862510001000100026452102018203720371571318951000100010002037203711100110001373161786100020382038203820382038
1004203716058716862510001000100026452102018203720371571318951000100010002037203711100110000073161786100020382038203820382038
1004203716020616862510001000100026452102018203720371571318951000100010002037203711100110000073161786100020382038203820382038
100420371606116862510001000100026452102018203720371571318951000100010002037203711100110000073161786100020382038203820382038
1004203716010916862510001000100026452102018203720371571318951000100010002037203711100110000073161786100020382038203820382038
100420371606116862510001000100026452102018203720371571318951000100010002037203711100110000073161786100020382038203820382038
100420371606116862510001000100026452102018203720371571318951000100010002037203711100110000073161786100020382038203820382038
100420371606116862510001000100026452102018203720371571318951000100010002037203711100110000073161786100020382038203820382038
100420371606116862510001000100026452102018203720371571318951000100010002037203711100110000073161786100020382038203820382038

Test 2: Latency 1->2

Code:

  fmov s0, s0
  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)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)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)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)? simd retires (ee)? int retires (ef)f5f6f7f8fd
102042003716000000125196862510100100100001001000050028475212001820037200371842131874510100200100002001000020037200371110201100991001001000010000000071011611197910100001002003820038200382003820038
102042003716000030061196862510100100100001001000050028475212001820037200371842131874510100200101652001016820037200372110201100991001001000010000000071011611197910100001002003820038200382003820038
1020420037160000330110196862510100100100001001000050028475212001820037200371842131874510100200100002001000020037200371110201100991001001000010000000071011611197910100001002003820038200382003820038
1020420037161000330103196862510100100100001001000050028475212001820037200371842131874510100200100002001000020037200371110201100991001001000010000010071011611197910100001002003820038200382003820038
1020420037161000300117196862510100100100001001000050028475212001820037200371842131874510100200100002001000020037200371110201100991001001000010000000071011611197910100001002003820038200382003820038
102042003716100039082196862510100100100001001000050028475212001820037200371842131874510100200100002001000020037200371110201100991001001000010000000071011611197910100001002003820038200382003820038
1020420037161000210306196862510119100100001001000062628475212001820037200841842171874510100200100002001000020037200371110201100991001001000010000000071011611197910100001002003820038200382003820038
1020420037160000420103196862510100100100001001000050028475212001820037200371842131874510100200100002001000020037200371110201100991001001000010000000071011611197910100001002003820038200382003820038
10204200371610005117661196862510100100100001001000050028475212001820037200371842131874510100200100002001000020037200371110201100991001001000010000000071011611197910100001002003820038200382003820038
1020420037161000330138196862510100100100001001000050028475212001820037200371842131874510100200100002001000020037200371110201100991001001000010000000071011611197910100001002003820038200382003820038

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0037

retire uop (01)cycle (02)03mmu table walk data (08)09l2 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)st unit uop (a7)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
100242003716100000901451968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037111002110910101000010000010006401161219786210000102003820038200382003820038
10024200371610000000611968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037111002110910101000010000000006401161119786010000102003820038200382003820038
10024200371610000030611968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037111002110910101000010000000006401161119786010000102003820038200382003820038
10024200371610000030611968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037111002110910101000010000000006401161119786010000102003820038200382003820038
1002420037161000006352611968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037111002110910101000010000000006401161119786010000102003820038200382003820038
10024200371600000030611968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037111002110910101000010000000006401161119786010000102003820038200852003820038
10024200371600000030821968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037111002110910101000010000000006401161119786010000102003820038200382003820038
100242003716100000304981968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037111002110910101000010000000006401161119786010000102003820038200382003820038
10024200371600000030611968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037111002110910101000010000010006401161119786010000102003820038200382003820038
100242003716100000153881031968625100101010000101000050284752102001820037200371844331876710010201000020100002003720037111002110910101000010000000006401161119786010000102003820038200382003820038

Test 3: throughput

Count: 8

Code:

  fmov s0, s8
  fmov s1, s8
  fmov s2, s8
  fmov s3, s8
  fmov s4, s8
  fmov s5, s8
  fmov s6, s8
  fmov s7, s8
  movi v8.16b, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)l2 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)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)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
8020420061161000003525382580108100800081008002050064013220059200382013999776998980120200800322008003220038200382180201100991001008000010002000111511800160020035800001002003920039200392003920039
80204200381610000904202580108100800081008002051164013220019200382003899776998980120200800322008013420048200481180201100991001008000010000003222516012232220045800001002003920039200392003920039
802042003816101100032825801081008000810080020500640940200192003820038997761001480120200800322008003220038200891180201100991001008000010020000111511801160020035800001002003920039200902003920039
802042003816100002101012580108100801081008002050064013220019200382003899776998980120200800322008013520038200381180201100991001008000010000003111513500162020035800001002003920039200392003920039
80204200381610000210484268021110080016100800285006401962002820049200489976999868012820080038200801362004920049218020110099100100800001000001460222512812232220045800001002004920076200492004920049
8020420049161000115906426801161008001610080028500640968200282010020048997610998680128200800382008003820048200492180201100991001008000010000013222512813232220045800001002005020049200492004920049
8020420048161001015030626801161008001610080028500640196200282004820048997610998680128200800382008003820048200481180201100991001008000010000016222512812362220045800001002004920101200502004920049
802042004816100106906425801081008000810080126500640132200192003820038997761001380120200800322008003220038200381180201100991001008000010000000111511801160020035800001002003920039200392003920039
80204200381600000901852580108100800081008002050064013220019200382003899776998980120200800322008003220038200381180201100991001008000010000000111511800162020035800001002003920039200392003920147
80204200381610000240292580108100800081008002050064013220019200382003899776998980120200800322008003220038200381180201100991001008000010000000111511800160020035800001002003920039200392003920039

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)1e1f3f51schedule 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)9fl1d tlb access (a0)l1d tlb miss (a1)l1d cache writeback (a8)accfd5map dispatch bubble (d6)d9ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
80024200581610033039258001010800001080000506400002001920038200389996310018800102080000208000020038200381180021109101080000100000502041603420035080000102003920039200392003920039
800242003816100335239258001010800001080000506400002001920038200389996310018800102080098208000020038200381180021109101080000100000502031605520035080000102003920039200392003920039
8002420038161005010514258001010800001080000506400002001920038200389996310018800102080000208000020038200381180021109101080000100000502051604420035080000102003920039200392003920039
8002420038161003039258001010800001080000506400002001920038200389996310018800102080000208000020038200381180021109101080000100000502031604320035080000102003920039200392003920039
8002420038160006081258001010800001080000506400002001920038200389996310018800102080000208000020038200381180021109101080000100000502061604420035080000102003920039200392003920039
80024200381610030109258001010800001080000506400002001920038200389996310018800102080000208000020038200381180021109101080000100000502031604420035080000102003920039200392003920039
800242003816100153039258001010800001080000506400002001920038200389996310018800102080000208000020038200381180021109101080000100000502031606420035080000102003920039200392003920039
8002420038161006060258001010800001080000506400002001920038200389996310018800102080000208000020038200381180021109101080000100000502041603420035080000102003920039200392003920039
800242003816100150392580010108000010800005064000020019200382003899962510018800102080000208000020038200381180021109101080000100003502041604420035080000102003920039200392003920039
8002420038161006039258001010800001080000506400002001920038200389996310018800102080000208000020038200381180021109101080000100003502041604420035080000102003920039200392003920039