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:
fccmp d0, d1, #0, lt
mov x0, 1 mov x1, 2 mov x2, 3 mov x3, 4
(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) |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 3000 | 1 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 3000 | 1 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 3000 | 1 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 3000 | 1 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 3000 | 1 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 3000 | 1 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 3000 | 1 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 3000 | 1 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 3000 | 1 |
1004 | 2033 | 1001 | 1 | 1000 | 1000 | 24769 | 1000 | 1000 | 3000 | 1 |
Chain cycles: 2
Code:
fccmp d0, d1, #0, lt fcsel d0, d2, d3, eq
mov x0, 1 mov x1, 2 mov x2, 3 mov x3, 4
(fused SUBS/B.cc 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 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20006 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 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 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20025 | 40066 | 20019 | 11 | 20008 | 10 | 20034 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20025 | 40066 | 20019 | 11 | 20008 | 10 | 20034 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20025 | 40066 | 20019 | 11 | 20008 | 10 | 20034 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60018 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
Chain cycles: 2
Code:
fccmp d0, d1, #0, lt fcsel d1, d2, d3, eq
mov x0, 1 mov x1, 2 mov x2, 3 mov x3, 4
(fused SUBS/B.cc 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 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20006 | 200 | 60018 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019580 | 20134 | 200 | 20044 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 60012 | 1 | 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 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60144 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
Code:
fccmp d0, d1, #0, lt
mov x0, 1 mov x1, 2 mov x2, 3 mov x3, 4
(non-fused SUB/CBNZ 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 ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249768 | 10200 | 200 | 10006 | 200 | 0 | 30012 | 101 | 0 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 0 | 30018 | 101 | 0 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249768 | 10200 | 200 | 10006 | 200 | 0 | 30012 | 101 | 0 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 0 | 30012 | 101 | 0 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 0 | 30012 | 101 | 0 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 0 | 30012 | 101 | 0 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 0 | 30012 | 101 | 0 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 0 | 30012 | 101 | 0 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 0 | 30012 | 101 | 0 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 0 | 30012 | 101 | 0 | 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) | ? int retires (ef) |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249768 | 10020 | 20 | 10006 | 20 | 30000 | 11 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 67 | 249907 | 10041 | 20 | 10032 | 20 | 30000 | 11 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10 |
10024 | 20033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 249769 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10 |
Count: 8
Code:
ands xzr, xzr, xzr fccmp d0, d1, #0, lt ands xzr, xzr, xzr fccmp d0, d1, #0, lt ands xzr, xzr, xzr fccmp d0, d1, #0, lt ands xzr, xzr, xzr fccmp d0, d1, #0, lt ands xzr, xzr, xzr fccmp d0, d1, #0, lt ands xzr, xzr, xzr fccmp d0, d1, #0, lt ands xzr, xzr, xzr fccmp d0, d1, #0, lt ands xzr, xzr, xzr fccmp d0, d1, #0, lt
movi v0.16b, 1 movi v1.16b, 2
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 1.0736
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 simd uop inputs (81) | ? int output thing (e9) | ? int retires (ef) |
160204 | 85910 | 160107 | 80105 | 80002 | 0 | 80106 | 80005 | 240321 | 560037 | 160114 | 80207 | 80007 | 200 | 240021 | 80008 | 100 |
160204 | 83941 | 160111 | 80108 | 80003 | 0 | 80107 | 80006 | 240321 | 560045 | 160114 | 80207 | 80007 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 0 | 80106 | 80005 | 240318 | 560031 | 160111 | 80206 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 0 | 80106 | 80005 | 240318 | 560031 | 160111 | 80206 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 0 | 80106 | 80005 | 240318 | 560031 | 160111 | 80206 | 80006 | 200 | 240138 | 80047 | 100 |
160204 | 85896 | 160107 | 80105 | 80002 | 0 | 80106 | 80005 | 240321 | 476896 | 160113 | 80207 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 0 | 80106 | 80005 | 240318 | 560031 | 160111 | 80206 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 0 | 80106 | 80005 | 240318 | 560031 | 160111 | 80206 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 0 | 80106 | 80005 | 240318 | 560031 | 160111 | 80206 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 0 | 80106 | 80005 | 240318 | 560031 | 160111 | 80206 | 80006 | 200 | 240018 | 80005 | 100 |
Result (median cycles for code divided by count): 1.0482
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) | ? int retires (ef) |
160024 | 85727 | 160017 | 80015 | 80002 | 80016 | 80005 | 240030 | 551697 | 160010 | 80020 | 80000 | 20 | 240000 | 80001 | 10 |
160024 | 85573 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476921 | 160010 | 80020 | 80000 | 20 | 240000 | 80001 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476417 | 160010 | 80020 | 80000 | 20 | 240000 | 80001 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476417 | 160010 | 80020 | 80000 | 20 | 240000 | 80001 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476417 | 160010 | 80020 | 80000 | 20 | 240000 | 80001 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476417 | 160010 | 80020 | 80000 | 20 | 240075 | 80025 | 10 |
160024 | 83871 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476417 | 160010 | 80020 | 80000 | 20 | 240000 | 80001 | 10 |
160024 | 83861 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476417 | 160010 | 80020 | 80000 | 20 | 240000 | 80001 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476417 | 160010 | 80020 | 80000 | 20 | 240000 | 80001 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476417 | 160010 | 80020 | 80000 | 20 | 240000 | 80001 | 10 |