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

LD3 (multiple, 8H)

Test 1: uops

Code:

  ld3 { v0.8h, v1.8h, v2.8h }, [x6]
  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): 6.000

Issues: 6.002

Integer unit issues: 0.001

Load/store unit issues: 3.000

SIMD/FP unit issues: 3.002

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch simd uop (57)dispatch ldst uop (58)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)
660063130160401303030093009300090002455160003000300030009000130003000
660043021660031300230003000300090002453060003000300030039009130003000
660043021860031300230003000300090002453060003000300030009000130003000
660042968160031300230003000300090002453060003000300030009000130003000
660042987760031300230003000300090002453060003000300030009000130003000
660042969860031300230003000300090002453060003000300030009000130003000
660042957560031300230003000300090002453060003000300030009000130003000
660042957660031300230003000300090002453060003000300030009000130003000
660042958660031300230003000300090002453060003000300030009000130003000
660042956960031300230003000300090002453060003000300030009000130003000

Test 2: throughput

Count: 8

Code:

  ld3 { v0.8h, v1.8h, v2.8h }, [x6]
  ld3 { v0.8h, v1.8h, v2.8h }, [x6]
  ld3 { v0.8h, v1.8h, v2.8h }, [x6]
  ld3 { v0.8h, v1.8h, v2.8h }, [x6]
  ld3 { v0.8h, v1.8h, v2.8h }, [x6]
  ld3 { v0.8h, v1.8h, v2.8h }, [x6]
  ld3 { v0.8h, v1.8h, v2.8h }, [x6]
  ld3 { v0.8h, v1.8h, v2.8h }, [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): 2.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)
48020516017948017610124003724003810024003624005330072423420851174802032002400542400502002400127200301240000240000100
48020416005548012610124001724000810024001024005330072033720805394802032002400542400502002400127200301240000240000100
48020416004648012610124001724000810024001024001130072016720802094801212002400122400102002400127200301240000240000100
48020416004648012610124001724000810024001024005330772366320841974802052022400542400502002400127200301240000240000100
48020416006548012610124001724000810024001024001130072018820803874801212002400122400102002400127200301240000240000100
48020416006548012610124001724000810024001024001130072018820803874801212002400122400102002400127200301240000240000100
48020416005348012610124001724000810024001024001130072023620804574801212002400122400102002400547201501240000240000100
48020416004648012610124001724000810024001024001130072021220804224801212002400122400102002400127200301240000240000100
48020416005348012610124001724000810024001024001130072018820803874801212002400122400102002400127200301240000240000100
48020416005348012610124001724000810024001024001130072018820803874801212002400122400102002400127200301240000240000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 2.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)
48002516017948008611240037240038102400362400533072484520861584801132024005424005020240012720030124000024000010
48002416005248002311240012240000102400002400003072014920805604800102024000024000020240042720120124000024000010
48002616016548016111240082240068102400902400003072014920805604800102024000024000020240000720000124000024000010
48002416005248002311240012240000102400002400003072014920805604800102024000024000020240000720000124000024000010
48002416005248002311240012240000102400002400003072021520806384800102024000024000020240000720000124000024000010
48002416005248002311240012240000102400002400003072020920806254800102024000024000020240054720150124000024000010
48002416005248002311240012240000102400002400003072041520808744800102024000024000020240000720000124000024000010
48002416005248002311240012240000102400002400003072014920805604800102024000024000020240000720000124000024000010
48002416005248002311240012240000102400002400003072014920805604800102024000024000020240000720000124000024000010
48002416005248002311240012240000102400002400533072476420858464801132024005424005020240000720000124000024000010