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
Code:
sha256su0 v0.4s, v1.4s
movi v0.16b, 1 movi v1.16b, 2
(no loop instructions)
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) |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 2000 | 1 | 1000 |
Code:
sha256su0 v0.4s, v1.4s
movi v0.16b, 1 movi v1.16b, 2
(fused SUBS/B.cc loop)
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) |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10006 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
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) |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249768 | 10020 | 20 | 10006 | 20 | 20000 | 11 | 10000 | 10 |
10025 | 20066 | 10029 | 21 | 10008 | 20 | 10021 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
Code:
sha256su0 v0.4s, v0.4s
movi v0.16b, 1
(fused SUBS/B.cc loop)
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) |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10205 | 20066 | 10109 | 101 | 10008 | 100 | 10021 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 249769 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
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) |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10004 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
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)
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) |
160204 | 80052 | 80101 | 101 | 80000 | 100 | 80002 | 300 | 320088 | 80123 | 200 | 80034 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80041 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80006 | 200 | 160014 | 1 | 160000 | 100 |
160204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320010 | 80102 | 200 | 80007 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80006 | 200 | 160014 | 1 | 160000 | 100 |
160204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320010 | 80102 | 200 | 80007 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80041 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80006 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80040 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80006 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80006 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80006 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80006 | 200 | 160012 | 1 | 160000 | 100 |
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) |
160024 | 80090 | 80011 | 11 | 80000 | 0 | 10 | 80002 | 30 | 320005 | 80011 | 20 | 80006 | 20 | 0 | 160000 | 1 | 0 | 160000 | 10 |
160024 | 80034 | 80011 | 11 | 80000 | 0 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 0 | 160000 | 1 | 0 | 160000 | 10 |
160024 | 80034 | 80011 | 11 | 80000 | 0 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 0 | 160000 | 1 | 0 | 160000 | 10 |
160024 | 80034 | 80011 | 11 | 80000 | 0 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 0 | 160000 | 1 | 0 | 160000 | 10 |
160024 | 80034 | 80011 | 11 | 80000 | 0 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 0 | 160000 | 1 | 0 | 160000 | 10 |
160024 | 80034 | 80011 | 11 | 80000 | 0 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 0 | 160000 | 1 | 0 | 160000 | 10 |
160024 | 80034 | 80011 | 11 | 80000 | 0 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 0 | 160014 | 1 | 0 | 160000 | 10 |
160024 | 80034 | 80011 | 11 | 80000 | 0 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 0 | 160000 | 1 | 0 | 160000 | 10 |
160024 | 80034 | 80011 | 11 | 80000 | 0 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 0 | 160000 | 1 | 0 | 160000 | 10 |
160024 | 80034 | 80011 | 11 | 80000 | 0 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 0 | 160000 | 1 | 0 | 160000 | 10 |
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)
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) |
160204 | 160097 | 160125 | 101 | 160024 | 100 | 160027 | 0 | 300 | 0 | 640005 | 160101 | 200 | 0 | 160008 | 200 | 0 | 320016 | 1 | 0 | 160000 | 100 |
160204 | 160040 | 160101 | 101 | 160000 | 100 | 160001 | 0 | 300 | 0 | 640005 | 160101 | 200 | 0 | 160008 | 200 | 0 | 320016 | 1 | 0 | 160000 | 100 |
160204 | 160034 | 160101 | 101 | 160000 | 100 | 160001 | 0 | 300 | 0 | 640418 | 160203 | 200 | 0 | 160118 | 200 | 0 | 320184 | 1 | 0 | 160000 | 100 |
160204 | 160181 | 160174 | 101 | 160073 | 100 | 160078 | 0 | 300 | 0 | 640111 | 160127 | 200 | 0 | 160038 | 598 | 353 | 320072 | 193 | 118 | 160001 | 317 |
160204 | 160227 | 160197 | 101 | 160096 | 100 | 160101 | 0 | 300 | 0 | 640005 | 160101 | 200 | 0 | 160008 | 200 | 0 | 320016 | 1 | 0 | 160000 | 100 |
160204 | 160034 | 160101 | 101 | 160000 | 100 | 160001 | 0 | 300 | 0 | 640005 | 160101 | 200 | 0 | 160008 | 200 | 0 | 320072 | 1 | 0 | 160000 | 100 |
160204 | 160046 | 160101 | 101 | 160000 | 100 | 160001 | 1463 | 12058 | 9034 | 500896 | 128852 | 3160 | 1761 | 125261 | 200 | 0 | 320016 | 1 | 0 | 160000 | 100 |
160204 | 160034 | 160101 | 101 | 160000 | 100 | 160001 | 0 | 300 | 0 | 640418 | 160203 | 200 | 0 | 160121 | 200 | 0 | 320016 | 1 | 0 | 160000 | 100 |
160205 | 160653 | 160407 | 101 | 160306 | 100 | 160324 | 0 | 300 | 0 | 640005 | 160101 | 200 | 0 | 160008 | 200 | 0 | 320410 | 1 | 0 | 160000 | 100 |
160204 | 160034 | 160101 | 101 | 160000 | 100 | 160001 | 0 | 300 | 0 | 640005 | 160101 | 200 | 0 | 160008 | 200 | 0 | 320016 | 1 | 0 | 160000 | 100 |
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) |
160024 | 160040 | 160012 | 11 | 160001 | 10 | 160003 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 0 | 320000 | 1 | 0 | 160000 | 10 |
160024 | 160034 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 0 | 320000 | 1 | 0 | 160000 | 10 |
160024 | 160034 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 0 | 320000 | 1 | 0 | 160000 | 10 |
160024 | 160034 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 0 | 320000 | 1 | 0 | 160000 | 10 |
160025 | 160068 | 160028 | 11 | 160017 | 10 | 160021 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 0 | 320000 | 1 | 0 | 160000 | 10 |
160024 | 160034 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 0 | 320000 | 1 | 0 | 160000 | 10 |
160024 | 160034 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 0 | 320000 | 1 | 0 | 160000 | 10 |
160024 | 160034 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640078 | 160031 | 20 | 160028 | 20 | 0 | 320000 | 1 | 0 | 160000 | 10 |
160024 | 160034 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 0 | 320068 | 1 | 0 | 160000 | 10 |
160025 | 160068 | 160030 | 11 | 160019 | 10 | 160025 | 30 | 640083 | 160032 | 20 | 160036 | 3074 | 1841 | 320091 | 1451 | 840 | 160007 | 1674 |