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

Test 1: uops

Code:

  ld4 { v0.h, v1.h, v2.h, v3.h }[1], [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): 5.000

Issues: 6.008

Integer unit issues: 1.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 4.008

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 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)
6500529769603310034028100210024008100030003000305766000100040000200080001001100040000
6500429502600910014008100010004000100030003000305766000100040000200080001001100040000
6500429496600910014008100010004000100030003000305766000100040000200080001001100040000
6500429497600910014008100010004000100030003000305766000100040000200080001001100040000
6500429497600910014008100010004000100030003000305766000100040000200080001001100040000
6500429498600910014008100010004000100030003000305766000100040000200080001001100040000
6500429496600910014008100010004000100030003000305766000100040000200080001001100040000
6500429494600910014008100010004000100030003000305766000100040000200080001001100040000
6500429497600910014008100010004000100030003000305766000100040000200080001001100040000
6500429658600910014008100010004000100030003000305766000100040000200080001001100040000

Test 2: throughput

Count: 8

Code:

  ld4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8
  ld4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8
  ld4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8
  ld4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8
  ld4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8
  ld4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8
  ld4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8
  ld4 { v0.h, v1.h, v2.h, v3.h }[1], [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)
400205160178480160801123200378001180112320039800042403122400122443650480121200800043200152001600086400308000480000320000100
400204160062480124801043200178000380104320013800182403532400532472573480203200800183200712001600086400308000480000320000100
400204160053480119801043200128000380104320012800042403122400123200446480120200800043200152001600086400308000480000320000100
400204160053480119801043200128000380104320012800042403122400183200446480120200800043200152001600086400308000480000320000100
400204160053480119801043200128000380104320012800042403122400123200446480120200800043200152001600086400308000480000320000100
400205160090480185801173200528001680118320067800042403122400123200446480120200800043200152001600086400308000480000320000100
400204160053480119801043200128000380104320012800042403122400123200446480120200800043200152001600086400308000480000320000100
400204160053480119801043200128000380104320012800042403122400123200446480120200800043200152001600086400308000480000320000100
400204160053480119801043200128000380104320012800042403122400123200446480120200800043200152001600366401428001780000320000100
400204160053480119801043200128000380104320012800042403122400123200446480120200800043200152001600086400308000480000320000100

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)
400025160318480070800223200378001180022320039800002400302400002656365480010208000032000020160000640000800018000032000010
400025160090480095800273200528001680028320067800002400302400003200366480010208000032000020160000640000800018000032000010
400024160046480017800113200068000080010320000800002400302400003200366480010208000032000020160000640000800018000032000010
400024160046480017800113200068000080010320000800002400302400003200366480010208000032000020160000640000800018000032000010
400024160046480017800113200068000080010320000800002400302400223200366480010208000032000020160008640030800048000032000010
400024160057480017800113200068000080010320000800002400302400153200370480010208000032000020160000640000800018000032000010
400024160046480017800113200068000080010320000800002400302400063200366480010208000032000020160000640000800018000032000010
400024160046480017800113200068000080010320000800002400302400003200366480010208000032000020160036640142800178000032000010
400024160054480017800113200068000080010320000800002400302400003200366480010208000032000020160000640000800018000032000010
400024160046480017800113200068000080010320000800002400302400003200366480010208000032000020160000640000800018000032000010