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

Test 1: uops

Code:

  ld3 { v0.2d, v1.2d, v2.2d }, [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)
660053008360311302430063006300090002453660003000300030009000130003000
660042961560031300230003000300090002453660003000300030009000130003000
660042961360031300230003000300090002453660003000300030009000130003000
660042961260031300230003000300090002453660003000300030009000130003000
660042961760031300230003000300090002453660003000300030009000130003000
660042960760031300230003000300090002453660003000300030009000130003000
660042961960031300230003000300090002453660003000300030009000130003000
660042961760031300230003000300090002453660003000300030039009130003000
660042962360031300230003000300090002453660003000300030009000130003000
660042961760031300230003000300090392459860003000300030009000130003000

Test 2: throughput

Count: 8

Code:

  ld3 { v0.2d, v1.2d, v2.2d }, [x6]
  ld3 { v0.2d, v1.2d, v2.2d }, [x6]
  ld3 { v0.2d, v1.2d, v2.2d }, [x6]
  ld3 { v0.2d, v1.2d, v2.2d }, [x6]
  ld3 { v0.2d, v1.2d, v2.2d }, [x6]
  ld3 { v0.2d, v1.2d, v2.2d }, [x6]
  ld3 { v0.2d, v1.2d, v2.2d }, [x6]
  ld3 { v0.2d, v1.2d, v2.2d }, [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.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)
48020516017748017610124003724003810024003624001130072036820806704801212002400122400102002400127200301240000240000100
48020416009848013110124002224000810024001024001130072018820803914801212002400122400102002400127200301240000240000100
48020416006548012610124001724000810024001024001130072018820803874801212002400122400102002400127200301240000240000100
48020516009648018610124004724003810024005024001130072033820805684801212002400122400102002400127200301240000240000100
48020416005348012610124001724000810024001024005330072495620857244802032002400542400502002400547201501240000240000100
48020516009648018610124004724003810024005019617276259863017105623924183021961891960862002400127200301240000240000100
48020416005348012610124001724000810024001024001130072021820804224801212002400122400102002400127200301240000240000100
480205160110480200103240059240038102240050157146248894578504132846331649084641578521530072002400127200301240000240000100
48020416005448012610124001724000810024001024001130072039020806154801212002400122400102002400547201501240000240000100
48020416005348012610124001724000810024001024001130072018820803874801212002400122400102002400127200301240000240000100

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)
48002616021848014611240067240068102400762400113072018220806314800312024001224001020240000720000124000024000010
48002416005248002311240012240000102400002400003072013420803204800102024000024000020240000720000124000024000010
48002416004348002311240012240000102400002400003072013420803204800102024000024000020240000720000124000024000010
48002416004348002311240012240000102400002400003072013420803204800102024000024000020240054720150124000024000010
48002416004348002311240012240000102400002400003072013420803204800102024000024000020240000720000124000024000010
48002416004348002311240012240000102400002400003072013420803204800102024000024000020240000720000124000024000010
48002416004348002311240012240000102400002400003072013420803204800102024000024000020240054720150124000024000010
48002516010048009611240047240038102400502400533072048920808994801132024005424005020240000720000124000024000010
48002416004348002311240012240000102400002400003072016420803504800102024000024000020240000720000124000024000010
48002416004348002311240012240000102400002400003072016420803554800102024000024000020240000720000124000024000010