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

Test 1: uops

Code:

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

Issues: 7.004

Integer unit issues: 1.001

Load/store unit issues: 3.000

SIMD/FP unit issues: 3.004

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)
66005298727031100330223006100230063000300090002455170003000300040009000100130003000
66004295957005100130043000100030003000300090002455170003000300040009000100130003000
66004295677005100130043000100030003000300090002455170003000300040009000100130003000
66004295847005100130043000100030003000300090002455170003000300040009000100130003000
66004295717005100130043000100030003000300090002455170003000300040009000100130003000
66004295677005100130043000100030003000300090002455170003000300040009000100130003000
66004295677005100130043000100030003000300090002455170003000300040009000100130003000
66004295667005100130043000100030003000300090002455170003000300040009000100130003000
66004295667005100130043000100030003000300090002455170003000300040009000100130003000
66004295697005100130043000100030003000300090002455170003000300040009000100130003000

Test 2: throughput

Count: 8

Code:

  ld3 { v0.8h, v1.8h, v2.8h }, [x6], x8
  ld3 { v0.8h, v1.8h, v2.8h }, [x6], x8
  ld3 { v0.8h, v1.8h, v2.8h }, [x6], x8
  ld3 { v0.8h, v1.8h, v2.8h }, [x6], x8
  ld3 { v0.8h, v1.8h, v2.8h }, [x6], x8
  ld3 { v0.8h, v1.8h, v2.8h }, [x6], x8
  ld3 { v0.8h, v1.8h, v2.8h }, [x6], x8
  ld3 { v0.8h, v1.8h, v2.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): 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)
4802061602165602648012924006724006880129240076240011240312720185208045256012520024001224001020032001672003080004240000240000100
4802041600565601298010424001724000880104240010240011240312720185208045256012520024001224001020032001672003080004240000240000100
4802041600565601298010424001724000880104240010240011240312720185208045056012520024001224001020032001672003080004240000240000100
4802041600565601298010424001724000880104240010240011240312720185208045056012520024001224001020032007272015080018240000240000100
4802041600565601298010424001724000880104240010240011240312720185208045056012520024001224001020032001672003080004240000240000100
4802041600565601298010424001724000880104240010240011240312720483208079956012520024001224001020032001672003080004240000240000100
4802041600565601298010424001724000880104240010240011240312720185208045056012520024001224001020032001672003080004240000240000100
4802041600565601298010424001724000880104240010240011240312720185208045056012520024001224001020032007272015080018240000240000100
4802041600565601298010424001724000880104240010240011240312720185208045056012520024001224001020032001672003080004240000240000100
4802041600565601298010424001724000880104240010240011240312720185208045056012520024001224001020032001672003080004240000240000100

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)
4800251601755601008002524003724003880025240036240011240042720188208056856003520240012240010203200167200308000424000024000010
4800241600545600398001424001724000880014240010240011240042720188208056856003520240012240010203200167200308000424000024000010
4800241600545600398001424001724000880014240010240053240084720418208095056013120240054240050203200167200308000424000024000010
4800241600515600238001124001224000080010240000240000240030720152208056156001020240000240000203200007200008000124000024000010
4800241600515600238001124001224000080010240000240000240030720152208056156001020240000240000203200007200008000124000024000010
4800241600515600238001124001224000080010240000240000240030720152208056156001020240000240000203200727201508001824000024000010
4800241600515600238001124001224000080010240000240000240030720152208056156001020240000240000203200007200008000124000024000010
4800241600515600238001124001224000080010240000240000240030720152208056156001020240000240000203200007200008000124000024000010
4800241600515600238001124001224000080010240000240000240030720152208056156001020240000240000203200007200008000124000024000010
4800241600515600238001124001224000080010240000240000240030720152208056156001020240000240000203200567201208001524000024000010