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 s0, s1, #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 s0, s1, #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 | 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 | 307 | 1019580 | 20136 | 202 | 20045 | 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 | 20006 | 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 |
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 |
Chain cycles: 2
Code:
fccmp s0, s1, #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) | 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) |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 0 | 300 | 0 | 1019248 | 20100 | 200 | 0 | 20006 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 0 | 300 | 0 | 1019248 | 20100 | 200 | 0 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 0 | 300 | 0 | 1019248 | 20100 | 200 | 0 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 0 | 300 | 0 | 1019248 | 20100 | 200 | 0 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 0 | 300 | 0 | 1019248 | 20100 | 200 | 0 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 0 | 300 | 0 | 1019248 | 20100 | 200 | 0 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 0 | 300 | 0 | 1019248 | 20100 | 200 | 0 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 0 | 300 | 0 | 1019248 | 20100 | 200 | 0 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 0 | 300 | 0 | 1019248 | 20100 | 200 | 0 | 20004 | 200 | 60012 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 100 | 20000 | 0 | 300 | 0 | 1019248 | 20100 | 200 | 0 | 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) | 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) |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 0 | 30 | 0 | 1019248 | 20010 | 20 | 0 | 20004 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 0 | 30 | 0 | 1019580 | 20044 | 20 | 0 | 20048 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 0 | 30 | 0 | 1019248 | 20010 | 20 | 0 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 0 | 30 | 0 | 1019248 | 20010 | 20 | 0 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 0 | 30 | 0 | 1019248 | 20010 | 20 | 0 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 0 | 30 | 0 | 1019248 | 20010 | 20 | 0 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 0 | 30 | 0 | 1019248 | 20010 | 20 | 0 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 0 | 30 | 0 | 1019248 | 20010 | 20 | 0 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
20026 | 40099 | 20027 | 11 | 20016 | 10 | 20068 | 0 | 30 | 0 | 1019580 | 20044 | 20 | 0 | 20048 | 20 | 60018 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 0 | 30 | 0 | 1019248 | 20010 | 20 | 0 | 20000 | 20 | 60000 | 1 | 10000 | 10 |
Code:
fccmp s0, s1, #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 simd uop inputs (81) | ? int output thing (e9) | ? int retires (ef) |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249768 | 10200 | 200 | 10006 | 200 | 30018 | 101 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 30012 | 101 | 100 |
10205 | 20066 | 10209 | 201 | 10008 | 200 | 10021 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 30012 | 101 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 30012 | 101 | 100 |
10205 | 20066 | 10211 | 203 | 10008 | 202 | 10021 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 30012 | 101 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249768 | 10200 | 200 | 10006 | 200 | 30018 | 101 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 30012 | 101 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 30012 | 101 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 30012 | 101 | 100 |
10204 | 20033 | 10201 | 201 | 10000 | 200 | 10000 | 700 | 249769 | 10200 | 200 | 10004 | 200 | 30012 | 101 | 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 | 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 | 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 | 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 s0, s1, #0, lt ands xzr, xzr, xzr fccmp s0, s1, #0, lt ands xzr, xzr, xzr fccmp s0, s1, #0, lt ands xzr, xzr, xzr fccmp s0, s1, #0, lt ands xzr, xzr, xzr fccmp s0, s1, #0, lt ands xzr, xzr, xzr fccmp s0, s1, #0, lt ands xzr, xzr, xzr fccmp s0, s1, #0, lt ands xzr, xzr, xzr fccmp s0, s1, #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) | 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) | ? int retires (ef) |
160204 | 85945 | 160107 | 80105 | 80002 | 80106 | 80005 | 0 | 240321 | 0 | 558365 | 160114 | 80207 | 0 | 80007 | 200 | 240021 | 80008 | 100 |
160204 | 84725 | 160111 | 80108 | 80003 | 80107 | 80007 | 0 | 240321 | 0 | 476971 | 160113 | 80207 | 0 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 80106 | 80005 | 0 | 240318 | 0 | 560031 | 160111 | 80206 | 0 | 80006 | 200 | 240018 | 80008 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 80106 | 80005 | 0 | 240318 | 0 | 560031 | 160111 | 80206 | 0 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 80106 | 80005 | 0 | 240318 | 0 | 560031 | 160111 | 80206 | 0 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 80106 | 80005 | 0 | 240318 | 0 | 560031 | 160111 | 80206 | 0 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 80106 | 80005 | 0 | 240378 | 0 | 560172 | 160152 | 80226 | 0 | 80026 | 200 | 240018 | 80008 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 80106 | 80005 | 0 | 240318 | 0 | 560031 | 160111 | 80206 | 0 | 80006 | 200 | 240075 | 80026 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 80106 | 80005 | 0 | 240318 | 0 | 560031 | 160111 | 80206 | 0 | 80006 | 200 | 240018 | 80005 | 100 |
160204 | 85886 | 160107 | 80105 | 80002 | 80106 | 80005 | 0 | 240318 | 0 | 560031 | 160111 | 80206 | 0 | 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 ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
160024 | 85713 | 160017 | 80015 | 80002 | 80016 | 80005 | 240030 | 551694 | 160010 | 80020 | 80000 | 20 | 0 | 240000 | 80001 | 0 | 0 | 10 |
160024 | 85583 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476419 | 160010 | 80020 | 80000 | 20 | 0 | 240000 | 80001 | 0 | 0 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476419 | 160010 | 80020 | 80000 | 20 | 0 | 240000 | 80001 | 0 | 0 | 10 |
160024 | 83858 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476419 | 160010 | 80020 | 80000 | 20 | 0 | 240000 | 80001 | 0 | 0 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476419 | 160010 | 80020 | 80000 | 20 | 0 | 240000 | 80001 | 0 | 0 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240108 | 476555 | 160060 | 80046 | 80025 | 20 | 0 | 240075 | 80025 | 0 | 0 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476208 | 160010 | 80020 | 80000 | 20 | 0 | 240000 | 80001 | 0 | 0 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476419 | 160010 | 80020 | 80000 | 20 | 0 | 240000 | 80001 | 0 | 0 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476419 | 160010 | 80020 | 80000 | 20 | 0 | 240000 | 80001 | 0 | 0 | 10 |
160024 | 83856 | 160011 | 80011 | 80000 | 80010 | 80000 | 240030 | 476419 | 160010 | 80020 | 80000 | 20 | 0 | 240000 | 80001 | 0 | 0 | 10 |