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

SMSUBL

Test 1: uops

Code:

  smsubl x0, w0, w1, x2
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 1.001

Load/store unit issues: 0.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
100430301001100110002585610001000300010011000
100430301001100110002585610001000300010011000
100430301001100110002585610001000300010011000
100430301001100110002585610001000300010011000
100430301001100110002585610001000300010011000
100430301001100110002585610001000300010011000
100430301001100110002585610001000300010011000
100430301001100110002585610001000300010011000
100430301001100110002585610001000300010011000
100430301001100110002585610001000300010011000

Test 2: Latency 1->2

Code:

  smsubl x0, w0, w1, x2
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0030

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
10204300301010110101101002601441010010206302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0030

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
10024300301002110021100202599071002010030300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020301041001610010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010

Test 3: Latency 1->3

Code:

  smsubl x0, w1, w0, x2
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0030

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
10204300301010110101101002601441010010206302181000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601501010010206302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100
10204300301010110101101002601561010010208302241000110100

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0030

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
10024300301002110021100202599071002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010
10024300301002110021100202599161002010020300201001110010

Test 4: Latency 1->4

Code:

  smsubl x0, w1, w2, x0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 1.0034

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
1020410054101041010410105303151010510210302361000410100
1020410044101041010410105303151010510212302361000410100
1020410034101041010410105303151010510212302361000410100
1020410034101041010410105303151010510212302361000410100
1020410034101041010410105303151010510212302361000410100
1020410034101041010410105303151010510212302361000410100
1020410034101041010410105303151010510212302361000410100
1020410034101041010410105303151010510212302361000410100
1020410034101041010410105303151010510212302361000410100
1020410034101041010410105303151010510212302361000410100

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0032

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
1002410035100251002510026300601002010020300201001110010
1002410032100211002110020300601002010020300201001110010
1002410032100211002110020300601002010020300201001110010
1002410032100211002110020300601002010020300201001110010
1002410032100211002110020300601002010020300201001110010
1002410032100211002110020300601002010020300201001110010
1002510067100411004110045300601002010020300201001110010
1002410032100211002110020300601002010020300201001110010
1002410032100211002110020300601002010020300201001110010
1002410032100211002110020300601002010020300201001110010

Test 5: throughput

Count: 8

Code:

  smsubl x0, w8, w9, x9
  smsubl x1, w8, w9, x9
  smsubl x2, w8, w9, x9
  smsubl x3, w8, w9, x9
  smsubl x4, w8, w9, x9
  smsubl x5, w8, w9, x9
  smsubl x6, w8, w9, x9
  smsubl x7, w8, w9, x9
  mov x8, 9
  mov x9, 10
  mov x10, 11

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)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)
80204800448010480104080105240315801058021224023600800040080100
80204800348010480104080105240315801058021224023600800040080100
80204800348010480104080105240315801058021224023600800040080100
80204800348010480104080105240315801058021224023600800040080100
80204800348010480104080105240315801058021224023600800040080100
80204800348010480104080105240315801058021224023600800040080100
80204800348010480104080105240315801058021224023600800040080100
80205800668012080120080124240315801058021224023600800040080100
80204800348010480104080105240369801248023624023600800040080100
80204800348010480104080105240315801058021224023600800040080100

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
800248004680025800258002624007880026800322400208001180010
800248003280021800218002024006080020800202400208001180010
800248003280021800218002024006080020800202401348003180010
800258006480037800378003924006080020800202400208001180010
800248003280021800218002024006080020800202400208001180010
800248003280021800218002024006080020800202400208001180010
800248003280021800218002024006080020800202400208001180010
800248003280021800218002024006080020800202400208001180010
800248003280021800218002024006080020800202400208001180010
800248003280021800218002024006080020800202401288003180010