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, 2D)

Test 1: uops

Code:

  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [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 ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)
720053800813062100280564004100180084000300012000591521300040008000500020000100140008000
720042998213013100180124000100080004000300012000591521300040008000500020000100140008000
720042994213013100180124000100080004000300012000591521300040008000500020000100140008000
720042994413013100180124000100080004000300012000591521300040008000500020000100140008000
720042993113013100180124000100080004000300012000591521300040008000500020000100140008000
720043008813013100180124000100080004000300012004591601300040008000500020000100140008000
720043028013013100180124000100080004000300012000591521300040008000500020000100140008000
720042993113013100180124000100080004000300012000591521300040008000500020000100140008000
720042997113013100180124000100080004000300012000591521300040008000500020000100140008000
720042993213013100180124000100080004000300012000591521300040008000500020000100140008000

Test 2: throughput

Count: 8

Code:

  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [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.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)
9602053201711040210801066400823200228010664003632000824030696007241839701040120200320008640016200400010160004080002320000640000100
9602043200481040128801026400203200068010264001032000824030696006464002941040120200320008640016200400045160018080009320000640000100
9602043200481040128801026400203200068010264001032000824030696002464002941040120200320008640016200400010160004080002320000640000100
9602043200481040128801026400203200068010264001032000824030696002464002941040120200320008640016200400080160032080016320000640000100
9602043200481040128801026400203200068010264001032000824030696002464002941040120200320008640016200400045160018080009320000640000100
9602043200481040128801026400203200068010264001032000824030696004864002941040120200320008640016200400010160004080002320000640000100
9602043200531040130801026400223200068010264001032000824030696003664002421040120200320008640016200400010160004080002320000640000100
9602053200881040209801096400663200348010964006632000824030696003652738541040120200320008640016200400010160004080002320000640000100
9602043200461040126801026400183200068010264001032003624032796100458879941040211200320036640072200400010160004080002320000640000100
9602043200541040136801026400283200068010264001032000824030696002464002941040120200320008640016200400010160004080002320000640000100

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)
910220328931982155834565944933042068310959439932000824003696003846091121040030203200086400162040000016000008000132000064000010
9600243200541040039800116400283200008001064000032000024003096000064002321040010203200006400002040004516001808000932000064000010
9600253201021040115800196400623200348001964006632000024003096013664002321040010203200006400002040000016000008000132000064000010
9600243200481040031800116400203200008001064000032000024003096000064002321040010203200006400002040004516001808000932000064000010
9600253201001040135800196400823200348001964006632003624005796150863212821040121203200366400722040000016000008000132000064000010
9600243200481040031800116400203200008001064000032000024003096000064002321040010203200006400002040004516001808000932000064000010
9600243200481040031800116400203200008001064000032000024003096000064002321040010203200006400002040000016000008000132000064000010
9600243200481040031800116400203200008001064000032000024003096000064002321040010203200006400002040004516001808000932000064000010
9600243200481040031800116400203200008001064000032000024003096003264002321040010203200006400002040000016000008000132000064000010
9600243200481040031800116400203200008001064000032000024003096000064002321040010203200006400002040004516001808000932000064000010