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

SHA256SU0

Test 1: uops

Code:

  sha256su0 v0.4s, v1.4s
  movi v0.16b, 1
  movi v1.16b, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.001

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch simd uop (57)ldst uops in schedulers (5b)dispatch uop (78)map simd uop (7e)map simd uop inputs (81)? int output thing (e9)? simd retires (ee)
1004203310011100010002476910001000200011000
1004203310011100010002476910001000200011000
1004203310011100010002476910001000200011000
1004203310011100010002476910001000200011000
1004203310011100010002476910001000200011000
1004203310011100010002476910001000200011000
1004203310011100010002476910001000200011000
1004203310011100010002476910001000200011000
1004203310011100010002476910001000200011000
1004203310011100010002476910001000200011000

Test 2: Latency 1->1

Code:

  sha256su0 v0.4s, v1.4s
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0033

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
1020420033101011011000010010000300249769101002001000620020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0033

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
10024200331002121100002010000702497681002020100062020000111000010
10025200661002921100082010021702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010

Test 3: Latency 1->2

Code:

  sha256su0 v0.4s, v0.4s
  movi v0.16b, 1

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0033

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020520066101091011000810010021300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0033

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
10024200331002121100002010000702497691002020100042020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010

Test 4: throughput

Count: 8

Code:

  movi v0.16b, 0
  sha256su0 v0.4s, v8.4s
  movi v1.16b, 0
  sha256su0 v1.4s, v8.4s
  movi v2.16b, 0
  sha256su0 v2.4s, v8.4s
  movi v3.16b, 0
  sha256su0 v3.4s, v8.4s
  movi v4.16b, 0
  sha256su0 v4.4s, v8.4s
  movi v5.16b, 0
  sha256su0 v5.4s, v8.4s
  movi v6.16b, 0
  sha256su0 v6.4s, v8.4s
  movi v7.16b, 0
  sha256su0 v7.4s, v8.4s
  movi v8.16b, 9

(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 simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
1602048005280101101800001008000230032008880123200800342001600121160000100
1602048004180101101800001008000130032000580101200800062001600141160000100
1602048003480101101800001008000130032001080102200800072001600121160000100
1602048003480101101800001008000130032000580101200800062001600141160000100
1602048003480101101800001008000130032001080102200800072001600121160000100
1602048004180101101800001008000130032000580101200800062001600121160000100
1602048004080101101800001008000130032000580101200800062001600121160000100
1602048003480101101800001008000130032000580101200800062001600121160000100
1602048003480101101800001008000130032000580101200800062001600121160000100
1602048003480101101800001008000130032000580101200800062001600121160000100

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)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)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)
1600248009080011118000001080002303200058001120800062001600001016000010
1600248003480011118000001080000303200008001020800002001600001016000010
1600248003480011118000001080000303200008001020800002001600001016000010
1600248003480011118000001080000303200008001020800002001600001016000010
1600248003480011118000001080000303200008001020800002001600001016000010
1600248003480011118000001080000303200008001020800002001600001016000010
1600248003480011118000001080000303200008001020800002001600141016000010
1600248003480011118000001080000303200008001020800002001600001016000010
1600248003480011118000001080000303200008001020800002001600001016000010
1600248003480011118000001080000303200008001020800002001600001016000010

Test 5: throughput

Count: 16

Code:

  sha256su0 v0.4s, v16.4s
  sha256su0 v1.4s, v16.4s
  sha256su0 v2.4s, v16.4s
  sha256su0 v3.4s, v16.4s
  sha256su0 v4.4s, v16.4s
  sha256su0 v5.4s, v16.4s
  sha256su0 v6.4s, v16.4s
  sha256su0 v7.4s, v16.4s
  sha256su0 v8.4s, v16.4s
  sha256su0 v9.4s, v16.4s
  sha256su0 v10.4s, v16.4s
  sha256su0 v11.4s, v16.4s
  sha256su0 v12.4s, v16.4s
  sha256su0 v13.4s, v16.4s
  sha256su0 v14.4s, v16.4s
  sha256su0 v15.4s, v16.4s
  movi v16.16b, 17

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)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)
160204160097160125101160024100160027030006400051601012000160008200032001610160000100
160204160040160101101160000100160001030006400051601012000160008200032001610160000100
160204160034160101101160000100160001030006404181602032000160118200032018410160000100
160204160181160174101160073100160078030006401111601272000160038598353320072193118160001317
160204160227160197101160096100160101030006400051601012000160008200032001610160000100
160204160034160101101160000100160001030006400051601012000160008200032007210160000100
160204160046160101101160000100160001146312058903450089612885231601761125261200032001610160000100
160204160034160101101160000100160001030006404181602032000160121200032001610160000100
160205160653160407101160306100160324030006400051601012000160008200032041010160000100
160204160034160101101160000100160001030006400051601012000160008200032001610160000100

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)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)
160024160040160012111600011016000330640000160010201600002003200001016000010
160024160034160011111600001016000030640000160010201600002003200001016000010
160024160034160011111600001016000030640000160010201600002003200001016000010
160024160034160011111600001016000030640000160010201600002003200001016000010
160025160068160028111600171016002130640000160010201600002003200001016000010
160024160034160011111600001016000030640000160010201600002003200001016000010
160024160034160011111600001016000030640000160010201600002003200001016000010
160024160034160011111600001016000030640078160031201600282003200001016000010
160024160034160011111600001016000030640000160010201600002003200681016000010
160025160068160030111600191016002530640083160032201600363074184132009114518401600071674