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

LDP (pre-index, D)

Test 1: uops

Code:

  ldp d0, d1, [x6, #0x10]!
  mov x0, 1
  mov x1, 2
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 2.000

Issues: 3.000

Integer unit issues: 1.001

Load/store unit issues: 2.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map ldst uop (7d)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)
200518393057102720301026200035162561430002000200010012000
200415693001100120001000200035162514630002000200010012000
200415593001100120001000200035162515530002000200010012000
200415523001100120001000200035162506530002000200010012000
200415393001100120001000200035162524530002000200010012000
200415763001100120001000200035162514630002000200010012000
200415583001100120001000200035162510130002000200010012000
200415603001100120001000200035162510130002000200010012000
200415823001100120001000200035162479530002000200010012000
200415503001100120001000200035162502030002000200010012000

Test 2: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ldp d0, d1, [x6, #0x10]!
  fmov x0, d0
  eor x8, x8, x0
  eor x8, x8, x0
  add x6, x6, x8
  mov x0, 1
  mov x1, 2
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0113

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? int retires (ef)
60214102453802375011210105200204038510089200062660531156844678931370113302092000810003602182000810003500012000040100
60204100084801045010110003200004010410003200062660369156833878926370113302092000810003602182000810003500012000040100
60204100080801045010110003200004010410003200242662076156934078976170174302412002610013602182000810003500012000040100
60204100080801045010110003200004010410003200062660504156842878930370113302092000810003602182000810003500012000040100
60204100088801045010110003200004010410003200062660369156833878926370113302092000810003602182000810003500012000040100
60204100080801045010110003200004010410003200062660369156833878926370113302092000810003602182000810003500012000040100
60204100080801045010110003200004010410003200062660369156833878926370113302092000810003602182000810003500012000040100
60204100080801045010110003200004010410003200062660369156833878926370113302092000810003602182000810003500012000040100
60204100080801045010110003200004010410003200062660369156833878926370113302092000810003602182000810003500012000040100
60204100080801045010110003200004010410003200062660369156833878926370113302092000810003602182000810003500012000040100

1000 unrolls and 10 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0066

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? int retires (ef)
60034102609801405002110099200204029410089200062660069156967078989270022300292000610003600382000810003500012000040010
60024100066800145001110003200004001010000200002660059156968478989670010300202000010000600202000010000500012000040010
60024100066800145001110003200004001010000200002660059156968478989670010300202000010000600202000010000500012000040010
60024100066800145001110003200004001010000200002660059156968478989670010300202000010000600202000010000500012000040010
60024100066800145001110003200004001010000200002660059156968478989670010300202000010000600202000010000500012000040010
60024100066800145001110003200004001010000200002660059156968478989670010300202000010000600202000010000500012000040010
60024100066800145001110003200004001010000200002660059156968478989670010300202000010000600202000010000500012000040010
60024100066800145001110003200004001010000200002660059156968478989670010300202000010000600802002010010500092000040010
60024100072800145001110003200004001010000200002660464156995479002570010300202000010000600202000010000500012000040010
60024100084800145001110003200004001010000200002660437156993679001470010300202000010000600202000010000500012000040010

Test 3: Latency 2->3 roundtrip

Chain cycles: 3

Code:

  ldp d0, d1, [x6, #0x10]!
  fmov x1, d1
  eor x8, x8, x1
  eor x8, x8, x1
  add x6, x6, x8
  mov x0, 1
  mov x1, 2
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0117

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? int retires (ef)
60214102300802335011210101200204038510089200062660428156832078926170113302092000810003602182000810003500012000040100
60204100082801045010110003200004010410003200062660018156811878915070113302092000810003602182000810003500012000040100
60204100067801035010110002200004010410003200062660018156811878915070113302092000810003602182000810003500012000040100
60204100080801035010110002200004010410003200062660477156842478929770113302092000810003602182000810003500012000040100
60204100067801035010110002200004010410003200062660018156811878915070113302092000810003602182000810003500012000040100
60205100152801185010910007200024013610013200062660531156846078931270113302092000810003602182000810003500012000040100
60204100096801035010110002200004010410003200062660612156851478933470113302092000810003602182000810003500012000040100
60204100097801035010110002200004010410003200062662684156966278995270113302092000810003602182000810003500012000040100
60204100179801095010110008200004010410003200062662205156941478980770113302092000810003602182000810003500012000040100
60204100117801095010110008200004010410003200062661368156889678954670113302092000810003602182000810003500012000040100

1000 unrolls and 10 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0078

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? int retires (ef)
60034102602801355002110094200204029410089200062661512157065479039270023300292000810003600382000810003500012000040010
60024100103800145001110003200004001410003200062660945157032079020070023300292000810003600202000010000500012000040010
60024100091800145001110003200004001010000200002660707157010879010570010300202000010000600202000010000500012000040010
60024100080800145001110003200004001010000200002660437156992879001870010300202000010000600202000010000500012000040010
60024100080800145001110003200004001010000200242661949157087879049370083300592002810013600202000010000500012000040010
60024100105800145001110003200004001010000200002660437156992879001870010300202000010000600202000010000500012000040010
60024100080800145001110003200004001010000200002660437156992879001870010300202000010000600202000010000500012000040010
60024100080800145001110003200004001010000200002660437156992879001870010300202000010000600202000010000500012000040010
60024100102800145001110003200004001010000200002660518156998279004270010300202000010000600202000010000500012000040010
60024100078800145001110003200004001010000200002660383156989279000270010300202000010000600982002810013500092000040010

Test 4: throughput

Count: 8

Code:

  ldp d0, d1, [x6, #0x10]!
  ldp d0, d1, [x7, #0x10]!
  ldp d0, d1, [x8, #0x10]!
  ldp d0, d1, [x9, #0x10]!
  ldp d0, d1, [x10, #0x10]!
  ldp d0, d1, [x11, #0x10]!
  ldp d0, d1, [x12, #0x10]!
  ldp d0, d1, [x13, #0x10]!
  mov x7, x6
  mov x8, x6
  mov x9, x6
  mov x10, x6
  mov x11, x6
  mov x12, x6
  mov x13, x6

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
160214883562406678036716030080368160009240318139371724011520016001220016001280005160000100
160204863692401058010516000080106160009240318139382524011520016001220016001280005160000100
160204863662401058010516000080106160009240318139380724011520016001220016006880031160000100
160204863652401058010516000080106160008240318139388224011420016001220016001280005160000100
160204863682401038010316000080104160009240318139391524011520016001220016001280005160000100
160204863652401058010516000080106160009240318139380724011520016001220016001280005160000100
160204863662401058010516000080106160009240318139382524011520016001220016001280005160000100
160204863662401058010516000080106160009240318139382524011520016001220016001280005160000100
160204863662401058010516000080106160009240318139382524011520016001220016001280005160000100
160205864542401618013116003080132160008240318139382824011420016001220016001280005160000100

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
160034882992405848028416030080285160011240051139328024002820160014201600088000316000010
160024863692400118001116000080010160000240030139360524001020160000201600008000116000010
160024863532400118001116000080010160000240030139353324001020160000201600008000116000010
160024863532400118001116000080010160000240030139353324001020160000201600008000116000010
160024863532400118001116000080010160000240030139353324001020160000201600008000116000010
160024863532400118001116000080010160000240030139353324001020160000201600648002916000010
160024863622400118001116000080010160000240030139353324001020160000201600008000116000010
160024863532400118001116000080010160000240030139353324001020160000201600008000116000010
160024863532400118001116000080010160000240030139353324001020160000201600008000116000010
160024863762400118001116000080010160000240030139371324001020160000201600008000116000010