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

DUP (general, 2S)

Test 1: uops

Code:

  dup v0.2s, w0
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 2.000

Issues: 2.000

Integer unit issues: 0.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch simd uop (57)dispatch ldst uop (58)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)
20045982001110001000100010003000800020001000100010001000110001000
20045372001110001000100010003000800020001000100010001000110001000
20045362001110001000100010003000800020001000100010001000110001000
20045362001110001000100010003000800020001000100010001000110001000
20045362001110001000100010003000800020001000100010001000110001000
20045362001110001000100010003000800020001000100010001000110001000
20045362001110001000100010003000800020001000100010001000110001000
20045362001110001000100010003000800020001000100010001000110001000
20045362001110001000100010003000800020001000100010001000110001000
20045362001110001000100010003000800020001000100010001000110001000

Test 2: Latency 1->2 roundtrip

Code:

  dup v0.2s, w0
  fmov x0, d0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 9.0030

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)
302049004340101101012000010000100200001000130013763222318460301012001000220004200100222004210003100001000010100
302049003440101101012000010000100200001000030013763282318460301002001000220002200100022000210001100001000010100
302049003740101101012000010000100200001000030013763282318460301002001000220002200100022000210001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100022000210001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100022000210001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100022000210001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100022000210001100001000010100
302059006340108101032000310002100200291000030013769672319474301002001000220002200100022000210001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100022000210001100001000010100
302049003040101101012000010000100200001000030013763282318460301002001000220002200100022000210001100001000010100

1000 unrolls and 10 iterations

Result (median cycles for code): 9.0030

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)
30024900304001110011200001000010200001000030137632823184603001020100002000020100002000010001100001000010010
30024900304001110011200001000010200001001837137655023188133005922100202004120100002000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100002000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100002000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100002000010001100001000010010
30025900634001810013200031000210200291000030137642823186163001020100002000020100002000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100002000010001100001000010010
30024900304001110011200001000010200001000030137632823184603001020100002000020100212003910003100001000010010
30024900304001110011200001000010200001000030137637623185383001020100002000020100002000010001100001000010010
3002490030400111001120000100001020000100003013763762318538300102010000200004712131392012312068114041000912324

Test 3: throughput

Count: 8

Code:

  dup v0.2s, w8
  dup v1.2s, w8
  dup v2.2s, w8
  dup v3.2s, w8
  dup v4.2s, w8
  dup v5.2s, w8
  dup v6.2s, w8
  dup v7.2s, w8
  mov x8, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

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)
16020440149160115101800068000810080012800123002400366400801601242008001280012200800128001218000080000100
16020440101160115101800068000810080012800123002548066599771601242008001280012200800128001218000080000100
16020440091160108101800018000610080012800123002400366400801601242008001280012200800128001218000080000100
16020440090160115101800068000810080012800123002400366400801601242008001280012200800128001218000080000100
16020440090160115101800068000810080012800123002437726454001601242008001280012200800128001218000080000100
16020440090160115101800068000810080012800123002400366400801601242008001280012200800128001218000080000100
16020440090160115101800068000810080012800123002400366400801601242008001280012200800128001218000080000100
16020440090160115101800068000810080012800123002400366400801601242008001280012200800128001218000080000100
16020440090160115101800068000810080012800123002400366400801601242008001280012200800128001218000080000100
16020440090160115101800068000810080012800123002400366400801601242008001280012200800128001218000080000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 0.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)
16002440534160025118000680008108001280012302400366400801600342080012800122080000800001800008000010
16002440063160011118000080000108000080055302409676411661601202080055800552080000800001800008000010
16002440056160011118000080000108000080000302624426712741600102080000800002080000800001800008000010
160025401081600851180036800381080054800003030256572655216001020800008000073180602800553118028580001412
16002440066160011118000080000108000080000303097087337071600102080000800002080000800001800008000010
16002440053160011118000080000108000080000302400006400001600102080000800002080000800001800008000010
16002440048160011118000080000108000080000302400006400001600102080000800002080054800541800008000010
16002440151160011118000080000108000080013303191217431371600362080013800132080000800001800008000010
16002440298160027118000780009108001380000302400006400001600102080000800002080000800001800008000010
16002440271160131118006080060108008480000302400006400001600102080000800002080000800001800008000010