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

SHA512SU0

Test 1: uops

Code:

  sha512su0 v0.2d, v1.2d
  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:

  sha512su0 v0.2d, v1.2d
  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)
1020420033101011011000010010000300249769101002001000620020012110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249769101002001000420020008110000100
1020420033101011011000010010000300249907101212001003220020008110000100
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
10024200331002121100002010000662499071004120100352020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010

Test 3: Latency 1->2

Code:

  sha512su0 v0.2d, v0.2d
  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
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)
10024200331002121100002010000702497691002020100042020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010
10024200331002121100002010000702497691002020100002020000111000010

Test 4: throughput

Count: 8

Code:

  movi v0.16b, 0
  sha512su0 v0.2d, v8.2d
  movi v1.16b, 0
  sha512su0 v1.2d, v8.2d
  movi v2.16b, 0
  sha512su0 v2.2d, v8.2d
  movi v3.16b, 0
  sha512su0 v3.2d, v8.2d
  movi v4.16b, 0
  sha512su0 v4.2d, v8.2d
  movi v5.16b, 0
  sha512su0 v5.2d, v8.2d
  movi v6.16b, 0
  sha512su0 v6.2d, v8.2d
  movi v7.16b, 0
  sha512su0 v7.2d, v8.2d
  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)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)
160204800918010110180000100800020300032000580101200080006200016001410160000100
160204800348010110180000100800020300032000580101200080006200016001410160000100
160204800348010110180000100800010300032000580101200080006200016001210160000100
160204800348010110180000100800010300032000580101200080006200016001210160000100
160204800348010110180000100800010300032000580101200080006200016001210160000100
160204800348010110180000100800010300032000580101200080006200016001210160000100
160204800348010110180000100800010300032000580101200080006200016001210160000100
160205800748011810180017100800220300032000580101200080006200016001210160000100
160204800348010110180000100800010300032000580101200080006200016001210160000100
160204800348010110180000100800010300032000580101200080006200016001210160000100

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)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)
1600248022580011118000010800023032000580011208000620160012116000010
1600248003480011118000010800003032000080010208000020160000116000010
1600258006880028118001710800233032000580011208000620160000116000010
1600248003480011118000010800003032000080010208000020160000116000010
1600248003480011118000010800003032000080010208000020160000116000010
1600248003480011118000010800003032000080010208000020160000116000010
1600248003480011118000010800003032010180035208002720160000116000010
1600248017580059118004810800503032000080010208000020160052116000010
1600248003480011118000010800003032000080010208000020160000116000010
1600248010480035118002410800253032010180035208002620160158116000010

Test 5: throughput

Count: 16

Code:

  sha512su0 v0.2d, v16.2d
  sha512su0 v1.2d, v16.2d
  sha512su0 v2.2d, v16.2d
  sha512su0 v3.2d, v16.2d
  sha512su0 v4.2d, v16.2d
  sha512su0 v5.2d, v16.2d
  sha512su0 v6.2d, v16.2d
  sha512su0 v7.2d, v16.2d
  sha512su0 v8.2d, v16.2d
  sha512su0 v9.2d, v16.2d
  sha512su0 v10.2d, v16.2d
  sha512su0 v11.2d, v16.2d
  sha512su0 v12.2d, v16.2d
  sha512su0 v13.2d, v16.2d
  sha512su0 v14.2d, v16.2d
  sha512su0 v15.2d, v16.2d
  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)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 simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
16020416004816010110116000001001600010300064000516010120001600082003200161160000100
16020416003416010110116000001001600010300064000516010120001600082003201301160000100
16020416023116019910116009801001601040300064046416021820001601452003200721160000100
16020416008316012710116002601001600290300064032116017920001600952003200721160000100
16020416003416010110116000001001600010300064000516010120001600082003201281160000100
90592974379017738738409022143926841000300064000516010120001600082003200161160000100
16020416003416010110116000001001600010300064000516010120001600082003200161160000100
16020416003416010110116000001001600010300064000516010120001600082003200161160000100
16020416003416010110116000001001600010300064009216012420001600362003200161160000100
16020516006816011810116001701001600220300064000516010120001600082003200161160000100

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 simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
1600241600401600121116000110160003306400051600112016000820320000116000010
1600241600341600111116000010160000306400001600102016000020320000116000010
1600241600341600121116000110160003306400001600102016000020320000116000010
1600241600341600111116000010160000306400001600102016000020320000116000010
1600241600341600111116000010160000306400001600102016000020320074116000010
1600251600751600281116001710160022306400001600102016000020320000116000010
1600241600341600111116000010160000306400001600102016000020320000116000010
1600241600341600111116000010160000306400001600102016000020320000116000010
1600241600341600111116000010160000306400001600102016000020320076116000010
1600241600601600111116000010160000306400001600102016000020320000116000010