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

LD2R (post-index, 1D)

Test 1: uops

Code:

  ld2r { v0.1d, v1.1d }, [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): 3.000

Issues: 4.004

Integer unit issues: 1.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 2.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)
63005295254033100320281002100220041000300030001529040001000200020002000100110002000
63004293404005100120041000100020001000300030001529040001000200020002000100110002000
63004293024005100120041000100020001000300030001529040001000200020002000100110002000
63004293014005100120041000100020001000300030001529040001000200020002000100110002000
63004293194005100120041000100020001000300030001529040001000200020002000100110002000
63004293014005100120041000100020001000300030001529040001000200020002000100110002000
63004293044005100120041000100020001000300030001529040001000200020002000100110002000
63004293174005100120041000100020001000300030001529040001000200020002000100110002000
63004293014005100120041000100020001000300030001529040001000200020002000100110002000
63004293014005100120041000100020001000300030001529040001000200020002000100110002000

Test 2: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ld2r { v0.1d, v1.1d }, [x6], x8
  fmov x0, d0
  eor x8, x8, x0
  eor x8, x8, x0
  add x6, x6, x8
  mov x0, 1
  mov x1, 2
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 3 chain cycles): 9.0047

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)
7020512015490121501023001810001401323003210003319917994929429063958011430208100033000960216200063000950001100002000040100
7020412004790107501013000610000401043000710003319928694943429066928011430208100033000960278200263003750007100002000040100
7020412004790107501013000610000401043000710003319928694943429066928011430208100033000960216200063000950001100002000040100
7020412004790107501013000610000401043000710003319928694943429066928011430208100033000960216200063000950001100002000040100
7020412004790107501013000610000401043000710003319928694943429066928011430208100033000960216200063000950001100002000040100
7020412004790107501013000610000401043000710003319928694943429066928011430208100033000960216200063000950001100002000040100
7020412012090107501013000610000401043000810003319947594949529068728011430208100033000960278200243003750008100002000040100
7020412004790107501013000610000401043000710003319928694943429066928011430208100033000960216200063000950001100002000040100
7020412004790107501013000610000401043000710003319928694943429066928011430208100033000960216200063000950001100002000040100
7020412004790107501013000610000401043000710003319928694943429066928011430208100033000960216200063000950001100002000040100

1000 unrolls and 10 iterations

Result (median cycles for code, minus 3 chain cycles): 9.0040

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)
7002512014890031500123001810001400423003110000319930494958729091308001030020100003000060020200003000050001100002000040010
7002412004090014500113000310000400103000010000319916194959729091078001030020100003000060020200003000050001100002000040010
7002412004090014500113000310000400103000010000319916194959729091078001030020100003000060020200003000050001100002000040010
7002412004090014500113000310000400103000010000319916194959729091078001030020100003000060020200003000050001100002000040010
7002512009890035500183001610001400453003510000319953994972329094648001030020100003000060020200003000050001100002000040010
7002412004090014500113000310000400103000010000319916194959729091078001030020100003000060020200003000050001100002000040010
7002412004090014500113000310000400103000010000319916194959729091078001030020100003000060020200003000050001100002000040010
7002412004090014500113000310000400103000010000319916194959729091078001030020100003000060020200003000050001100002000040010
7002412004090014500113000310000400103000010000319916194959729091078001030020100003000060020200003000050001100002000040010
7002512009290032500183001310001400413002710000319916194959729091078001030020100003000060020200003000050001100002000040010

Test 3: Latency 2->3 roundtrip

Chain cycles: 3

Code:

  ld2r { v0.1d, v1.1d }, [x6], x8
  fmov x1, d1
  eor x8, x8, x1
  eor x8, x8, x1
  add x6, x6, x8
  mov x0, 1
  mov x1, 2
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 3 chain cycles): 9.2444

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)
7020512255090121501023001810001401323003210003326406696851529585228011430208100033000960216200063000950001100002000040100
7020412244490107501013000610000401043000710003326396196859329586538011430208100033000960216200063000950001100002000040100
7020512246590118501073001010001401353003510003326396196859329586538011430208100033000960216200063000950001100002000040100
7020412243790104501013000310000401043000710003326396196859329586538011430208100033000960216200063000950001100002000040100
7020412244490107501013000610000401043000710003326396196859329586538011430208100033000960216200063000950001100002000040100
7020412244490107501013000610000401043000710003326396196859329586538011430208100033000960216200063000950001100002000040100
7020412244490107501013000610000401043000710003326377296853729584788011430208100033000960216200063000950001100002000040100
7020412249590107501013000610000401043000710003326396196859329586538011430208100033000960216200063000950001100002000040100
7020412244490107501013000610000401043000710003326396196859329586538011430208100033000960216200063000950001100002000040100
7020412244490107501013000610000401043000710003326396196859329586538011430208100033000960216200063000950001100002000040100

1000 unrolls and 10 iterations

Result (median cycles for code, minus 3 chain cycles): 9.2915

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)
7002512313090031500123001810001400423003110003327952097339229733188002330028100033000960020200003000050001100002000040010
7002412291590017500113000610000400103000010000327677497259129707998001030020100003000060020200003000050001100002000040010
7002412291590017500113000610000400103000010000327677497259129707998001030020100003000060020200003000050001100002000040010
7002412291590017500113000610000400103000010000327677497259129707998001030020100003000060020200003000050001100002000040010
7002412291590017500113000610000400103000010009328336997453329768818007830050100103002860020200003000050001100002000040010
7002412291590017500113000610000400103000010000327677497259129707998001030020100003000060020200003000050001100002000040010
7002412291590017500113000610000400103000010000327677497259129707998001030020100003000060020200003000050001100002000040010
7002412291590017500113000610000400103000010000327677497259129707998001030020100003000060020200003000050001100002000040010
7002412291590017500113000610000400103000010000327677497259129707998001030020100003000060020200003000050001100002000040010
7002512301790031500173001310001400453003410000327712597270929711328001030020100003000060020200003000050001100002000040010

Test 4: throughput

Count: 8

Code:

  ld2r { v0.1d, v1.1d }, [x6], x8
  ld2r { v0.1d, v1.1d }, [x6], x8
  ld2r { v0.1d, v1.1d }, [x6], x8
  ld2r { v0.1d, v1.1d }, [x6], x8
  ld2r { v0.1d, v1.1d }, [x6], x8
  ld2r { v0.1d, v1.1d }, [x6], x8
  ld2r { v0.1d, v1.1d }, [x6], x8
  ld2r { v0.1d, v1.1d }, [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.0013

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)
24020580220320249801211601088002080122160036800083521223517731261953320128200800091600172001600181600178000680000160000100
24020480106320146801061600358000580107160010800063359913356581268226320120200800061600102001600161600168000680000160000100
24020480106320147801061600368000580108160012800083354883351621270862320128200800081600162001600141600138000580000160000100
24020480106320142801051600338000480107160009800083354883351621270862320128200800081600162001600161600168000680000160000100
24020480106320147801061600368000580108160012800063296003310311362549320120200800061600102001600121600108000580000160000100
24020480106320144801051600358000480107160010800353492023488541274982320236200800351600692001600141600138000680000160000100
24020480106320145801051600368000480107160010800083361543358211271010320128200800081600162001600161600168000680000160000100
24020480106320146801061600358000580107160010800073327083323721271358320124200800071600132001600141600138000580000160000100
24020480106320147801061600368000580108160012800083354883351621270862320128200800081600162001600121600108000580000160000100
24020480106320146801061600358000580107160010800063337603334311272681320120200800061600102001600141600138000680000160000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 1.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)
24002580168320161800321601088002180034160038800083299433299191554943320038208000816001620160000160000800018000016000010
24002480046320031800111600208000080010160000800343865063864741351482320142208003516006920160000160000800018000016000010
24002480046320031800111600208000080010160000800003273323273061600192320010208000016000020160000160000800018000016000010
24002480046320031800111600208000080010160000800003299183298921600192320010208000016000020160000160000800018000016000010
24002480046320031800111600208000080010160000800003200813200561600192320010208000016000020160000160000800018000016000010
24002480046320031800111600208000080010160000800003270113269851600192320010208000016000020160000160000800018000016000010
24002480046320031800111600208000080010160000800003200813200561600192320010208000016000020160000160000800018000016000010
24002480046320031800111600208000080010160000800003199973199711600192320010208000016000020160000160000800018000016000010
24002480046320031800111600208000080010160000800343875143874821347450320142208003516006920160000160000800018000016000010
24002480046320031800111600208000080010160000800003299183298921600192320010208000016000020160000160000800018000016000010