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, 16B)

Test 1: uops

Code:

  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [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.012

Integer unit issues: 1.001

Load/store unit issues: 4.000

SIMD/FP unit issues: 8.012

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 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)
72005301651308310038072400810028016400030001200059152130004000800005000200001001400080000
72004305541301310018012400010008000400030001200059144130004000800005000200001001400080000
72004307621301310018012400010008000400030001200059136130004000800005000200001001400080000
72004303981301310018012400010008000400030001200059144130004000800005000200001001400080000
72004299721301310018012400010008000400030001200059136130004000800005000200001001400080000
72004299451301310018012400010008000400030001200059136130004000800005000200001001400080000
72004299531301310018012400010008000400030001200059136130004000800005000200001001400080000
72004306211301310018012400010008000400030001200059160130004000800005000200001001400080000
72004302041301310018012400010008000400030001200059144130004000800005000200001001400080000
72004304761301310018012400010008000400030001200059136130004000800005000200001001400080000

Test 2: throughput

Count: 8

Code:

  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [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)
9602053201751040212801066400843200228010664003632000824030696007239273661040120200320008640016200400010160004080002320000640000100
9602043200541040136801026400283200068010264001032000824030696007664004501040120200320008640016200400010160004080002320000640000100
9602043200541040136801026400283200068010264001032000824030696004064026861040120200320008640016200400010160004080002320000640000100
9602043200481040128801026400203200068010264001032000824030696005664004501040120200320008640016200400010160004080002320000640000100
9602043200481040128801026400203200068010264001032000824030696005064002941040120200320008640016200400010160004080002320000640000100
9602043200481040128801026400203200068010264001032003624032796016850987081040211200320036640072200400010160004080002320000640000100
9602043200541040136801026400283200068010264001032000824030696012064004541040120200320008640016200400010160004080002320000640000100
9602043200541040136801026400283200068010264001032000824030696004464004501040120200320008640016200400010160004080002320000640000100
9602043200541040136801026400283200068010264001032000824030696007464002941040120200320008640016200400570160228080114320000640000100
9602043200481040128801026400203200068010264001032003624032796026059886841040211200320036640072200400150160060080030320000640000100

1000 unrolls and 10 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)
9600253201551040120800166400823200228001664003632003624005796143263559741040119203200366400722040001016000408000232000064000010
9600243200561040039800116400283200008001064000032003624005796014257094721040121203200366400722040000016000008000132000064000010
9600243200541040039800116400283200008001064000032000024003096001264003881040010203200006400002040004516001808000932000064000010
9600243200601040039800116400283200008001064000032003624005796012051233281040121203200366400722040000016000008000132000064000010
9600243200541040039800116400283200008001064000032000024003096005864003881040010203200006400002040000016000008000132000064000010
9600243200541040039800116400283200008001064000032003624005796128658757001040121203200366400722040000016000008000132000064000010
9600243200541040039800116400283200008001064000032000024003096001264003881040010203200006400002040000016000008000132000064000010
9600243200541040039800116400283200008001064000032003624005796012042922881040121203200366400722040000016000008000132000064000010
9600243200541040039800116400283200008001064000032000024003096001264003881040010203200006400002040000016000008000132000064000010
9600243200541040039800116400283200008001064000032003624005796125858739001040121203200366400722040000016000008000132000064000010