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

Test 1: uops

Code:

  fmov h0, h0
  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)031e1f3f4e51schedule 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)f5f6f7f8fd
1004203716006116862510001000100026452102018203720371571318951000100010002037203711100110004373416341786100020382038203820382038
1004203715006116862510001000100026452102018203720371571318951000100010002037203711100110000073416441786100020382038203820382038
1004203715006116862510001000100026452102018203720371571318951000100010002037203711100110000073616441786100020382038203820382038
10042037160010316862510001000100026452102018203720371571318951000100010002037203711100110000073416441786100020382038203820382038
1004203716006116862510001000100026452102018203720371571318951000100010002037203711100110000073516541786100020382038203820382038
1004203716006116862510001000115226578502018203720371571318951000100010002037203711100110000373416441786100020382038203820382038
1004203716006116862510001000100026452102018203720371571318951000100010002037203711100110000373416441786100020382038203820382038
1004203716009116862510001000100026452102018203720371571318951000100010002037203711100110000073416441786100020382038203820382038
10042037150010516862510001000100026452102018203720371571318951000100010002037203711100110000073516541786100020382038203820382038
1004203715006116862510001000100026452102018203720371571318951000100010002037203711100110000073416441786100020382038203820382038

Test 2: Latency 1->2

Code:

  fmov h0, h0
  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)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)696d6emap stall dispatch (70)simd prf full (72)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)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
1020420037161000000061196862510100100100001001000050028475212001820037200371842103187451010020010000200100002003720037111020110099100100100001000100071011611197910100001002003820038200382003820038
1020420037161000000061196862510100100100001001000050028475212001820037200371842103187451010020010000200100002003720037111020110099100100100001000000071011621197910100001002003820038200382003820038
1020420037161000000061196862510100100100001001000050028475212001820037200371842103187451010020010000200100002003720037511020110099100100100001000000071011611197910100001002003820038200382003820038
10204200371610000000117196862510100100100001001000050028475212001820037200371842403187451010020010000200100002003720037111020110099100100100001000100071011611197910100001002003820038200382003820229
1020420371161000000099196862510100100100001131000050028475212001820037200371842103187451010020010000200100002003720037111020110099100100100001000100071011611197910100001002003820038200382003820038
1020420037161000000061196862510100100100001131000050028475212001820037200371842103187451010020010000200101672003720037111020110099100100100001000001095071011611197910100001002003820038200382003820038
102042003715800000120129196862510100100100001001000050028475212001820037200371842103187621010020010000200100002003720037111020110099100100100001000200071011611197910100001002003820038200382003820038
102042003715500000240611968625101001001000010010000500284752120018200372003718421031874510100200100002001000020037200371110201100991001001000010000000710116111979115100001002003820087200852008720038
10204200371560110000631196312510100100100001001000074328475212001820037200371842103187451010022010000200100002003720037111020110099100100100001000141981071011611200070100001002003820038200862008520087
1020420084156000111288578196862510100100100001001000050028475212001820102200371842303187451025620010000208100002008620084111020110099100100100001000000071011611197910100001002003820038200382003820038

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0037

retire uop (01)cycle (02)0318191e1f3f4e51schedule 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)st unit uop (a7)l1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
100242003716100420103196864510010101000010100005028475212001820037200371844331876710010201000020100002003720037111002110910101000010000006401161119786010000102003820038200382003820038
1002420037161000061196862510010101001210100005028475212023420132200831844731876710010201000020100002003720037111002110910101000010000199006401161119786010000102003820038200382003820084
10024200371611018061196862510010101000010100005028475212001820037200371844731876710010201000020100002003720037111002110910101000010001197506400241119786010000102003820038200382003820038
1002420037161000061196862510010101000011100005028475212001820037200841844331876710010201000020100002003720037111002110910101000010000306611161119786010000102003820038200382008620038
1002420037161000061196862510010101000010100005028475212005420037200371844331876710010201000020101702003720037111002110910101000010000006401161119786010000102003820038200382003820038
1002420037161002188346196862510010101000012100005028475212001820037200851844381876710010201000020100002003720037111002110910101000010001006401161119786010000102003820038200852003820038
1002420037161000061196862510010101000010100005028475212001820037200831844331876710010201000020100002003720037111002110910101000010000006401161119786010000102003820038200382003820086
1002420037160000061196862510010101000010100005028475212001820037200371844331876710010201000020100002003720037111002110910101000010000006401161119786210000102008620038200382003820038
1002420037161000061196862510010101000010100005028475212001820037200371844331876710010201000020100002003720037111002110910101000010000006401241119786010000102003820038200382003820038
1002420037160000061196862510010121000010100005028475212001820037200371844731876710010201000020100002003720037111002110910101000010000036401162119786010000102003820038200382003820038

Test 3: throughput

Count: 8

Code:

  fmov h0, h8
  fmov h1, h8
  fmov h2, h8
  fmov h3, h8
  fmov h4, h8
  fmov h5, h8
  fmov h6, h8
  fmov h7, h8
  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 instruction (07)mmu table walk data (08)181e3f4351schedule 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 cache writeback (a8)acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d2d5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
802042006115500030290258010810080008100800205006401321200192003820038997769989801202008003220080032200382003811802011009910010080000100010011151180001600200350800001002003920039200392003920039
802042003815500012290258010810080008100800205006401320200192003820038997769989801202008003220080032200382003811802011009910010080000100010011151180001600200350800001002003920039200392003920039
802042003815500012710258010810080008100800205006401320200192003820038997769989801202008003220080032200382003811802011009910010080000100000011151180001600200350800001002003920039200392003920039
802042003815600069290258010810080008100800205006401320200192003820038997769989801202008003220080032200382003811802011009910010080000100003011151180001600200350800001002003920039200392003920039
802042003815500036290258010810080008100800205006401320200192003820038997769989801202008003220080032200382003811802011009910010080000100000011151180001600200350800001002003920039200392003920039
8020420038156000291710258010810080008100800205006401320200192003820038997769989801202008003220080032200382003811802011009910010080000100003011151180001600200350800001002003920039200392003920039
802042003815500021640268011610080016100800285006401960200282004820048997699986801282008003820080038200482004911802011009910010080000100000222251291022322200450800001002004920050200502004920049
8020420048156000189640268011610080016100800285006401960200282004820048997699986801282008003820080038200492004911802011009910010080000100000022251281022322200460800001002004920049200502005020049
802042004815600006402680116100800161008002850064019602002820049200499976109986801282008003820080038200482004811802011009910010080000100000022251281022322200460800001002005020049200492005020050
8020420048155000126402780116100800161008002850064019602002820048200489976109986801282008003820080038200492004911802011009910010080000100010022251291022322200450800001002005020049200492005020049

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss instruction (0a)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)a9acc2cfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
800242003916100000003925800101080000108000050640000200192003820038999631001880010208000020800002003820038118002110910108000010000003050200316332003580000102003920039200392003920039
80024200381610000000166525800101080000108000050640000200192003820038999631001880010208000020800002003820038118002110910108000010000000050200316332003580000102003920039200392003920039
800242003816100000303925800101080000108000050640000200192003820038999631001880010208000020800002003820038118002110910108000010000103050200316322003580000102003920039200392003920039
80024200381610000000132025800101080000108000050640000200192003820038999631001880010208000020800002003820038118002110910108000010000000050200316332003580000102003920039200392003920039
80024200381610000012025825800101080000108000050640000200192003820038999631001880010208000020800002003820038118002110910108000010000100050200316332003580000102003920039200392003920039
80024200381610000012018525800101080000108000050640000200192003820038999631001880010208000020800002003820038118002110910108000010000000050200316332003580000102003920039200392003920039
800242003816000000008125800101080000108000050640000200192003820038999631001880010208000020800002003820038118002110910108000010000000050200316232003580000102003920039200392003920039
8002420038161000000012325800101080000108000050640000200192003820038999631001880010208000020800002003820038118002110910108000010000000050200316322003580000102003920039200392003920039
8002420038161000000017725800101080000108000050640000200192003820038999631001880010208000020800002003820038118002110910108000010000000050200316342003580000102003920039200392003920039
800242003816100000003925800101080000108000050640768200192003820038999631001880010208000020800962003820038118002110910108000010000000050200216232003580000102003920039200392003920039