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:
uqshrn2 v0.16b, v1.8h, #3
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:
uqshrn2 v0.16b, v1.8h, #3
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 | 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 | 769247 | 10131 | 200 | 10044 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 202 | 20092 | 2 | 10000 | 100 |
10204 | 30033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 768905 | 10100 | 200 | 10004 | 200 | 20008 | 1 | 10000 | 100 |
10204 | 30137 | 10121 | 105 | 10016 | 104 | 10066 | 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 | 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 |
10024 | 30033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 768905 | 10020 | 20 | 10000 | 20 | 20096 | 11 | 10000 | 10 |
Code:
uqshrn2 v0.16b, v0.8h, #3
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 | 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 |
Count: 8
Code:
movi v0.16b, 0 uqshrn2 v0.16b, v8.8h, #3 movi v1.16b, 0 uqshrn2 v1.16b, v8.8h, #3 movi v2.16b, 0 uqshrn2 v2.16b, v8.8h, #3 movi v3.16b, 0 uqshrn2 v3.16b, v8.8h, #3 movi v4.16b, 0 uqshrn2 v4.16b, v8.8h, #3 movi v5.16b, 0 uqshrn2 v5.16b, v8.8h, #3 movi v6.16b, 0 uqshrn2 v6.16b, v8.8h, #3 movi v7.16b, 0 uqshrn2 v7.16b, v8.8h, #3
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 | 40841 | 80254 | 101 | 80153 | 100 | 80157 | 300 | 320056 | 80113 | 200 | 80013 | 200 | 160024 | 1 | 160000 | 100 |
160204 | 40121 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 320056 | 80113 | 200 | 80013 | 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 | 320644 | 80260 | 200 | 80160 | 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 | 40099 | 80110 | 101 | 80009 | 100 | 80013 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160310 | 1 | 160000 | 100 |
160204 | 40096 | 80110 | 101 | 80009 | 100 | 80013 | 300 | 320052 | 80112 | 200 | 80012 | 200 | 160026 | 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.5056
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 | 43877 | 80019 | 11 | 80008 | 10 | 80012 | 30 | 320052 | 80022 | 20 | 80012 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 41207 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160096 | 1 | 160000 | 10 |
160024 | 40463 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 41682 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40445 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40440 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40440 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40444 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40442 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 40434 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 320000 | 80010 | 20 | 80000 | 20 | 160000 | 1 | 160000 | 10 |
Count: 16
Code:
uqshrn2 v0.16b, v16.8h, #3 uqshrn2 v1.16b, v16.8h, #3 uqshrn2 v2.16b, v16.8h, #3 uqshrn2 v3.16b, v16.8h, #3 uqshrn2 v4.16b, v16.8h, #3 uqshrn2 v5.16b, v16.8h, #3 uqshrn2 v6.16b, v16.8h, #3 uqshrn2 v7.16b, v16.8h, #3 uqshrn2 v8.16b, v16.8h, #3 uqshrn2 v9.16b, v16.8h, #3 uqshrn2 v10.16b, v16.8h, #3 uqshrn2 v11.16b, v16.8h, #3 uqshrn2 v12.16b, v16.8h, #3 uqshrn2 v13.16b, v16.8h, #3 uqshrn2 v14.16b, v16.8h, #3 uqshrn2 v15.16b, v16.8h, #3
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) | 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 | 80097 | 160105 | 101 | 160004 | 100 | 160008 | 300 | 640036 | 160108 | 200 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80045 | 160105 | 101 | 160004 | 100 | 160008 | 300 | 640036 | 160108 | 200 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 300 | 640036 | 160108 | 200 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 300 | 640036 | 160108 | 200 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160205 | 80071 | 160145 | 101 | 160044 | 100 | 160056 | 300 | 640036 | 160108 | 200 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 300 | 640036 | 160108 | 200 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 300 | 640036 | 160108 | 200 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 300 | 640036 | 160108 | 200 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 300 | 640036 | 160108 | 200 | 160012 | 200 | 320024 | 1 | 160000 | 100 |
160204 | 80035 | 160105 | 101 | 160004 | 100 | 160008 | 300 | 640036 | 160108 | 200 | 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 | 80130 | 160015 | 11 | 160004 | 10 | 160008 | 30 | 640036 | 160018 | 20 | 160012 | 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 | 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 | 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 |