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, 8H)

Test 1: uops

Code:

  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [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)
720053259313081100380704008100280164000300012000590881300040008000500020000100140008000
720043033613007100180064000100080004000300012000591041300040008000500020000100140008000
720043016913007100180064000100080004000300012000590801300040008000500020000100140008000
720042992313007100180064000100080004000300012000590801300040008000500020000100140008000
720042992313007100180064000100080004000300012000590801300040008000500020000100140008000
720042992313007100180064000100080004000300012000590801300040008000500020000100140008000
720042992313007100180064000100080004000300012000590801300040008000500020000100140008000
720042992413007100180064000100080004000300012000590801300040008000500020000100140008000
720042992313007100180064000100080004000300012000590801300040008000500020000100140008000
720042992313007100180064000100080004000300012000590801300040008000500020000100140008000

Test 2: throughput

Count: 8

Code:

  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [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)
9602053201641040214801066400863200228010664003632000824030696003639684621040120200320008640016200400010160004080002320000640000100
9602043200621040140801026400323200068010264001032003624032796012064008841040211200320036640072200400010160004080002320000640000100
9602043200481040128801026400203200068010264001032000824030696002464002941040120200320008640016200400010160004080002320000640000100
9602043200481040128801026400203200068010264001032003624032796012064008961040211200320036640072200400010160004080002320000640000100
9602043200481040128801026400203200068010264001032000824030696002464002941040120200320008640016200400010160004080002320000640000100
9602043200481040128801026400203200068010264001032003624032796151464011681040211200320036640072200400010160004080002320000640000100
9602043200481040128801026400203200068010264001032000824030696005064002941040120200320008640016200400010160004080002320000640000100
9602043202431040314801166401363200628011664012232003624032796041864009001040211200320036640072200400010160004080002320000640000100
9602053200971040219801096400763200348010964006632000824030696006064002941040120200320008640016200400010160004080002320000640000100
9602053200951040219801096400763200348010964006632000824030696002464002941040120200320008640016200400045160018080009320000640000100

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)
9600253205101040120800166400823200228001664003632000024003096001246083441040010203200006400002040000016000008000132000064000010
9600253200931040127800196400743200348001964006632000024003096001264003281040010203200006400002040000016000008000132000064000010
9600243200521040039800116400283200008001064000032000024003096002864003281040010203200006400002040000016000008000132000064000010
9600253201051040129800196400763200348001964006632000024003096001251203441040010203200006400002040000016000008000132000064000010
9600243200521040039800116400283200008001064000032000024003096001264003281040010203200006400002040000016000008000132000064000010
9600253201061040129800196400763200348001964006632003624005796012061921961040121203200366400722040000016000008000132000064000010
9600243200521040039800116400283200008001064000032000024003096002864003281040010203200006400002040000016000008000132000064000010
9600263201381040200800266401123200628002664012232000024003096001264003281040010203200006400002040000016000008000132000064000010
9600243200521040039800116400283200008001064000032000024003096001264003281040010203200006400002040000016000008000132000064000010
9600253201071040125800196400723200348001964006632000024003096001264003281040010203200006400002040000016000008000132000064000010