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:
mrs x0, cntpct_el0
(no loop instructions)
Retires: 1.000
Issues: 1.000
Integer unit issues: 1.000
Load/store unit issues: 0.000
SIMD/FP unit issues: 0.000
retire uop (01) | cycle (02) | 03 | 1e | 3a | 3f | 51 | schedule uop (52) | schedule int uop (53) | 6d | 6e | map stall dispatch (70) | map rewind (75) | map stall (76) | 82 | 83 | flush restart other nonspec (84) | 85 | inst all (8c) | l1d tlb access (a0) | l1d cache writeback (a8) | ac | cf | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | ? int output thing (e9) | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
1004 | 1034 | 8 | 0 | 1 | 1019 | 26 | 1000 | 1000 | 1034 | 1034 | 865 | 3 | 882 | 1034 | 164 | 1 | 1 | 1001 | 0 | 1 | 0 | 75 | 2 | 26 | 2 | 2 | 1031 | 1000 | 1000 | 1035 | 1035 | 1035 | 1035 | 1035 |
1004 | 1034 | 8 | 0 | 1 | 1019 | 26 | 1000 | 1000 | 1034 | 1034 | 865 | 3 | 882 | 1034 | 164 | 1 | 1 | 1001 | 0 | 0 | 3 | 75 | 2 | 26 | 2 | 2 | 1031 | 1000 | 1000 | 1035 | 1035 | 1035 | 1035 | 1035 |
1004 | 1034 | 8 | 0 | 1 | 1019 | 26 | 1000 | 1000 | 1034 | 1034 | 865 | 3 | 882 | 1034 | 164 | 1 | 1 | 1001 | 0 | 0 | 0 | 75 | 2 | 26 | 2 | 2 | 1031 | 1000 | 1000 | 1035 | 1035 | 1035 | 1035 | 1035 |
1004 | 1034 | 8 | 0 | 1 | 1019 | 26 | 1000 | 1000 | 1034 | 1034 | 865 | 3 | 882 | 1034 | 164 | 1 | 1 | 1001 | 0 | 0 | 0 | 75 | 2 | 26 | 2 | 2 | 1031 | 1000 | 1000 | 1035 | 1035 | 1035 | 1035 | 1035 |
1004 | 1034 | 8 | 0 | 1 | 1019 | 26 | 1000 | 1000 | 1034 | 1034 | 865 | 3 | 882 | 1034 | 164 | 1 | 1 | 1001 | 0 | 1 | 0 | 75 | 2 | 26 | 2 | 2 | 1031 | 1000 | 1000 | 1035 | 1035 | 1035 | 1035 | 1035 |
1004 | 1034 | 8 | 0 | 1 | 1019 | 26 | 1000 | 1000 | 1034 | 1034 | 865 | 3 | 882 | 1034 | 164 | 1 | 1 | 1001 | 0 | 0 | 0 | 75 | 2 | 26 | 2 | 2 | 1031 | 1000 | 1000 | 1035 | 1035 | 1035 | 1035 | 1035 |
1004 | 1034 | 7 | 0 | 1 | 1019 | 26 | 1000 | 1000 | 1034 | 1034 | 865 | 3 | 882 | 1034 | 164 | 1 | 1 | 1001 | 0 | 0 | 0 | 75 | 2 | 26 | 2 | 2 | 1031 | 1000 | 1000 | 1035 | 1035 | 1035 | 1035 | 1035 |
1004 | 1034 | 8 | 0 | 1 | 1019 | 26 | 1000 | 1000 | 1034 | 1034 | 865 | 3 | 882 | 1034 | 164 | 1 | 1 | 1001 | 0 | 0 | 0 | 75 | 2 | 26 | 2 | 2 | 1031 | 1000 | 1000 | 1035 | 1035 | 1035 | 1035 | 1035 |
1004 | 1034 | 8 | 0 | 1 | 1019 | 26 | 1000 | 1000 | 1034 | 1034 | 865 | 3 | 882 | 1034 | 164 | 1 | 1 | 1001 | 0 | 0 | 0 | 75 | 2 | 26 | 2 | 2 | 1031 | 1000 | 1000 | 1035 | 1035 | 1035 | 1035 | 1035 |
1004 | 1034 | 8 | 0 | 1 | 1019 | 26 | 1000 | 1000 | 1034 | 1034 | 865 | 3 | 882 | 1034 | 164 | 1 | 1 | 1001 | 0 | 0 | 0 | 75 | 2 | 26 | 2 | 2 | 1031 | 1000 | 1000 | 1035 | 1035 | 1035 | 1035 | 1035 |
Count: 8
Code:
mrs x0, cntpct_el0 mrs x1, cntpct_el0 mrs x2, cntpct_el0 mrs x3, cntpct_el0 mrs x4, cntpct_el0 mrs x5, cntpct_el0 mrs x6, cntpct_el0 mrs x7, cntpct_el0
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 1.0004
retire uop (01) | cycle (02) | 03 | mmu table walk data (08) | l2 tlb miss data (0b) | 18 | 19 | 1e | 1f | 3f | 51 | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | 60 | 69 | 6a | 6d | 6e | map stall dispatch (70) | map rewind (75) | map stall (76) | dispatch uop (78) | map int uop (7c) | map int uop inputs (7f) | 82 | 83 | flush restart other nonspec (84) | 85 | inst all (8c) | inst branch (8d) | inst branch taken (90) | inst branch cond (94) | inst int alu (97) | 9f | l1d tlb miss (a1) | ld unit uop (a6) | l1d cache writeback (a8) | ac | c2 | cf | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | ? int output thing (e9) | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
80204 | 80075 | 620 | 0 | 0 | 0 | 0 | 0 | 0 | 80020 | 26 | 80100 | 80100 | 100 | 500 | 0 | 49 | 76955 | 80035 | 80035 | 69966 | 3 | 69984 | 100 | 200 | 200 | 80035 | 164 | 1 | 1 | 80201 | 100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 0 | 0 | 5110 | 2 | 25 | 2 | 2 | 80032 | 80000 | 80100 | 80036 | 80036 | 80036 | 80036 | 80036 |
80204 | 80035 | 620 | 0 | 0 | 0 | 0 | 0 | 0 | 80020 | 26 | 80100 | 80100 | 100 | 500 | 0 | 49 | 77131 | 80035 | 80035 | 69966 | 3 | 69984 | 100 | 200 | 200 | 80035 | 164 | 1 | 1 | 80201 | 100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 3 | 0 | 5110 | 2 | 25 | 2 | 2 | 80032 | 80000 | 80100 | 80036 | 80036 | 80036 | 80036 | 80036 |
80204 | 80035 | 620 | 0 | 0 | 0 | 0 | 0 | 0 | 80020 | 26 | 80100 | 80100 | 100 | 500 | 0 | 49 | 76955 | 80035 | 80035 | 69966 | 3 | 69984 | 100 | 200 | 200 | 80035 | 164 | 1 | 1 | 80201 | 100 | 99 | 100 | 100 | 100 | 0 | 0 | 1 | 0 | 0 | 5110 | 2 | 25 | 2 | 2 | 80032 | 80000 | 80100 | 80036 | 80036 | 80036 | 80036 | 80036 |
80204 | 80035 | 621 | 0 | 0 | 0 | 0 | 0 | 0 | 80020 | 26 | 80100 | 80100 | 100 | 500 | 0 | 49 | 76955 | 80035 | 80035 | 69966 | 3 | 69984 | 100 | 200 | 200 | 80035 | 164 | 1 | 1 | 80201 | 100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 0 | 0 | 5110 | 2 | 25 | 2 | 2 | 80032 | 80000 | 80100 | 80036 | 80036 | 80036 | 80036 | 80036 |
80204 | 80035 | 620 | 0 | 0 | 0 | 0 | 0 | 0 | 80020 | 26 | 80100 | 80100 | 100 | 500 | 0 | 49 | 73919 | 80035 | 80035 | 69966 | 3 | 69984 | 100 | 200 | 200 | 80035 | 164 | 1 | 1 | 80201 | 100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 3 | 0 | 5110 | 2 | 25 | 2 | 2 | 80032 | 80000 | 80100 | 80036 | 80036 | 80036 | 80036 | 80036 |
80204 | 80035 | 620 | 0 | 0 | 0 | 0 | 0 | 0 | 80020 | 26 | 80100 | 80100 | 100 | 500 | 0 | 49 | 76955 | 80035 | 80035 | 69966 | 3 | 69984 | 100 | 200 | 200 | 80035 | 164 | 1 | 1 | 80201 | 100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 0 | 0 | 5110 | 2 | 25 | 2 | 2 | 80032 | 80000 | 80100 | 80036 | 80036 | 80036 | 80036 | 80036 |
80204 | 80035 | 621 | 0 | 0 | 0 | 0 | 0 | 0 | 80020 | 26 | 80100 | 80100 | 100 | 500 | 0 | 49 | 76955 | 80035 | 80035 | 69966 | 3 | 69984 | 100 | 200 | 200 | 80035 | 164 | 1 | 1 | 80201 | 100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 0 | 0 | 5110 | 2 | 25 | 2 | 2 | 80032 | 80000 | 80100 | 80036 | 80036 | 80036 | 80036 | 80036 |
80204 | 80035 | 620 | 0 | 0 | 0 | 0 | 0 | 0 | 80020 | 26 | 80100 | 80100 | 100 | 500 | 0 | 49 | 76955 | 80035 | 80035 | 69966 | 3 | 69984 | 100 | 200 | 200 | 80035 | 164 | 1 | 1 | 80201 | 100 | 99 | 100 | 100 | 100 | 0 | 0 | 1 | 0 | 0 | 5110 | 2 | 25 | 2 | 2 | 80032 | 80000 | 80100 | 80036 | 80036 | 80036 | 80036 | 80036 |
80204 | 80035 | 621 | 0 | 0 | 0 | 0 | 0 | 0 | 80020 | 26 | 80100 | 80100 | 100 | 500 | 0 | 49 | 76955 | 80035 | 80035 | 69966 | 3 | 69984 | 100 | 200 | 200 | 80035 | 164 | 1 | 1 | 80201 | 100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 0 | 0 | 5110 | 2 | 25 | 2 | 2 | 80032 | 80000 | 80100 | 80036 | 80036 | 80036 | 80036 | 80036 |
80204 | 80035 | 621 | 0 | 0 | 0 | 0 | 0 | 0 | 80020 | 26 | 80100 | 80100 | 100 | 500 | 0 | 49 | 76955 | 80035 | 80035 | 69966 | 3 | 69984 | 100 | 200 | 200 | 80035 | 164 | 1 | 1 | 80201 | 100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 0 | 0 | 5110 | 2 | 25 | 2 | 2 | 80032 | 80000 | 80100 | 80036 | 80036 | 80036 | 80036 | 80036 |
Result (median cycles for code divided by count): 1.0004
retire uop (01) | cycle (02) | 03 | mmu table walk data (08) | 1e | 3f | 51 | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | 5f | 60 | 69 | 6a | 6b | 6d | 6e | map stall dispatch (70) | map rewind (75) | map stall (76) | dispatch uop (78) | map int uop (7c) | map int uop inputs (7f) | 82 | 83 | flush restart other nonspec (84) | 85 | inst all (8c) | inst branch (8d) | inst branch taken (90) | inst branch cond (94) | inst int alu (97) | 9f | ld unit uop (a6) | l1d cache writeback (a8) | a9 | ac | cf | l1i cache miss demand (d3) | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | ? int output thing (e9) | ea | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
80024 | 80050 | 621 | 0 | 0 | 80020 | 26 | 80010 | 80010 | 10 | 50 | 1 | 1 | 49 | 76955 | 0 | 80035 | 80035 | 69988 | 3 | 70006 | 10 | 20 | 20 | 80035 | 164 | 1 | 1 | 80021 | 10 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 5020 | 0 | 13 | 25 | 18 | 6 | 80032 | 80000 | 0 | 80010 | 80036 | 80036 | 80036 | 80036 | 80036 |
80024 | 80035 | 621 | 0 | 0 | 80020 | 26 | 80010 | 80010 | 10 | 50 | 0 | 1 | 49 | 76955 | 0 | 80035 | 80035 | 69988 | 3 | 70039 | 10 | 20 | 20 | 80035 | 164 | 1 | 1 | 80021 | 10 | 9 | 10 | 10 | 10 | 2 | 0 | 0 | 0 | 5020 | 0 | 17 | 25 | 17 | 17 | 80032 | 80000 | 0 | 80010 | 80036 | 80036 | 80036 | 80036 | 80036 |
80024 | 80035 | 620 | 0 | 0 | 80020 | 26 | 80010 | 80010 | 10 | 50 | 0 | 1 | 49 | 76955 | 0 | 80035 | 80035 | 69988 | 3 | 70006 | 12 | 20 | 20 | 80035 | 164 | 1 | 1 | 80021 | 10 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 3 | 5020 | 0 | 17 | 25 | 7 | 14 | 80032 | 80000 | 0 | 80010 | 80036 | 80036 | 80036 | 80036 | 80036 |
80024 | 80035 | 620 | 0 | 0 | 80020 | 26 | 80010 | 80010 | 10 | 50 | 0 | 1 | 49 | 76955 | 0 | 80035 | 80035 | 69988 | 3 | 70006 | 10 | 20 | 20 | 80035 | 164 | 1 | 1 | 80021 | 10 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 5020 | 0 | 7 | 25 | 8 | 17 | 80032 | 80000 | 0 | 80010 | 80169 | 80210 | 80036 | 80036 | 80036 |
80024 | 80035 | 621 | 0 | 0 | 80020 | 26 | 80010 | 80010 | 10 | 50 | 0 | 1 | 49 | 76955 | 0 | 80035 | 80035 | 69988 | 3 | 70006 | 10 | 20 | 20 | 80035 | 164 | 1 | 1 | 80021 | 10 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 5020 | 0 | 15 | 25 | 17 | 8 | 80032 | 80000 | 0 | 80010 | 80036 | 80036 | 80036 | 80036 | 80036 |
80024 | 80035 | 620 | 0 | 12 | 80020 | 26 | 80010 | 80010 | 10 | 50 | 0 | 1 | 49 | 76955 | 0 | 80035 | 80035 | 69988 | 3 | 70006 | 10 | 20 | 20 | 80035 | 164 | 1 | 1 | 80021 | 10 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 5020 | 0 | 17 | 25 | 8 | 17 | 80032 | 80000 | 0 | 80010 | 80036 | 80036 | 80036 | 80036 | 80036 |
80024 | 80035 | 620 | 0 | 0 | 80020 | 26 | 80010 | 80010 | 10 | 50 | 0 | 1 | 49 | 76955 | 0 | 80035 | 80035 | 69988 | 3 | 70006 | 10 | 20 | 20 | 80035 | 164 | 1 | 1 | 80021 | 10 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 3 | 5020 | 0 | 17 | 25 | 17 | 17 | 80032 | 80000 | 0 | 80010 | 80036 | 80036 | 80036 | 80036 | 80036 |
80024 | 80035 | 620 | 0 | 0 | 80020 | 26 | 80010 | 80010 | 10 | 50 | 1 | 1 | 49 | 76962 | 0 | 80035 | 80035 | 69988 | 8 | 70006 | 10 | 20 | 20 | 80035 | 164 | 1 | 1 | 80021 | 10 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 5020 | 0 | 13 | 25 | 17 | 8 | 80032 | 80000 | 0 | 80010 | 80043 | 80036 | 80036 | 80036 | 80036 |
80024 | 80035 | 620 | 0 | 0 | 80020 | 26 | 80010 | 80010 | 10 | 50 | 0 | 0 | 49 | 76955 | 0 | 80035 | 80035 | 69988 | 3 | 70006 | 10 | 20 | 20 | 80042 | 164 | 1 | 1 | 80021 | 10 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 3 | 5020 | 0 | 8 | 25 | 17 | 8 | 80032 | 80000 | 0 | 80010 | 80036 | 80036 | 80036 | 80036 | 80036 |
80024 | 80035 | 621 | 0 | 0 | 80020 | 26 | 80010 | 80010 | 10 | 50 | 0 | 1 | 49 | 76955 | 0 | 80035 | 80035 | 69988 | 3 | 70006 | 10 | 20 | 20 | 80035 | 164 | 1 | 1 | 80021 | 10 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 5020 | 0 | 14 | 25 | 15 | 8 | 80032 | 80000 | 0 | 80010 | 80036 | 80036 | 80036 | 80036 | 80036 |