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

Test 1: uops

Code:

  ldp s0, s1, [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)
2005114920311203020001625420002000200012000
2004104520011200020001599820002000200012000
2004104520011200020001599820002000200012000
2004104820011200020001599820002000200012000
2004105020011200020001606620002000200012000
2004105020011200020001599820002000200012000
2004105020011200020001599820002000200012000
2004104520011200020001599820002000200012000
2004104520011200020001606620002000200012000
2004104620011200020001599820002000200012000

Test 2: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ldp s0, s1, [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.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)
6020510015570109401011000620002301301001520004266903817791941048356601103021220008100046022420008100044000120000040100
6020410004770103401011000220000301031000320004266917917794001048548601103021220008100046028220028100154000820000040100
6020410004770103401011000220000301031000320004266917917794001048548601103021220008100046022420008100044000120000040100
6020410012270103401011000220000301031000320004266963817797061048735601103021220008100046022420008100044000120000040100
6020410004770103401011000220000301031000320004266917917794001048548601103021220008100046022420008100044000120000040100
6020410004770103401011000220000301031000320004266917917794001048548601103021220008100046022420008100044000120000040100
6020510008070114401081000420002301341001420004266922617794221048567601103021220008100046022420008100044000120000040100
6020410004270102401011000120000301031000320004266909817793461048515601103021220008100046022420008100044000120000040100
6020410004570102401011000120000301031000320004266904417793101048493601103021220008100046022420008100044000120000040100
6020410004270102401011000120000301031000320004266904417793101048493601103021220008100046022420008100044000120000040100

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)
600251001627001940011100062000230040100152000426700421779882104980460020300302000810004600442000810004400012000040010
600241000477001340011100022000030013100032002426696261779628104963960082300652002810015600442000810004400012000040010
600241000477001340011100022000030013100032000426692691779400104953760020300322000810004600442000810004400012000040010
600241000477001340011100022000030013100032000426692691779400104953760020300322000810004600442000810004400012000040010
600241000477001340011100022000030013100032000426692691779400104953760020300322000810004600442000810004400012000040010
600241000477001340011100022000030013100032000426692691779400104953760020300322000810004600442000810004400012000040010
600241000517001340011100022000030013100032000426694041779490104959260020300322000810004601042002810015400082000040010
600251001067002440018100042000230044100142000426699661779858104985060020300322000810004600202000010000400012000040010
600241000477001340011100022000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010
600241000477001340011100022000030010100002000026692491779356104948960010300202000010000600202000010000400012000040010

Test 3: Latency 2->3 roundtrip

Chain cycles: 3

Code:

  ldp s0, s1, [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.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)? simd retires (ee)? int retires (ef)
6020510015170109401011000620002301301001520004266895217791741048366601103021220008100046022420008100044000120000040100
6020410004270102401011000120000301031000320004266904417793101048493601103021220008100046022420008100044000120000040100
6020410004270102401011000120000301031000320004266904417793101048493601103021220008100046022420008100044000120000040100
6020410004270102401011000120000301031000320004266904417793101048493601103021220008100046022420008100044000120000040100
6020410004270102401011000120000301031000320004266904417793101048493601103021220008100046029020032100154000520000040100
6020410004270102401011000120000301031000320004266904417793101048493601103021220008100046022420008100044000120000040100
6020410004270102401011000120000301031000320004266904417793101048493601103021220008100046022420008100044000120000040100
6020410004270102401011000120000301031000320004266904417793101048493601103021220008100046022420008100044000120000040100
6020410004270102401011000120000301031000320004266904417793101048493601103021220008100046022420008100044000120000040100
6020410004270102401011000120000301031000320004266904417793101048493601103021220008100046022420008100044000120000040100

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)
6002510015570019400111000620002300401001520004266922917793381049477600203003220008100046004420008100044000120000040010
6002410004770013400111000220000300131000320000266924917793561049489600103002020000100006002020000100004000120000040010
6002410004770013400111000220000300101000020000266924917793561049489600103002020000100006002020000100004000120000040010
6002410004770013400111000220000300101000020000266924917793561049489600103002020000100006002020000100004000120000040010
6002510008070024400181000420002300441001420000266976217796981049698600103002020000100006002020000100004000120000040010
6002410004770013400111000220000300101000020000266924917793561049489600103002020000100006002020000100004000120000040010
6002410004770013400111000220000300101000020000266924917793561049489600103002020000100006002020000100004000120000040010
6002410004770013400111000220000300101000020000266924917793561049489600103002020000100006002020000100004000120000040010
6002410004770013400111000220000300101000020000266924917793561049489600103002020000100006002020000100004000120000040010
6002410004770013400111000220000300101000020024267018917800021050050600823006420028100156011020028100154000820000040010

Test 4: throughput

Count: 8

Code:

  ldp s0, s1, [x6]
  ldp s0, s1, [x6]
  ldp s0, s1, [x6]
  ldp s0, s1, [x6]
  ldp s0, s1, [x6]
  ldp s0, s1, [x6]
  ldp s0, s1, [x6]
  ldp s0, s1, [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)
160205801811601351011600341001600083008132521601082001600122001600121160000100
1602068051516016310316006010216080423313124631816200117711609322001601241160000100
1602048006116010510116000410016000830012801361601082001600122021600702160000100
1602048004616010110116000010016000830012800121601082001600122001600121160000100
160204800991601051011600041001600083005120221601082001600122001600121160000100
160204800471601011011600001001600083006720221601082001600122001600121160000100
1602048004716010110116000010016000830012800281601082001600122001600121160000100
1602048004716010110116000010016000830012800281601082001600122001600681160000100
1602048004716010110116000010016000830012800281601082001600122001600121160000100
1602048005016010110116000010016000830012801501601082001600122001600121160000100

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)? int output thing (e9)? ldst retires (ed)? int retires (ef)
1600268025516007511160064101600083012801941600182016001220160000116000010
1600248005116001111160000101600003012801641600102016000020160000116000010
1600248005116001111160000101600003012801641600102016000020160000116000010
1600248005116001111160000101600003012801641600102016000020160000116000010
1600248005116001111160000101600003012801641600102016000020160000116000010
1600258037616004111160030101600003012801641600102016000020160000116000010
1600248005116001111160000101600003012801641600102016000020160000116000010
1600258011716004111160030101600003012803801600102016000020160000116000010
1600248005116001111160000101600003012801641600102016000020160000116000010
1600248005116001111160000101600003012801641600102016000020160000116000010