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

LD4 (multiple, post-index, 4S)

Test 1: uops

Code:

  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop
  mov x0, 1
  mov x1, 2
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 60 nops): 12.000

Issues: 13.006

Integer unit issues: 1.001

Load/store unit issues: 4.000

SIMD/FP unit issues: 8.006

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 ldst uop (7d)map simd uop (7e)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)
720053028113085100380744008100280164000300012000591521300040008000500020000100140008000
720042999713013100180124000100080004000300012000590961300040008000500020000100140008000
720043003113007100180064000100080004000300012000590961300040008000500020000100140008000
720043002513007100180064000100080004000300012000590961300040008000500020000100140008000
720043001813007100180064000100080004000300012000590961300040008000500020000100140008000
720042999513007100180064000100080004000300012000590961300040008000500020000100140008000
720043002813007100180064000100080004000300012000590961300040008000500020000100140008000
720043002613007100180064000100080004000300012000590961300040008000500020000100140008000
720042996513007100180064000100080004000300012000590961300040008000500020000100140008000
720043002813007100180064000100080004000300012000590961300040008000500020000100140008000

Test 2: throughput

Count: 8

Code:

  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  mov x7, x6
  mov x8, x6
  mov x9, x6
  mov x10, x6
  mov x11, x6
  mov x12, x6
  mov x13, x6
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

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)
9602053201591040210801066400823200228010664003632000824030696006240941261040120200320008640016200400010160004080002320000640000100
9602043200521040136801026400283200068010264001032003624032796012063258921040211200320036640072200400010160004080002320000640000100
9602043200521040136801026400283200068010264001032000824030696003664003901040120200320008640016200400010160004080002320000640000100
9602043200521040136801026400283200068010264001032003624032796106063653681040211200320036640072200400045160018080009320000640000100
9602043200521040136801026400283200068010264001032000824030696006464003901040120200320008640016200400010160004080002320000640000100
9602043200521040136801026400283200068010264001032003624032796013454285481040211200320036640072200400010160004080002320000640000100
9602043200521040136801026400283200068010264001032000824030696003664003901040120200320008640016200400010160004080002320000640000100
9602043200521040136801026400283200068010264001032003624032796096258677061040211200320036640072200400045160018080009320000640000100
9602043200521040136801026400283200068010264001032000824030696003664003901040120200320008640016200400010160004080002320000640000100
9602043200591040140801026400323200068010264001032000824030696003664003901040120200320008640016200400010160004080002320000640000100

1000 unrolls and 10 iterations

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

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)
9600253204051040124800166400863200228001664003632011224011496325456947281040374203201126402242040042016016808008532000064000010
9600243200521040039800116400283200008001064000032003624005796053264012421040121203200366400722040001016000408000232000064000010
9600243200531040029800116400183200008001064000032000024003096001264001801040010203200006400002040000016000008000132000064000010
9600243200461040029800116400183200008001064000032000024003096001264001801040010203200006400002040000016000008000132000064000010
9600243200461040029800116400183200008001064000032003624005796012048013281040121203200366400722040000016000008000132000064000010
9600243200461040029800116400183200008001064000032000024003096001264001801040010203200006400002040000016000008000132000064000010
9600243200461040029800116400183200008001064000032000024003096001264001801040010203200006400002040000016000008000132000064000010
9600243200461040029800116400183200008001064000032000024003096005264001801040010203200006400002040008016003208001632000064000010
9555893199051035553797396371543186607975463715232000024003096018464001801040010203200006400002040000016000008000132000064000010
9600243200461040029800116400183200008001064000032000024003096004264001801040010203200006400002040000016000008000132000064000010