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

LDNP (Q)

Test 1: uops

Code:

  ldnp q0, q1, [x6]
  mov x0, 1
  mov x1, 2
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 2.000

Issues: 2.000

Integer unit issues: 0.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 ldst uop (58)simd uops in schedulers (5a)dispatch uop (78)map ldst uop (7d)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)
2005115920311203020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000

Test 2: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ldnp q0, q1, [x6]
  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.0042

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)
602051001537010940101100062000230130100152000426691411779300104844360110302122000810004602242000810004400012000040100
602051000827011440108100042000230134100142000426690011779246104843360110302122000810004602242000810004400012000040100
602041000427010240101100012000030103100032000426690441779310104849360110302122000810004602862002810015400082000040100
602041000427010240101100012000030103100032000426690441779310104849360110302122000810004602242000810004400012000040100
602041000427010240101100012000030103100032000426692331779436104857060110302122000810004602242000810004400012000040100
602041000467010240101100012000030103100032000426691521779382104853760110302122000810004602242000810004400012000040100
602041000927010340101100022000030103100032000426691251779364104852660110302122000810004602242000810004400012000040100
602041000427010240101100012000030103100032000426690981779346104851560110302122000810004604762008810048400372000040100
602041004207016640137100132001630227100472002426698161779804104876060172302412002810015602242000810004400012000040100
602041000457010240101100012000030103100032000426690441779310104849360110302122000810004602242000810004400012000040100

1000 unrolls and 10 iterations

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

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)? simd retires (ee)? int retires (ef)
6002510016070019400111000620002300401001520000266941117794641049555600103002020000100001130946430410525627384005224569077
7867113050285559488431007926637381661008720004266932317794361049559600203003220008100046002020000100004000120000040010
6002410004970013400111000220000300101000020000266930317793921049511600103002020000100006002020000100004000120000040010
6002410004970013400111000220000300101000020000266930317793921049511600103002020000100006011020028100154000820000040010
6002410005970013400111000220000300101000020000266930317793921049511600103002020000100006002020000100004000120000040010
6002510008270024400181000420002300441001420000266957317795721049621600103002020000100006002020000100004000120000040010
6002410004970013400111000220000300101000020000266938417794461049544600103002020000100006002020000100004000120000040010
63798113242719984155095372091131776955220000266957317795721049621600103002020000100006002020000100004000120000040010
6002410004970013400111000220000300101000020000266938417794461049544600103002020000100006002020000100004000120000040010
6002410004970013400111000220000300101000020000266930317793921049511600103002020000100006002020000100004000120000040010

Test 3: Latency 2->3 roundtrip

Chain cycles: 3

Code:

  ldnp q0, q1, [x6]
  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.0047

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)? simd retires (ee)? int retires (ef)
6020510015370109401011000620002301301001420004266908417792621048420601103021220008100046022420008100044000120000040100
6020410004770103401011000220000301031000320004266917917794001048548601103021220008100046022420008100044000120000040100
6020410004770103401011000220000301031000320024266953617796281048654601723024120028100156022420008100044000120000040100
6020410004770103401011000220000301031000320004266917917794001048548601103021220008100046022420008100044000120000040100
6020410004770103401011000220000301031000320004266917917794001048548601103021220008100046022420008100044000120000040100
6020410004770103401011000220000301031000320004266917917794001048548601103021220008100046022420008100044000120000040100
60204100047701034010110002200003010310003200042669179177940010485486011030212200081000471354311131006344892258716947326
6020410010770103401011000220000301031000320004266919017793721048510601103021220008100046022420008100044000120000040100
6020410004970103401011000220000301031000320024267137817808581049402601713024220028100146022420008100044000120000040100
6020410005270103401011000220000301031000320004266923317794361048570601103021220008100046022420008100044000120000040100

1000 unrolls and 10 iterations

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

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)
600251002537001940011100062000230040100152000426692291779338104947760020300322000810004600202000010000400012000040010
600241001397001440011100032000030010100002000026690601779230104941260010300202000010000600202000010000400012000040010
600241000407001240011100012000030010100002000026690601779230104941260010300202000010000600202000010000400012000040010
600241000407001240011100012000030010100002000026690601779230104941260010300202000010000600202000010000400012000040010
600241000477001340011100022000030010100002002426698961779808104974860082300612002810015600202000010000400012000040010
600241000427001240011100012000030010100002000026692491779356104948960010300202000010000601022002810015400082000040010
600241000477001340011100022000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010
600241000517001340011100022000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010
600241000477001340011100022000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010
600241000507001340011100022000030010100002000026690601779230104941260010300202000010000600202000010000400012000040010

Test 4: throughput

Count: 8

Code:

  ldnp q0, q1, [x6]
  ldnp q0, q1, [x6]
  ldnp q0, q1, [x6]
  ldnp q0, q1, [x6]
  ldnp q0, q1, [x6]
  ldnp q0, q1, [x6]
  ldnp q0, q1, [x6]
  ldnp q0, q1, [x6]
  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.0006

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)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)? int output thing (e9)? ldst retires (ed)? int retires (ef)
16020580216160131101160030100160008300560006016010820016001202001600121160000100
160204800451601011011600001001600083001280012016010820016001202001600121160000100
160204800451601011011600001001600083001280012016010820016001202001600121160000100
160204800451601011011600001001600083001280012016010820016001202001600121160000100
160204800451601011011600001001600563001280812016015620016006802001600681160000100
160204800451601011011600001001600083001280012016010820016001202001600121160000100
160204800451601011011600001001600083001280012016010820016001202001600121160000100
160204800501601011011600001001602003001210996016030020016023602001600121160000100
160204800451601011011600001001600083001280012016010820016001202001600121160000100
160204800451601011011600001001600083001280012016010820016001202001600121160000100

1000 unrolls and 10 iterations

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

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)
1600258020216004511160034101600083012802481600182016001220160000116000010
1600248005416001111160000101600003012802181600102016000020160000116000010
1600248005416001111160000101600003012802181600102016000020160000116000010
1600258010716004511160034101600003012802181600102016000020160000116000010
1600248006616001111160000101600003012802181600102016000020160000116000010
1600248005416001111160000101600003012802181600102016000020160000116000010
1600248005416001111160000101600003012802181600102016000020160000116000010
1600248005416001111160000101600003012802181600102016000020160000116000010
1600248005416001111160000101600003012802181600102016000020160000116000010
1600248005416001111160000101600003012802181600102016000020160000116000010