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

URSRA (vector, 8B)

Test 1: uops

Code:

  ursra v0.8b, v1.8b, #3
  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 tlb access (a0)l1d tlb miss (a1)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)f5f6f7f8fd
10043037220612548251000100010003983131301830373037241532895100010002000303730371110011000400073116112630100030383038303830383038
10043037230822548251000100010003983131301830373037241532895100010002000303730371110011000000073116112630100030383038303830383038
100430372301032548251000100010003983131301830373037241532895100010002000303730371110011000000073116112630100030383038303830383038
10043037230612548251000100010003983130301830373037241532895100010002000303730371110011000001073116112630100030383038303830383038
10043037230612548251000100010003983130301830373037241532895100010002000303730371110011000001073116112630100030383038303830383038
10043037230612548251000100010003983130301830373037241532895100010002000303730371110011000000373116112630100030383038303830383038
10043037230612548251000100010003983130301830373037241532895100010002000303730371110011000000373116112630100030383038303830383038
10043037230822548251000100010003983130301830373037241532895100010002000303730371110011000000073116112630100030383038303830383038
10043037230612548251000100010003983131301830373037241532895100010002000303730371110011000000073116112630100030383038303830383038
100430372302722548251000100010003983131301830373037241532895100010002000303730371110011000000073116112630100030383038303830383038

Test 2: Latency 1->1

Code:

  ursra v0.8b, v1.8b, #3
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)031e3f4e51schedule 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 cache writeback (a8)acbranch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
10204300372250212295482510100100100001001000050042773130300183003730037282653287451010020010000200200003003730037111020110099100100100001000007101161129634100001003003830038300383003830038
1020430037225061295482510100100100001001000050042773130300183003730037282653287451010020010000200200003003730037111020110099100100100001000007101161129634100001003003830038300383003830038
1020430037225061295482510100100100001001000050042773130300183003730037282653287451010020010000200200003003730037111020110099100100100001000007351161129634100001003003830038300383003830038
1020430037225061295482510100100100001001000050042773130300183003730037282653287451010020010000200200003003730037111020110099100100100001000007101161129634100001003003830038300383003830038
10204300372240193295482510100100100001001000050042773131300183003730037282653287451010020010000200200003003730037111020110099100100100001000007101161129634100001003003830038300383003830038
10204300372250191295482510100100100001001000050042773131300183003730037282653287451010020010000200200003003730037111020110099100100100001000007101161129634100001003003830038300383003830038
1020430037225061295482510100100100001001000050042773130300183003730037282653287451010020010000200200003003730037111020110099100100100001000007101161129634100001003003830038300383003830038
1020430037225066295482510100100100001001000050042773130300183003730037282653287451010020010000200200003003730037111020110099100100100001000007101161129634100001003003830038300383003830038
1020430037225061295482510100100100001001000050042773131300183003730037282653287451010020010000200200003003730037111020110099100100100001000007101161129634100001003003830038300383003830038
1020430037225061295482510100100100001001000050042773131300183003730037282653287451010020010000200200003003730037111020110099100100100001000007101161129634100001003003830038300383003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)03mmu table walk data (08)0918191e1f3a3f4e51schedule 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)60696b6d6emap 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
1002430037225000000012629548251001010100001010000504277313130018030037300372828732876710010201000020200003003730037111002110910101000010000000006402162229630010000103003830038300383003830038
1002430037225000000018729548251001010100001010000504277313130018030037300372828732876710010201000020200003003730037111002110910101000010000000006402162229630010000103008530086300383003830038
100243003722500000006129548251001010100001010000504277313130018030037300372828732878410010201000020200003003730037111002110910101000010000000006402162229630010000103003830038300383003830038
1002430037224000000018429548251001010100001010000504277313130018330037300372828732876710010201000020200003003730037111002110910101000010000000006402162229630010000103003830038300383003830038
100243003722500000008229548251001010100001010000504277313130018030037300372828732876710010201000020200003003730037111002110910101000010000000006402162229630010000103003830038300383003830038
100243003722500000006129548251001010100001010000504277313130018030037300372828732876710010201000020200003003730037111002110910101000010000000006402162229630010000103003830038300383003830038
100243003722500000006129548251001010100001010000504277313130018030037300372828732876710010201000020200003003730037111002110910101000010000000006402162229630010000103003830038300383003830038
1002430037224000000023129548251001010100001010000504277313130018030037300372828732876710010201000020200003003730037111002110910101000010000000006402162229630010000103003830038300383003830038
1002430037224000000021029548251001010100001010000504277313130018030037300372828732876710010201000020200003003730037111002110910101000010000000006402162229630010000103003830038300383003830038
1002430037225000000027729548251001010100001010000504277313130018030037300372828732876710010201000020200003003730037111002110910101000010000000006402162229630010000103003830038300383003830038

Test 3: Latency 1->2

Code:

  ursra v0.8b, v0.8b, #3
  movi v0.16b, 1

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)03mmu table walk data (08)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 cache writeback (a8)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfmap dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
10204300372240000006129547251010010010000100100005004277160030018300373003728271728741101002001000820020016300373003711102011009910010010000100001117171622296460100001003003830038300383003830038
10204300372250000906129547251010010010000100100005004277160030018300373003728271728741101002001000820020016300373003711102011009910010010000100001117181600296460100001003003830038300383003830038
10204300372250000006129547251010010010000100100005004277160030018300373003728271628741101002001000820020016300373003711102011009910010010000100001117181600296460100001003003830038300383003830038
10204300372250000006129547251010010010000100100005004277160030018300373003728271728740101002001000820020016300373003711102011009910010010000100001117171600296460100001003003830038300383003830038
10204300372250000006129547251010010010000100100005004277160030018300373003728271628740101002001000820020016300373003711102011009910010010000100001117171610296460100001003003830038300383003830038
10204300372250000006129547251010010010000100100005004277160130018300373003728271728740101002001000820020016300373003711102011009910010010000100101117171600296450100001003003830038300383003830038
10204300372250000006129547251010010010000100100005004277160030018300373003728271628741101002001000820020016300373003711102011009910010010000100001117171600296450100001003003830038300383003830038
10204300372250000006129547251010010010000100100005004277160030018300373003728271628741101002001000820020016300373003711102011009910010010000100001117181600296450100001003003830038300383003830038
102043003722500000023229547251010010010000100100005004277160030018300373003728271728741101002001000820020016300373003711102011009910010010000100001117171600296450100001003003830038300383003830038
10204300372250000906129547251010010010000100100005004277160030018300373003728271728741101002001000820020016300373003711102011009910010010000100001117181600296450100001003003830038300383003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)031e3f4e51schedule 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)9fst unit uop (a7)l1d cache writeback (a8)branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
1002430037224061295472510010101000010100005042771603001830037300372828632876710010201000020200003003730037111002110910101000010000640316342962910000103003830038300383003830038
1002430037225061295472510010101000010100005042771603001830037300372828632876710010201000020200003003730037111002110910101000010000640416322962910000103003830038300383003830038
1002430037225061295472510010101000010100005042771603001830037300372828632876710010201000020200003003730037111002110910101000010000640416452962910000103003830038300383003830038
1002430037225061295472510010101000010100005042771603001830037300372828632876710010201000020200003003730037111002110910101000010200640416242962910000103003830038300383003830038
1002430037225061295472510010101000010100005042771603001830037300372828632876710010201000020200003003730037111002110910101000010000640416342962910000103003830038300383003830038
1002430037225061295472510010101000010100005042771603001830037300372828632876710010201000020200003003730037111002110910101000010000640316432962910000103003830038300383003830038
10024300372240149295472510010101000010100005042771603001830037300372828632876710010201000020200003003730037111002110910101000010070640416332962910000103003830038300383003830038
1002430037225061295472510010101000010100005042771603001830037300372828632876710010201000020200003003730037211002110910101000010000640416332962910000103003830038300383003830038
1002430037225066295472510010101000010100005042771603001830037300372828632876710010201000020200003003730037111002110910101000010000640316242962910000103003830038300383003830038
1002430037225061295472510010101000010100005042771603001830037300372828632876710010201000020200003003730037111002110910101000010000640316242962910000103003830038300383003830038

Test 4: throughput

Count: 8

Code:

  movi v0.16b, 0
  ursra v0.8b, v8.8b, #3
  movi v1.16b, 0
  ursra v1.8b, v8.8b, #3
  movi v2.16b, 0
  ursra v2.8b, v8.8b, #3
  movi v3.16b, 0
  ursra v3.8b, v8.8b, #3
  movi v4.16b, 0
  ursra v4.8b, v8.8b, #3
  movi v5.16b, 0
  ursra v5.8b, v8.8b, #3
  movi v6.16b, 0
  ursra v6.8b, v8.8b, #3
  movi v7.16b, 0
  ursra v7.8b, v8.8b, #3
  movi v8.16b, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03l2 tlb miss instruction (0a)191e3f51schedule 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)696d6erob full (74)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)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfmap dispatch bubble (d6)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
1602042009015100331152580116100800161008002850064019620045200652006506128012820080028200160056200652006511160201100991001001600001000001111011916200621600001002006620066200662006620066
160204200651510002925801161008001610080028500640196200452006520065061280128200800282001600562006520065111602011009910010016000010024901111011916200621600001002006620066200662006620066
160204200651500004662580116100800161008002850064019620045200652013306128012820080028200160056200652006511160201100991001001600001000001111011916200621600001002006620066200662006620066
16020420065150000292580116100800161008002850064019620045200652006506128012820080028200160056200652006511160201100991001001600001000001111011916200621600001002006620066200662006620066
16020420065150000292580116100800161008002850064019620045200652006506128012820080028200160056200652006511160201100991001001600001000001111011916200621600001002006620066200662006620066
16020420065150000292580116100800161008002850064019620045200652006506128012820080028200160056200652006511160201100991001001600001000001111011916200621600001002006620066200662006620066
16020420065150000292580116100800161008002850064019620045200652006506128012820080028200160056200652006511160201100991001001600001000001111011916200621600001002006620066200662006620066
16020420065151000292580116100800161008002850064019620045200652006506128012820080028200160056200652006511160201100991001001600001000001111011916200621600001002006620066200662006620066
16020420065150000292580116100800161008002850064019620045200652006506128012820080028200160056200652006511160201100991001001600001000001111011916200621600001002006620066200662006620066
16020420065150000522580116100800161008002850064019620045200652006506128012820080028200160056200652006511160201100991001001600001000001111011916200621600001002006620066200662006620066

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)18191e3f51schedule 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)5f60696d6emap 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)c2cfd0d2l1i cache miss demand (d3)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0ea? simd retires (ee)? int retires (ef)f5f6f7f8fd
1600242005915000004525800101080000108000050640000112002720046200463228001020800002016000020046200461116002110910101600001000010029311222044311152004315160000102004720047200472004720047
160024200461500100512580010108000010800005064000001200312005020050322800102080000201600002005020050111600211091010160000100001003362242036311062004315160000102004720047200472004720047
1600242004615000004525800101080000108000050640000112002720046200463228001020800002016000020046200461116002110910101600001000010029311102038316152004315160000102004720047200472004720047
1600242004615000004525800101080000108000050640000112002720046200463228001020800002016000020046200461116002110910101600001000010029311152037315142004315160000102005120047200472004720047
160024200501500000156258001010800001080000506400000120031200502005032280010208000020160000200462005011160021109101016000010000100326228244232682004730160000102005120051200512005120051
16002420050150000215125800101080000108000050640000112003120046200503228001020800002016000020050200461116002110910101600001000010032311720463212122004730160000102005120051200512005120051
16002420050150000074258001010800001080000506400000120031200502005032280010208000020160000200502005011160021109101016000010000100316228243231992004730160000102005120051200512005120051
160024200501500000512580010108000010800005064000001200312005020050322800102080000201600002005020050111600211091010160000100001003532232438321052004730160000102005120051200512005120051
160024200501500000512580010108000010800005064000011200312005020050322800102080000201600002005020050111600211091010160000100001003562262444421382004730160000102005120051200512005120051
160024200501500000512580010108000010800005064000001200312005020050322800102080000201600002004620050111600211091010160000100001003161292442321362004730160000102005120051200472005120051

Test 5: throughput

Count: 16

Code:

  ursra v0.8b, v16.8b, #3
  ursra v1.8b, v16.8b, #3
  ursra v2.8b, v16.8b, #3
  ursra v3.8b, v16.8b, #3
  ursra v4.8b, v16.8b, #3
  ursra v5.8b, v16.8b, #3
  ursra v6.8b, v16.8b, #3
  ursra v7.8b, v16.8b, #3
  ursra v8.8b, v16.8b, #3
  ursra v9.8b, v16.8b, #3
  ursra v10.8b, v16.8b, #3
  ursra v11.8b, v16.8b, #3
  ursra v12.8b, v16.8b, #3
  ursra v13.8b, v16.8b, #3
  ursra v14.8b, v16.8b, #3
  ursra v15.8b, v16.8b, #3
  movi v16.16b, 17

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)l2 tlb miss instruction (0a)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)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 cache writeback (a8)acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
160204400593000100302516010810016000810016002050012801321400204003940039199776199901601202001600322003200644003940039111602011009910010016000010000011110118116114003601600001004004040040400404004040040
160204400393001100502516010810016000810016002050012801321400204003940039199776199901601202001600322003200644003940039111602011009910010016000010000011110118116114003601600001004004040040400404004040040
160204400393001100302516010810016000810016002050012801321400204003940039199776199901601202001600322003200644003940039111602011009910010016000010000011110118116114003601600001004004040040400404004040040
160204400393001100302516010810016000810016002050012801321400204003940039199776199901601202001600322003200644003940247111602011009910010016000010000011110118216114003601600001004004040040400404004040040
160204400392991100302516010810016000810016002050012801320400204003940039199776199901601202001600322003200644003940039111602011009910010016000010000011110118116114003601600001004004040040400404004040040
16020440039300110038142516010810016000810016002050012801320400204003940039199776199901601202001600322003200644003940039111602011009910010016000010000011110118116114003601600001004004040040400404004040040
160204400392991100302516010810016000810016002050012801320400204003940039199776199901601202001600322003200644003940039111602011009910010016000010000011110118116114003601600001004004040040400404004040040
160204400393001100302516010810016000810016002050012801320400204003940039199776199901601202001600322003200644003940039111602011009910010016000010000011110118116114003601600001004004040040400404004040040
160204400393001100302516010810016000810016002050012801320400204003940039199776199901601202001600322003200644003940238111602011009910010016000010000011110118116114003601600001004004040040400404004040040
1602044003930011006952516010810016000810016002050012801320400204003940039199776199901601202001600322003200644003940039111602011009910010016000010000011110118116114003601600001004004040040400404004040040

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk instruction (07)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f3a3f51schedule 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)5f6061696d6emap 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)ld unit uop (a6)l1d cache writeback (a8)a9acc2cfd0d2l1i cache miss demand (d3)l1i tlb miss demand (d4)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0eaeb? simd retires (ee)? int retires (ef)f5f6f7f8fd
1600244005130000000000004625160010101600001016000050128000011540020400394003919996320019160010201600002032000040077400391116002110910101600001000000010022821037163222818400364113160000104004040040400404004040040
16002440039300110100000187251600101016000010160000501280000115400204003940039199963200191600102016000020320000400574003911160021109101016000010000000100251122129163223117400364113160000104004040040400404004040040
16002440039300110100000075251600101016000010160000501280000000400204003940039199963200191600102016000020320000400484003911160021109101016000010000000100271132125163221629400364113160000104004040040400404004040040
16002440039300110100000187251600101016000010160000501280000015400204003940039199963200191600102016000020320000400524003911160021109101016000010000000100271132131163221629400364113160000104004040040400404004040040
16002440039300100000000075251600101016000010160000501280000005400204003940039199963200191600102016000020320000400644003911160021109101016000010000000100271132128163223125400364113160000104004040040400404004040040
16002440039300100000000187251600101016000010160000501280000015400204003940039199963200191600102016000020320000400484003911160021109101016000010000000100271142131163222929400364113160000104004040040400404004040040
16002440039300110100000087251600101016000010160000501280000000400204003940039199963200191600102016000020320000400644003911160021109101016000010001000100271132131163224227400364113160000104004040040400404004040040
16002440039300100000000075251600101016000010160000501280000015400204003940039199963200191600102016000020320000400494003911160021109101016000010000000100251122117163223218400364113160000104004040040400404004040040
16002440039300100000000175251600101016000010160000501280000000400204003940039199963200191600102016000020320000400544003911160021109101016000010000000100271132131163223128400364113160000104004040040400404004040040
16002440039300110100000187251600101016000010160000501280000000400204003940039199963200191601222016000020320000400524003911160021109101016000010000000100271132122163221730400364113160000104004040040400404004040040