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:
fcmpe h0, h1
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 | 1034 | 1001 | 1 | 1000 | 1000 | 4000 | 1000 | 1000 | 2000 | 1 |
1004 | 1034 | 1001 | 1 | 1000 | 1000 | 4000 | 1000 | 1000 | 2000 | 1 |
1004 | 1034 | 1001 | 1 | 1000 | 1000 | 4000 | 1000 | 1000 | 2000 | 1 |
1004 | 1034 | 1001 | 1 | 1000 | 1000 | 4000 | 1000 | 1000 | 2000 | 1 |
1004 | 1034 | 1001 | 1 | 1000 | 1000 | 4000 | 1000 | 1000 | 2000 | 1 |
1004 | 1034 | 1001 | 1 | 1000 | 1000 | 4000 | 1000 | 1000 | 2000 | 1 |
1004 | 1034 | 1001 | 1 | 1000 | 1000 | 4000 | 1000 | 1000 | 2000 | 1 |
1004 | 1034 | 1001 | 1 | 1000 | 1000 | 4000 | 1000 | 1000 | 2000 | 1 |
1004 | 1034 | 1001 | 1 | 1000 | 1000 | 4000 | 1000 | 1000 | 2000 | 1 |
1004 | 1034 | 1001 | 1 | 1000 | 1000 | 4000 | 1000 | 1000 | 2000 | 1 |
Chain cycles: 2
Code:
fcmpe h0, h1 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) | 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) | ? simd retires (ee) | ? int retires (ef) |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20006 | 200 | 50015 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019580 | 20134 | 200 | 20048 | 200 | 50015 | 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 | 50015 | 1 | 10000 | 10 |
20025 | 40066 | 20019 | 11 | 20008 | 10 | 20034 | 30 | 1019248 | 20010 | 20 | 20004 | 20 | 50010 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
Chain cycles: 2
Code:
fcmpe h0, h1 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) | 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) | ? simd retires (ee) | ? int retires (ef) |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20006 | 200 | 50015 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 1 | 10000 | 100 |
20204 | 40033 | 20101 | 101 | 20000 | 0 | 100 | 20000 | 300 | 1019248 | 20100 | 200 | 20004 | 200 | 50010 | 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 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40136 | 20035 | 11 | 20024 | 10 | 20072 | 30 | 1019248 | 20010 | 20 | 20000 | 20 | 50000 | 1 | 10000 | 10 |
20024 | 40033 | 20011 | 11 | 20000 | 10 | 20000 | 30 | 1020312 | 20082 | 20 | 20081 | 20 | 50000 | 1 | 10000 | 10 |
Count: 8
Code:
fcmpe h0, h1 fcmpe h0, h1 fcmpe h0, h1 fcmpe h0, h1 fcmpe h0, h1 fcmpe h0, h1 fcmpe h0, h1 fcmpe h0, h1
movi v0.16b, 1 movi v1.16b, 2
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 1.0004
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) |
80204 | 80048 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320014 | 80103 | 200 | 80010 | 200 | 0 | 160016 | 1 | 0 | 0 | 100 |
80204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80008 | 200 | 0 | 160016 | 1 | 0 | 0 | 100 |
80204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80008 | 200 | 0 | 160016 | 1 | 0 | 0 | 100 |
80204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320092 | 80124 | 200 | 80036 | 200 | 0 | 160016 | 1 | 0 | 0 | 100 |
80204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80008 | 200 | 0 | 160016 | 1 | 0 | 0 | 100 |
80204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80008 | 200 | 0 | 160016 | 1 | 0 | 0 | 100 |
80204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80008 | 200 | 0 | 160016 | 1 | 0 | 0 | 100 |
80204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80008 | 200 | 0 | 160016 | 1 | 0 | 0 | 100 |
80204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80008 | 200 | 0 | 160016 | 1 | 0 | 0 | 100 |
80204 | 80034 | 80101 | 101 | 80000 | 100 | 80001 | 300 | 320005 | 80101 | 200 | 80008 | 200 | 0 | 160016 | 1 | 0 | 0 | 100 |
Result (median cycles for code divided by count): 1.0004
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) |
80024 | 80034 | 80022 | 21 | 80001 | 20 | 80003 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 160078 | 11 | 10 |
80024 | 80034 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 160000 | 11 | 10 |
80025 | 80075 | 80039 | 21 | 80018 | 20 | 80024 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 160072 | 11 | 10 |
80024 | 80042 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 160000 | 11 | 10 |
80024 | 80034 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 160000 | 11 | 10 |
80024 | 80034 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 160000 | 11 | 10 |
80024 | 80034 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 160000 | 11 | 10 |
80024 | 80034 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 160056 | 11 | 10 |
80024 | 80034 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 160000 | 11 | 10 |
80024 | 80034 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 160000 | 11 | 10 |