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

LD4R (post-index, 4S)

Test 1: uops

Code:

  ld4r { v0.4s, v1.4s, v2.4s, v3.4s }, [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.004

Integer unit issues: 1.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 4.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)
65005297156055100340501002100240081000300030003054860001000400020004000100110004000
65004294846005100140041000100040001000300030003054860001000400020004000100110004000
65004294726005100140041000100040001001300330033058060061001400420004000100110004000
65004294836005100140041000100040001000300030203065660001000400020004000100110004000
65004294906005100140041000100040001000300030003054860001000400020004000100110004000
65004294856005100140041000100040001000300030003054860001000400020004000100110004000
65004294866005100140041000100040001000300030003054860001000400020004000100110004000
65004294816005100140041000100040001000300030003054860001000400020004000100110004000
65004295056005100140041000100040001000300030003054860001000400020004000100110004000
65004294976005100140041000100040001000300030003054860001000400020004000100110004000

Test 2: throughput

Count: 8

Code:

  ld4r { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4r { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4r { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4r { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4r { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4r { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4r { v0.4s, v1.4s, v2.4s, v3.4s }, [x6], x8
  ld4r { v0.4s, v1.4s, v2.4s, v3.4s }, [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)
400205160316480219801123200968001180112320039800042403122400122443658480121200800043200152001600083200158000480000320000100
400204160054480135801043200288000380104320012800042403122400123200452480120200800043200152001600083200158000480000320000100
400204160054480135801043200288000380104320012800042403122400123200452480120200800043200152001600083200158000480000320000100
400204160054480135801043200288000380104320012800042403122400123200452480120200800043200152001600083200158000480000320000100
400204160054480135801043200288000380104320012800042403122400123200452480120200800043200152001600083200158000480000320000100
400204160054480135801043200288000380104320012800042403122400123200452480120200800043200152001600083200158000480000320000100
400204160054480135801043200288000380104320012800182403532400532588492480203200800183200712001600083200158000480000320000100
400204160054480135801043200288000380104320012800042403122400123200452480120200800043200152001600083200158000480000320000100
400204160054480135801043200288000380104320012800042403122400123200452480120200800043200152001600083200158000480000320000100
400204160054480135801043200288000380104320012800042403122400123200452480120200800043200152001600083200158000480000320000100

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)
400026160199480193800353201348002480036320092800042400422400123200452480030208000432001520160008320015800048000032000010
400024160062480053800143200368000380014320013800002400302400003200372480010208000032000020160000320000800018000032000010
400024160054480039800113200288000080010320000800002400302400003200372480010208000032000020160000320000800018000032000010
400024160054480039800113200288000080010320000800002400302400003200372480010208000032000020160008320015800048000032000010
400024160046480031800113200208000080010320000800002400302400053200184480010208000032000020160000320000800018000032000010
400024160046480031800113200208000080010320000800002400302400053200184480010208000032000020160000320000800018000032000010
400024160046480031800113200208000080010320000800002400302400053200184480010208000032000020160036320071800178000032000010
400024160046480031800113200208000080010320000800002400302400053200184480010208000032000020160000320000800018000032000010
400024160068480039800113200288000080010320000800002400302400163200184480010208000032000020160000320000800018000032000010
400024160046480031800113200208000080010320000800002400302400053200184480010208000032000020160000320000800018000032000010