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 (D)

Test 1: uops

Code:

  ldnp d0, d1, [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)
2005116620311203020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000
2004105420011200020001621820002000200012000

Test 2: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ldnp d0, d1, [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.0040

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)
6020510015770109401011000620002301301001520004266910217792701048424601103021220008100046022420008100044000120000040100
602041000477010340101100022000030103100032000426690711779328104850460110302122000810004183049124731104438652670825949101816
6020410004070102401011000120000301031000320004266899017792741048471601103021220008100046029020028100154000820000040100
6020410005170102401011000120000301031000320004266899017792741048471601103021220008100046022420008100044000120000040100
6020410004070102401011000120000301031000320004266899017792741048471601103021220008100046022420008100044000120000040100
6020410004070102401011000120000301031000320004266901717792921048482601103021220008100046028220028100154000820000040100
6020410004770103401011000220000301031000320004266889817791381048344601103021220008100046022420008100044000120000040100
6020410004070102401011000120000301031000320004266907117793281048504601103021220008100046022420008100044000120000040100
6020410004070102401011000120000301031000320004266899017792741048471601103021220008100046022420008100044000120000040100
6020410004070102401011000120000301031000320004266899017792741048471601103021220008100046022420008100044000120000040100

1000 unrolls and 10 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)
600251001527001940011100062000230040100152000426690941779248104942260020300322000810004600202000010000400012000040010
600241000497001340011100022000030010100002000026691141779266104943460010300202000010000600202000010000400012000040010
600241000427001240011100012000030010100002000026691141779266104943460010300202000010000600202000010000400012000040010
600241000427001240011100012000030010100002002426694811779537107252860083300632002910015600202000010000400012000040010
600241000427001240011100012000030010100002000026718951781120105056760010300202000010000600202000010000400012000040010
600241000457001240011100012000030010100002000026691141779266104943460010300202000010000600202000010000400012000040010
600241000427001240011100012000030010100002000026691141779266104943460010300202000010000600202000010000400012000040010
600241000427001240011100012000030010100002000026691141779266104943460010300202000010000600202000010000400012000040010
600241000427001240011100012000030010100002000026691141779266104943460010300202000010000600202000010000400012000040010
600251000757002340018100032000230044100142000026691141779266104943460010300202000010000600202000010000400012000040010

Test 3: Latency 2->3 roundtrip

Chain cycles: 3

Code:

  ldnp d0, d1, [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.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)
6020510015270109401011000620002301301001520004266914117793001048443601103021220008100046022420008100044000120000040100
6020410005070103401011000220000301031000320004266923317794361048570601103021220008100046022420008100044000120000040100
6020410004970103401011000220000301031000320004266923317794361048570601103021220008100046022420008100044000120000040100
6020410004970103401011000220000301031000320004266923317794361048570601103021220008100046028220028100154000820000040100
6020410004970103401011000220000301031000320004266923317794361048570601103021220008100046022420008100044000120000040100
6020410004970103401011000220000301031000320004266923317794361048570601103021220008100046022420008100044000120000040100
6020410004970103401011000220000301031000320004266923317794361048570601103021220008100046022420008100044000120000040100
6020410004970103401011000220000301031000320004266923317794361048570601103021220008100046022420008100044000120000040100
6020410004970103401011000220000301031000320024267191517812161049623601723024520028100156022420008100044000120000040100
6020410010470103401011000220000301031000320004266918117793621048503601103021220008100046022420008100044000120000040100

1000 unrolls and 10 iterations

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

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)
600251002687001940011100062000230040100152000426692691779400104953760020300322000810004600202000010000400012000040010
600241000477001340011100022000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010
600241001447001340011100022000030010100002000026694851779504104958360010300202000010000600202000010000400012000040010
600241000407001240011100012000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010
600241000407001240011100012000030010100002002426696261779628104963660082300652002810015600202000010000400012000040010
600241000407001240011100012000030010100002000026693031779392104951160010300202000010000600202000010000400012000040010
600241000407001240011100012000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010
600241000407001240011100012000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010
600241000407001240011100012000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010
600241000407001240011100012000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010

Test 4: throughput

Count: 8

Code:

  ldnp d0, d1, [x6]
  ldnp d0, d1, [x6]
  ldnp d0, d1, [x6]
  ldnp d0, d1, [x6]
  ldnp d0, d1, [x6]
  ldnp d0, d1, [x6]
  ldnp d0, d1, [x6]
  ldnp d0, d1, [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)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)
160205801791601311011600301001600083004880221601082001600122001600121160000100
1602048004916010110116000010016000830012800281601082001600122001600121160000100
1602048004716010110116000010016000830012800281601082001600122001600121160000100
1602048004716010110116000010016000830012800281601082001600122001600121160000100
1602048004716010110116000010016005630012585761601562001600682001600121160000100
1602048004716010110116000010016000830012800281601082001600122001600121160000100
1602048004716010110116000010016000830012800281601082001600122001600121160000100
1602048004716010110116000010016000830012800281601082001600122001600121160000100
1602048004716010110116000010016000830012800281601082001600122001600121160000100
1602048004716010110116000010016000830012800281601082001600122001600121160000100

1000 unrolls and 10 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)dispatch uop (78)map int uop (7c)map ldst uop (7d)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)
16002580211160041111600301016000030640218160010201600002016000001160000010
160024800451600111116000010160000301279998160010201600002016000001160000010
160024800451600111116000010160000301279998160010201600002016000001160000010
160024800681600111116000010160000301279998160010201600002016006801160000010
160024801221600111116000010160008301280190160018201600122016000001160000010
160024800541600111116000010160000301279998160010201600002016000001160000010
160024800451600111116000010160000301279998160010201600002016000001160000010
160024800451600111116000010160000301279998160010201600002016000001160000010
160024800451600111116000010160000301279998160010201600002016000001160000010
160024800451600111116000010160000301279998160010201600002016000001160000010