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

LD3R (post-index, 4H)

Test 1: uops

Code:

  ld3r { v0.4h, v1.4h, v2.4h }, [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): 4.000

Issues: 5.003

Integer unit issues: 1.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 3.003

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)
64005296015046100330411002100230061000300030002303650001000300020003000100110003000
64004294295004100130031000100030001000300030002303650001000300020003000100110003000
64004294195004100130031000100030001000300030002303650001000300020023003100210003000
64004294185004100130031000100030001000300030002303650001000300020003000100110003000
64004294455004100130031000100030001000300030002303650001000300020003000100110003000
64004294165004100130031000100030001000300030002303650001000300020003000100110003000
64004294435004100130031000100030001000300030002303650001000300020003000100110003000
64004294255004100130031000100030001000300030002303650001000300020003000100110003000
64004294235004100130031000100030001000300030002303650001000300020003000100110003000
64004294455004100130031000100030001000300030002303650001000300020003000100110003000

Test 2: throughput

Count: 8

Code:

  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [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): 1.5006

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)
320205120157400197801142400708001380114240036800042403122400152119334400118200800052400152001600102400158000480000240000100
320204120048400122801042400158000380104240010800042403122400152400284400118200800052400152001600102400158000480000240000100
320204120048400122801042400158000380104240010800042403122400152400284400118200800052400152001600102400158000480000240000100
320204120048400122801042400158000380104240010800042403122400152400284400118200800052400152001600102400158000480000240000100
320204120048400122801042400158000380104240010800252403752400781712062400223200800262400782001600102400158000480000240000100
320204120048400122801042400158000380104240010800042403122400152400284400118200800052400152001600102400158000480000240000100
320204120048400122801042400158000380104240010800042403122400152400284400118200800052400152001600102400158000480000240000100
320204120068400122801042400158000380104240010800042403122401942400302400118200800052400152001600102400158000480000240000100
320204120048400122801042400158000380104240010800042403122400152400284400118200800052400152001600102400158000480000240000100
320205120092400214801252400658002480126240074800042403122400152400284400118200800052400152001600102400158000480000240000100

1000 unrolls and 10 iterations

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

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)
320025120175400111800242400748001380024240036800042400422400162040228400028208000524001520160000240000800018000024000010
320024120046400031800142400148000380014240010800262401082400862401005400136208002624007820160000240000800018000024000010
320024120046400025800112400148000080010240000800042400422400162400242400028208000524001520160000240000800018000024000010
320024120046400025800112400148000080010240000800002400302400042400180400010208000024000020160000240000800018000024000010
320024120046400025800112400148000080010240000800002400302400042400180400010208000024000020160000240000800018000024000010
320024120046400025800112400148000080010240000800002400302400042400180400010208000024000020160000240000800018000024000010
320024120046400025800112400148000080010240000800252401052400822400908400133208002624007820160000240000800018000024000010
320024120046400025800112400148000080010240000800002400302400042400180400010208000024000020160000240000800018000024000010
320024120046400025800112400148000080010240000800002400302400042400180400010208000024000020160000240000800018000024000010
320024120046400025800112400148000080010240000800002400302400042400180400010208000024000020160000240000800018000024000010