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, 4S)

Test 1: uops

Code:

  ld3 { v0.4s, v1.4s, v2.4s }, [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)
660052984260291302230063006300090002453060003000300030009000130003000
660042960060031300230003000300090002453060003000300030009000130003000
660042958160031300230003000300090002453060003000300030009000130003000
660042958860031300230003000300090002453060003000300030009000130003000
660042962460031300230003000300090002453060003000300030009000130003000
660042958460031300230003000300090002453060003000300030009000130003000
660042958560031300230003000300090002453060003000300030009000130003000
660042958160031300230003000300090002453060003000300030009000130003000
660042958460031300230003000300090002453060003000300030009000130003000
660042958660031300230003000300090002453060003000300030009000130003000

Test 2: throughput

Count: 8

Code:

  ld3 { v0.4s, v1.4s, v2.4s }, [x6]
  ld3 { v0.4s, v1.4s, v2.4s }, [x6]
  ld3 { v0.4s, v1.4s, v2.4s }, [x6]
  ld3 { v0.4s, v1.4s, v2.4s }, [x6]
  ld3 { v0.4s, v1.4s, v2.4s }, [x6]
  ld3 { v0.4s, v1.4s, v2.4s }, [x6]
  ld3 { v0.4s, v1.4s, v2.4s }, [x6]
  ld3 { v0.4s, v1.4s, v2.4s }, [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)
48020516018148017610124003724003810024003624001130072016720802114801212002400122400102002400127200301240000240000100
48020416005548012610124001724000810024001024001130072023920803044801212002400122400102002400127200301240000240000100
48020416005048012810124001924000810024001024001130072016720802094801212002400122400102002400127200301240000240000100
48020416004648012610124001724000810024001024001130072031120803754801212002400122400102002400127200301240000240000100
48020516008948018610124004724003810024005024001130072016720802094801212002400122400102002400127200301240000240000100
48020416004648012610124001724000810024001024001130072016720802094801212002400122400102002400127200301240000240000100
48020416004648012610124001724000810024001024001130072015620802924801212002400122400102002400127200301240000240000100
48020416004648012610124001724000810024001024001130072016720802094801212002400122400102002400547201501240000240000100
48020416004648012610124001724000810024001024001130072016720802094801212002400122400102002400127200301240000240000100
48020416004648012610124001724000810024001024001130072016720802094801212002400122400102002400127200301240000240000100

1000 unrolls and 10 iterations

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

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)
48002516025148008611240037240038102400362400533074289220846054801132024005424005020240012720030124000024000010
48002416004448003411240015240008102400102400003072013420802624800102024000024000020240000720000124000024000010
48002416004148002111240010240000102400002400003072013420802604800102024000024000020240000720000124000024000010
48002416004148002111240010240000102400002400003072013420802604800102024000024000020240000720000124000024000010
48002516008748009411240045240038102400502400003072013420802604800102024000024000020240000720000124000024000010
48002416004148002111240010240000102400002400003072013420802604800102024000024000020240000720000124000024000010
48002416004148002111240010240000102400002400003072013420802604800102024000024000020240000720000124000024000010
48002416004148002111240010240000102400002400003072013420802604800102024000024000020240054720150124000024000010
48002416004148002111240010240000102400002400533072370720847254801132024005424005020240000720000124000024000010
48002416004148002111240010240000102400002400003072013420802604800102024000024000020240054720150124000024000010