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:
uadalp v0.8h, v1.16b
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 | 3033 | 1001 | 1 | 1000 | 1000 | 75905 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 3033 | 1001 | 1 | 1000 | 1000 | 75905 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 3033 | 1001 | 1 | 1000 | 1000 | 75905 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 3033 | 1001 | 1 | 1000 | 1000 | 75905 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 3033 | 1001 | 1 | 1000 | 1000 | 75905 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 3033 | 1001 | 1 | 1000 | 1000 | 75905 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 3033 | 1001 | 1 | 1000 | 1000 | 75905 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 3033 | 1001 | 1 | 1000 | 1000 | 75905 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 3033 | 1001 | 1 | 1000 | 1000 | 75905 | 1000 | 1000 | 2000 | 1 | 1000 |
1004 | 3033 | 1001 | 1 | 1000 | 1000 | 75905 | 1000 | 1000 | 2000 | 1 | 1000 |
Code:
uadalp v0.8h, v1.16b
movi v0.16b, 1 movi v1.16b, 2
(fused SUBS/B.cc loop)
Result (median cycles for code): 3.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 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10006 | 200 | 20012 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10006 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30240 | 10136 | 104 | 10032 | 103 | 10132 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 769247 | 10131 | 200 | 10044 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
Result (median cycles for code): 3.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 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10004 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
Code:
uadalp v0.8h, v0.16b
movi v0.16b, 1
(fused SUBS/B.cc loop)
Result (median cycles for code): 3.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 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
Result (median cycles for code): 3.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 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10004 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20082 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20000 | 11 | 10000 | 10 |
Count: 8
Code:
movi v0.16b, 0 uadalp v0.8h, v8.16b movi v1.16b, 0 uadalp v1.8h, v8.16b movi v2.16b, 0 uadalp v2.8h, v8.16b movi v3.16b, 0 uadalp v3.8h, v8.16b movi v4.16b, 0 uadalp v4.8h, v8.16b movi v5.16b, 0 uadalp v5.8h, v8.16b movi v6.16b, 0 uadalp v6.8h, v8.16b movi v7.16b, 0 uadalp v7.8h, v8.16b
movi v8.16b, 9
(fused SUBS/B.cc loop)
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) | 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 | 40465 | 80110 | 101 | 80009 | 100 | 80013 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160026 | 1 | 160000 | 100 |
160204 | 40110 | 80110 | 101 | 80009 | 100 | 80013 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160024 | 1 | 160000 | 100 |
160204 | 40086 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160024 | 1 | 160000 | 100 |
160204 | 40086 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160024 | 1 | 160000 | 100 |
160204 | 40086 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160024 | 1 | 160000 | 100 |
160205 | 40122 | 80145 | 101 | 80044 | 100 | 80048 | 300 | 320056 | 80113 | 200 | 80013 | 200 | 160026 | 1 | 160000 | 100 |
160204 | 40086 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160024 | 1 | 160000 | 100 |
160204 | 40086 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160024 | 1 | 160000 | 100 |
160204 | 40086 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160024 | 1 | 160000 | 100 |
160204 | 40086 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160024 | 1 | 160000 | 100 |
Result (median cycles for code divided by count): 0.5052
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) |
160024 | 43804 | 80020 | 11 | 80009 | 10 | 80013 | 30 | 320192 | 80057 | 20 | 80047 | 20 | 160024 | 1 | 160000 | 10 |
160024 | 41275 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40425 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40435 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40423 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40412 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40402 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40405 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40412 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40400 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
Count: 16
Code:
uadalp v0.8h, v16.16b uadalp v1.8h, v16.16b uadalp v2.8h, v16.16b uadalp v3.8h, v16.16b uadalp v4.8h, v16.16b uadalp v5.8h, v16.16b uadalp v6.8h, v16.16b uadalp v7.8h, v16.16b uadalp v8.8h, v16.16b uadalp v9.8h, v16.16b uadalp v10.8h, v16.16b uadalp v11.8h, v16.16b uadalp v12.8h, v16.16b uadalp v13.8h, v16.16b uadalp v14.8h, v16.16b uadalp v15.8h, v16.16b
movi v16.16b, 17
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.5002
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 simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) | ? int retires (ef) |
160204 | 80053 | 160107 | 101 | 160006 | 100 | 160010 | 0 | 300 | 0 | 640384 | 160201 | 200 | 0 | 160115 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80045 | 160105 | 101 | 160004 | 100 | 160008 | 0 | 300 | 0 | 640036 | 160108 | 200 | 0 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 0 | 300 | 0 | 640036 | 160108 | 200 | 0 | 160012 | 200 | 320224 | 1 | 160000 | 100 |
160204 | 80045 | 160105 | 101 | 160004 | 100 | 160008 | 0 | 300 | 0 | 640036 | 160108 | 200 | 0 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80044 | 160105 | 101 | 160004 | 100 | 160008 | 0 | 300 | 0 | 640036 | 160108 | 200 | 0 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 0 | 300 | 0 | 640036 | 160108 | 200 | 0 | 160012 | 200 | 320028 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 0 | 300 | 0 | 640036 | 160108 | 200 | 0 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 0 | 300 | 0 | 640036 | 160108 | 200 | 0 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 0 | 300 | 0 | 640836 | 160308 | 200 | 0 | 160212 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 0 | 300 | 0 | 640036 | 160108 | 200 | 0 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
Result (median cycles for code divided by count): 0.5002
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) |
160024 | 80199 | 160015 | 11 | 160004 | 10 | 160008 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 320126 | 1 | 160000 | 10 |
160025 | 80098 | 160053 | 11 | 160042 | 10 | 160054 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 320000 | 1 | 160000 | 10 |
160024 | 80035 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 320000 | 1 | 160000 | 10 |
160024 | 80035 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 320000 | 1 | 160000 | 10 |
160024 | 80035 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 320000 | 1 | 160000 | 10 |
160024 | 80037 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640200 | 160062 | 20 | 160062 | 20 | 320000 | 1 | 160000 | 10 |
160024 | 80035 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 320000 | 1 | 160000 | 10 |
160024 | 80035 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640200 | 160062 | 20 | 160062 | 20 | 320000 | 1 | 160000 | 10 |
160024 | 80035 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 320000 | 1 | 160000 | 10 |
160024 | 80035 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 640000 | 160010 | 20 | 160000 | 20 | 320000 | 1 | 160000 | 10 |