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:
fcsel h0, h0, h1, lt
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 | 509248 | 10100 | 200 | 10006 | 200 | 30018 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10006 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 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) | 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) |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 2559 | 121685 | 46543 | 509683 | 16988 | 6136 | 2956 | 10055 | 20 | 30018 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 0 | 70 | 0 | 509248 | 10020 | 20 | 0 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 0 | 70 | 0 | 509248 | 10020 | 20 | 0 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 0 | 70 | 0 | 509248 | 10020 | 20 | 0 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 0 | 70 | 0 | 509248 | 10020 | 20 | 0 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 0 | 70 | 0 | 509248 | 10020 | 20 | 0 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 0 | 70 | 0 | 509248 | 10020 | 20 | 0 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 0 | 70 | 0 | 509248 | 10020 | 20 | 0 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 0 | 70 | 0 | 509248 | 10020 | 20 | 0 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 0 | 70 | 0 | 509248 | 10020 | 20 | 0 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
Code:
fcsel h0, h1, h0, lt
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 | 50248 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 50248 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 50248 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 50248 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 50248 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 50248 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 50248 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 50248 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 50248 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 50248 | 1000 | 1000 | 3000 | 1 | 1000 |
Code:
fcsel h0, h1, h0, lt
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 | 509248 | 10100 | 200 | 10006 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 20033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 509248 | 10100 | 200 | 10004 | 200 | 30012 | 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 | 509247 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 509248 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 509248 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 509248 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 509248 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 509248 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 509580 | 10054 | 20 | 10044 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 509248 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 509248 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 509248 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
Chain cycles: 2
Code:
fcsel h0, h1, h2, lt fcmp d0, d3
movi v0.16b, 1 movi v1.16b, 2 movi v2.16b, 3 movi v3.16b, 4
(non-fused SUB/CBNZ loop)
Result (median cycles for code, minus 2 chain cycles): 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) |
20204 | 40033 | 20201 | 201 | 20000 | 200 | 20000 | 700 | 1019248 | 20200 | 200 | 20004 | 200 | 50010 | 101 | 10000 | 100 |
20204 | 40033 | 20201 | 201 | 20000 | 200 | 20000 | 700 | 1019247 | 20200 | 200 | 20006 | 200 | 50015 | 101 | 10000 | 100 |
20204 | 40033 | 20201 | 201 | 20000 | 200 | 20000 | 700 | 1019248 | 20200 | 200 | 20004 | 200 | 50010 | 101 | 10000 | 100 |
20204 | 40033 | 20201 | 201 | 20000 | 200 | 20000 | 700 | 1019248 | 20200 | 200 | 20004 | 200 | 50010 | 101 | 10000 | 100 |
20204 | 40033 | 20201 | 201 | 20000 | 200 | 20000 | 700 | 1019248 | 20200 | 200 | 20004 | 200 | 50010 | 101 | 10000 | 100 |
20204 | 40033 | 20201 | 201 | 20000 | 200 | 20000 | 700 | 1019248 | 20200 | 200 | 20004 | 200 | 50010 | 101 | 10000 | 100 |
20204 | 40033 | 20201 | 201 | 20000 | 200 | 20000 | 700 | 1019248 | 20200 | 200 | 20004 | 200 | 50010 | 101 | 10000 | 100 |
20204 | 40033 | 20201 | 201 | 20000 | 200 | 20000 | 700 | 1019248 | 20200 | 200 | 20004 | 200 | 50010 | 101 | 10000 | 100 |
20204 | 40033 | 20201 | 201 | 20000 | 200 | 20000 | 700 | 1019248 | 20200 | 200 | 20004 | 202 | 50120 | 102 | 10000 | 100 |
20204 | 40033 | 20201 | 201 | 20000 | 200 | 20000 | 700 | 1019248 | 20200 | 200 | 20004 | 200 | 50010 | 101 | 10000 | 100 |
Result (median cycles for code, minus 2 chain cycles): 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) |
20024 | 40033 | 20021 | 21 | 20000 | 20 | 20000 | 70 | 1019246 | 20020 | 20 | 20004 | 20 | 50015 | 11 | 10000 | 10 |
20024 | 40033 | 20021 | 21 | 20000 | 20 | 20000 | 70 | 1019248 | 20020 | 20 | 20000 | 20 | 50000 | 11 | 10000 | 10 |
20025 | 40066 | 20029 | 21 | 20008 | 20 | 20034 | 70 | 1019248 | 20020 | 20 | 20000 | 20 | 50000 | 11 | 10000 | 10 |
20024 | 40033 | 20021 | 21 | 20000 | 20 | 20000 | 70 | 1019248 | 20020 | 20 | 20000 | 20 | 50000 | 11 | 10000 | 10 |
20024 | 40033 | 20021 | 21 | 20000 | 20 | 20000 | 70 | 1019248 | 20020 | 20 | 20000 | 20 | 50000 | 11 | 10000 | 10 |
20024 | 40033 | 20021 | 21 | 20000 | 20 | 20000 | 70 | 1019248 | 20020 | 20 | 20000 | 20 | 50000 | 11 | 10000 | 10 |
20024 | 40033 | 20021 | 21 | 20000 | 20 | 20000 | 70 | 1019248 | 20020 | 20 | 20000 | 20 | 50000 | 11 | 10000 | 10 |
20024 | 40033 | 20021 | 21 | 20000 | 20 | 20000 | 70 | 1019248 | 20020 | 20 | 20000 | 20 | 50000 | 11 | 10000 | 10 |
20024 | 40033 | 20021 | 21 | 20000 | 20 | 20000 | 70 | 1019248 | 20020 | 20 | 20000 | 20 | 50000 | 11 | 10000 | 10 |
20024 | 40033 | 20021 | 21 | 20000 | 20 | 20000 | 70 | 1019248 | 20020 | 20 | 20000 | 20 | 50000 | 11 | 10000 | 10 |
Count: 8
Code:
fcsel h0, h8, h9, lt fcsel h1, h8, h9, lt fcsel h2, h8, h9, lt fcsel h3, h8, h9, lt fcsel h4, h8, h9, lt fcsel h5, h8, h9, lt fcsel h6, h8, h9, lt fcsel h7, h8, h9, lt
movi v8.16b, 9 movi v9.16b, 10
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.5004
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) |
80204 | 40075 | 80107 | 101 | 80006 | 100 | 80010 | 300 | 400052 | 80110 | 200 | 80014 | 200 | 240042 | 1 | 80000 | 100 |
80204 | 40045 | 80107 | 101 | 80006 | 100 | 80010 | 300 | 422113 | 80200 | 200 | 80112 | 200 | 240039 | 1 | 80000 | 100 |
80204 | 40037 | 80105 | 101 | 80004 | 100 | 80009 | 300 | 397652 | 80110 | 200 | 80014 | 200 | 240036 | 1 | 80000 | 100 |
80204 | 40035 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 398452 | 80110 | 200 | 80014 | 200 | 240036 | 1 | 80000 | 100 |
80205 | 40071 | 80142 | 101 | 80041 | 100 | 80056 | 300 | 399242 | 80108 | 200 | 80012 | 200 | 240036 | 1 | 80000 | 100 |
80204 | 40035 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 399242 | 80108 | 200 | 80012 | 200 | 240036 | 1 | 80000 | 100 |
80204 | 40035 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 424489 | 80156 | 200 | 80064 | 200 | 240036 | 1 | 80000 | 100 |
80204 | 40035 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 399242 | 80108 | 200 | 80012 | 200 | 240036 | 1 | 80000 | 100 |
80204 | 40035 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 399242 | 80108 | 200 | 80012 | 200 | 240036 | 1 | 80000 | 100 |
80204 | 40035 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 399242 | 80108 | 200 | 80012 | 200 | 240036 | 1 | 80000 | 100 |
Result (median cycles for code divided by count): 0.5004
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) |
80025 | 40152 | 80062 | 21 | 80041 | 20 | 80053 | 68 | 376000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40035 | 80021 | 21 | 80000 | 20 | 80000 | 65 | 384000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40035 | 80021 | 21 | 80000 | 20 | 80000 | 65 | 384000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40035 | 80021 | 21 | 80000 | 20 | 80000 | 65 | 384000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40035 | 80021 | 21 | 80000 | 20 | 80000 | 65 | 384000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40035 | 80021 | 21 | 80000 | 20 | 80000 | 65 | 384000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40035 | 80021 | 21 | 80000 | 20 | 80000 | 65 | 384000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40035 | 80021 | 21 | 80000 | 20 | 80000 | 65 | 384000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40035 | 80021 | 21 | 80000 | 20 | 80000 | 65 | 384000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40035 | 80021 | 21 | 80000 | 20 | 80000 | 65 | 384000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |