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

UMNEGL

Test 1: uops

Code:

  umnegl x0, w0, w1
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 1.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)031e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696d6emap 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
1004303322061280925100010001000161686140303330332676328911000100020003033296111001100020731161128631000100030343034303430343034
1004303323061280925100010001000161686040303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
1004303323061280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
10043033230103280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
1004303322061280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
1004303323061280925100010001000161686040303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
1004303322061280925100010001000161686040303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
10043033230658280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
1004303323061280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
1004303322061280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034

Test 2: Latency 1->2

Code:

  umnegl x0, w0, w1
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03l2 tlb miss data (0b)1e1f3f4d51schedule 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)st unit uop (a7)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204300332250001662980925101001010010100166518649269533003330033285263287411010010200202003003329011102011009910010100100010000710116112986310000101003003430034300343003430034
1020430033225000612980925101001010010100166518649269533003330033285263287411010010200202003003329011102011009910010100100000000710116112986310000101003003430034300343003430034
1020430033225000612980925101001010010100166518649269533003330033285263287411010010200202003003329011102011009910010100100000001667710116112986310000101003003430034300713003430034
102043003322500061298092510100101001010016651864926953300333003328526328741101001020020200300332901110201100991001010010000000156710116112986310000101003003430034300343003430034
102043003322400061298092510100101001010016651864926953300333003328526328741101001020020200300332901110201100991001010010000000180710016112986310000101003003430034300343003430034
1020430033225000612980925101001010010100166518649269533003330033285263287411010010200202003003329011102011009910010100100000000710116112986310000101003003430034300343003430034
1020430033225000612980925101001010010100166518649269533003330033285263287411010010200202003003329011102011009910010100100000000710116112986310000101003003430034300343003430034
10204300332250009572980925101001010010100166640349269533003330033285263287411010010200202003003329011102011009910010100100000000710116112986310000101003003430034300343003430034
1020430033225000612980925101001010010100166518649269533003330033285263287411010010200202003003329011102011009910010100100000010710116112986310000101003003430034300343003430034
1020430033225012061298092510100101001010016651864926953300333003328526328741101001029620200300332901110201100991001010010000010150725133112989710000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)031e3f4d51schedule 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)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1002430033224061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
10024300332250660298002510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322501229298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225061298092510010100171001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  umnegl x0, w1, w0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3f4d51schedule 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)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020430033225000000612980925101001010010100166518614926953300333003328526328741101001020020200300332901110201100991001010010000723710016112986310000101003003430034300343003430034
102043003322400000061298092510100101001010016651860492695330033300332852632874110100102002020030033290111020110099100101001000000710116112986310000101003003430034300343003430034
102043003322400000061298092510100101001010016651860492695330033300332852632874110100102002020030033290111020110099100101001000000710116112986310000101003003430034300343003430034
102043003322500000061298092510100101001010016651861492695330033300332852632874110172102002020030033290111020110099100101001000000710116112986310000101003003430034300343003430034
10204300332250000006129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000105710116112986310000101003003430034300343003430034
102043003322500000061298092510100101001010016651860492695330033300332852632874110100102002020030033290111020110099100101001000003710116112986310000101003003430034300343003430034
1020430033225000000631298092510100101001010016651860492695330033300332852632874110100102002020030033290111020110099100101001000000710116112986310000101003003430034300343003430034
102043003322500000061298092510100101001010016651860492695330033300332852632874110100102002020030033290111020110099100101001001000710116112986310000101003003430034300343003430034
10204300332250000570852298092510100101001010016651860492695330033300332852632874110100102002020030033290111020110099100101001000000710116112986310000101003003430034300343003430034
1020430033225000000612980925101001010010100166518604926953300333003328526328741101001020020200300332901110201100991001010010000075710116112986310000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03mmu table walk data (08)191e1f3f4d51schedule 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)ld unit uop (a6)l1d cache writeback (a8)acbranch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1002430033225000061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225000061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225000061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225000061298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033224000061298092510010100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225000061298092510010100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225006061298092510010100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225000061298092510010100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225000061298092510010100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033224000061298092510019100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034

Test 4: throughput

Count: 8

Code:

  umnegl x0, w8, w9
  umnegl x1, w8, w9
  umnegl x2, w8, w9
  umnegl x3, w8, w9
  umnegl x4, w8, w9
  umnegl x5, w8, w9
  umnegl x6, w8, w9
  umnegl x7, w8, w9
  mov x8, 9
  mov x9, 10

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)1e3f51schedule 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 cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8020440052300000420258010080100801004005001493695540035400352997032999380100802001602004003590118020110099100801001000005110316224003280000801004003640036400364003640036
802044003530000040258010080100801004005001493695540035400352997032999380100802001602004003590118020110099100801001000005110216224003280000801004003640036400364003640036
802044003530000340258010080292801004005001493695540035400352997032999380100802001602004003590118020110099100801001000005110216224003280000801004003640036400364003640036
80204400353000008225801008010080100400500049369554003540035299703299938010080200160200400359011802011009910080100100145825110216224003280000801004003640036400364003640036
8020440035300001240258010080100801004005000493695540035400352997032999380100802001602004003590118020110099100801001002005110216224003280000801004003640036400364003640036
8020440035300000295678010080100802094005001493695540035400352997033002480100802001602964017090118020110099100801001000005110216224003280000801004003640036400364003640036
80204400352990012822580100801008010040050014936955400354003529970329993801008020016020040035901180201100991008010010011305110216224003280000801004003640036400364003640036
802044003530000040468016880100801004005001493695540035400352997032999380100802501603004003590118020110099100801001000005110216224003280000801004003640036400364003640036
802044003530400040258010080136801004005001493695540035400352997032999380100802001602004003590118020110099100801001000005110216224003280000801004003640036400364003640036
802044003529900040258010080100801004005001493695540035400352997032999380100802001602004003590118020110099100801001000005110216224003280000801004003640036400364003640036

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)0918191e1f3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)5f60696a6d6emap 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)a9acc2cfd0d2d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
8002440042299000000402580010800108001040005000493695540035400352999233001580010800201600204003590118002110910800101000000005026005162004440032800000800104003640036400364003640036
80024400353000000120402580010800108001040005001493695540035400352999233001580010800201600204003590118002110910800101000000005022014160004340032800000800104003640036400364003640036
800244003530000002409382580010800108001040005000493695540035400352999233001580010800201600204003590118002110910800101000000005020004160003440032800000800104003640036400364003640036
8002440035300000000402580010800108001040005000493695540035400352999233001580010800201600204003590118002110910800101000000005020004160003440032800000800104003640036400364003640036
8002540035300000000402580010800108001040005001493695540035400352999233001580010800201600204003590118002110910800101000000005022003160004440032800000800104003640036400364003640036
8002440035300000000402580010800108001040005001493695540035400352999233001580010800201600204003590118002110910800101000000005020004160004340032800000800104003640036400364003640036
8002440035300000000402580010800108001040005000493695540035400352999233001580010800201600204003590118002110910800101000000005020004160004440032800000800104003640036400364003640036
8002440035299000000402580010800108001040005000493695540035400352999233001580010800201600204003590118002110910800101000000005020004160004440032800000800104003640036400364003640036
8002440035300000000402580010800108001040005001493695540035400352999233001580010800201600204003590118002110910800101000000005020004160004440032800000800104003640036400364003640036
8002440035300000000402580010800108001040005000493695540035400352999233001580010800201600204003590118002110910800101000000005020004160004340032800000800104003640036400364003640036