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:
cbz x0, .+4
(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 | 3f | 51 | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | 60 | 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) | l1d cache writeback (a8) | cf | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | f5 | f6 | f7 | f8 | fd |
1004 | 3842 | 5 | 0 | 35 | 25 | 1000 | 1000 | 1000 | 5000 | 0 | 535 | 535 | 162 | 3 | 180 | 1000 | 1000 | 1000 | 535 | 535 | 1 | 1 | 1001 | 1000 | 0 | 73 | 5 | 21 | 3 | 3 | 532 | 536 | 536 | 536 | 536 | 536 |
1004 | 535 | 4 | 0 | 35 | 25 | 1000 | 1000 | 1000 | 5000 | 1 | 535 | 535 | 162 | 3 | 180 | 1000 | 1000 | 1000 | 535 | 535 | 1 | 1 | 1001 | 1000 | 0 | 73 | 3 | 21 | 4 | 3 | 532 | 536 | 536 | 536 | 536 | 536 |
1004 | 535 | 4 | 0 | 35 | 25 | 1000 | 1000 | 1000 | 5000 | 1 | 535 | 535 | 162 | 3 | 180 | 1000 | 1000 | 1000 | 535 | 535 | 1 | 1 | 1001 | 1000 | 0 | 73 | 3 | 21 | 3 | 3 | 532 | 536 | 536 | 536 | 536 | 536 |
1004 | 535 | 4 | 0 | 35 | 25 | 1000 | 1000 | 1000 | 5000 | 1 | 535 | 535 | 162 | 3 | 180 | 1000 | 1000 | 1000 | 535 | 535 | 1 | 1 | 1001 | 1000 | 0 | 73 | 3 | 21 | 3 | 3 | 532 | 536 | 536 | 536 | 536 | 536 |
1004 | 535 | 4 | 0 | 35 | 25 | 1000 | 1000 | 1000 | 5000 | 1 | 535 | 535 | 162 | 3 | 180 | 1000 | 1000 | 1000 | 535 | 535 | 1 | 1 | 1001 | 1000 | 0 | 73 | 3 | 21 | 3 | 3 | 532 | 536 | 536 | 536 | 536 | 536 |
1004 | 535 | 4 | 0 | 35 | 25 | 1000 | 1000 | 1000 | 5000 | 1 | 535 | 535 | 162 | 3 | 180 | 1000 | 1000 | 1000 | 535 | 535 | 1 | 1 | 1001 | 1000 | 0 | 73 | 3 | 21 | 3 | 3 | 532 | 536 | 536 | 536 | 536 | 536 |
1004 | 535 | 4 | 0 | 35 | 25 | 1000 | 1000 | 1000 | 5000 | 1 | 535 | 535 | 162 | 3 | 180 | 1000 | 1000 | 1000 | 535 | 535 | 1 | 1 | 1001 | 1000 | 0 | 73 | 3 | 21 | 3 | 3 | 532 | 536 | 536 | 536 | 536 | 536 |
1004 | 535 | 4 | 0 | 35 | 25 | 1000 | 1000 | 1000 | 5000 | 1 | 535 | 535 | 162 | 3 | 180 | 1000 | 1000 | 1000 | 535 | 535 | 1 | 1 | 1001 | 1000 | 0 | 73 | 3 | 21 | 3 | 3 | 532 | 536 | 536 | 536 | 536 | 536 |
1004 | 535 | 4 | 0 | 35 | 25 | 1000 | 1000 | 1000 | 5000 | 1 | 535 | 535 | 162 | 3 | 180 | 1000 | 1000 | 1000 | 535 | 535 | 1 | 1 | 1001 | 1000 | 0 | 73 | 3 | 21 | 3 | 3 | 532 | 536 | 536 | 536 | 536 | 536 |
1004 | 535 | 4 | 0 | 35 | 25 | 1000 | 1000 | 1000 | 5000 | 1 | 535 | 535 | 162 | 3 | 180 | 1000 | 1000 | 1000 | 535 | 535 | 1 | 1 | 1001 | 1000 | 0 | 73 | 3 | 21 | 3 | 3 | 532 | 536 | 536 | 536 | 536 | 536 |
Count: 8
Code:
cbz x0, .+4 cbz x0, .+4 cbz x0, .+4 cbz x0, .+4 cbz x0, .+4 cbz x0, .+4 cbz x0, .+4 cbz x0, .+4
mov x0, 1
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.5013
retire uop (01) | cycle (02) | 03 | l2 tlb miss data (0b) | 3f | 51 | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | 60 | 61 | 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 cache writeback (a8) | a9 | ac | branch cond mispred nonspec (c5) | branch mispred nonspec (cb) | cd | cf | d0 | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
80204 | 40437 | 300 | 0 | 28 | 28 | 80110 | 80110 | 80114 | 400560 | 1 | 3 | 49 | 37010 | 40090 | 40090 | 13349 | 7 | 13359 | 80114 | 80224 | 80224 | 40090 | 32050 | 1 | 1 | 80201 | 80100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 1 | 1 | 1 | 5118 | 3 | 2 | 16 | 2 | 2 | 40087 | 100 | 40091 | 40091 | 40091 | 40091 | 40091 |
80204 | 40090 | 301 | 0 | 28 | 28 | 80110 | 80110 | 80114 | 400560 | 1 | 0 | 49 | 37010 | 40090 | 40090 | 13349 | 7 | 13359 | 80114 | 80224 | 80224 | 40090 | 32050 | 1 | 1 | 80201 | 80100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 1 | 1 | 1 | 5118 | 3 | 1 | 16 | 1 | 2 | 40087 | 100 | 40091 | 40091 | 40091 | 40091 | 40091 |
80204 | 40090 | 300 | 0 | 28 | 28 | 80110 | 80110 | 80114 | 400560 | 0 | 3 | 49 | 37010 | 40090 | 40090 | 13349 | 7 | 13359 | 80114 | 80224 | 80224 | 40090 | 32050 | 1 | 1 | 80201 | 80100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 1 | 1 | 1 | 5118 | 0 | 1 | 16 | 3 | 2 | 40087 | 100 | 40091 | 40091 | 40091 | 40091 | 40091 |
80204 | 40090 | 301 | 0 | 28 | 28 | 80110 | 80110 | 80114 | 400560 | 1 | 0 | 49 | 37010 | 40090 | 40090 | 13349 | 7 | 13359 | 80114 | 80224 | 80224 | 40090 | 32050 | 1 | 1 | 80201 | 80100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 1 | 1 | 1 | 5118 | 0 | 1 | 16 | 1 | 2 | 40087 | 100 | 40091 | 40091 | 40091 | 40091 | 40091 |
80204 | 40090 | 300 | 0 | 28 | 28 | 80110 | 80110 | 80114 | 400560 | 0 | 3 | 49 | 37010 | 40090 | 40090 | 13349 | 7 | 13359 | 80114 | 80224 | 80224 | 40090 | 32050 | 1 | 1 | 80201 | 80100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 1 | 1 | 1 | 5118 | 3 | 2 | 16 | 2 | 2 | 40087 | 100 | 40091 | 40091 | 40091 | 40091 | 40091 |
80204 | 40090 | 300 | 0 | 28 | 28 | 80110 | 80110 | 80114 | 400560 | 1 | 0 | 49 | 37010 | 40090 | 40090 | 13349 | 7 | 13359 | 80114 | 80224 | 80224 | 40090 | 32050 | 1 | 1 | 80201 | 80100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 1 | 1 | 1 | 5118 | 3 | 2 | 16 | 2 | 1 | 40087 | 100 | 40091 | 40091 | 40091 | 40091 | 40091 |
80204 | 40090 | 300 | 0 | 28 | 28 | 80110 | 80110 | 80114 | 400560 | 0 | 3 | 49 | 37010 | 40090 | 40090 | 13349 | 7 | 13359 | 80114 | 80224 | 80224 | 40090 | 32050 | 1 | 1 | 80201 | 80100 | 99 | 100 | 100 | 100 | 0 | 0 | 3 | 1 | 1 | 1 | 5118 | 0 | 2 | 16 | 2 | 2 | 40087 | 100 | 40091 | 40091 | 40091 | 40091 | 40091 |
80204 | 40090 | 300 | 0 | 28 | 28 | 80110 | 80110 | 80114 | 400560 | 0 | 3 | 49 | 37010 | 40090 | 40090 | 13349 | 7 | 13359 | 80114 | 80968 | 80224 | 40090 | 32050 | 1 | 1 | 80201 | 80100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 1 | 1 | 1 | 5118 | 3 | 2 | 16 | 2 | 2 | 40087 | 100 | 40091 | 40091 | 40091 | 40091 | 40091 |
80204 | 40090 | 300 | 0 | 28 | 28 | 80110 | 80110 | 80114 | 400560 | 0 | 3 | 49 | 37010 | 40090 | 40090 | 13349 | 7 | 13359 | 80114 | 80224 | 80224 | 40090 | 32050 | 1 | 1 | 80201 | 80100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 1 | 1 | 1 | 5118 | 3 | 1 | 16 | 2 | 2 | 40087 | 100 | 40091 | 40091 | 40091 | 40091 | 40091 |
80204 | 40090 | 301 | 0 | 28 | 28 | 80110 | 80110 | 80114 | 400560 | 1 | 0 | 49 | 37010 | 40090 | 40090 | 13349 | 7 | 13359 | 80114 | 80224 | 80224 | 40090 | 32050 | 1 | 1 | 80201 | 80100 | 99 | 100 | 100 | 100 | 0 | 0 | 0 | 1 | 1 | 1 | 5118 | 3 | 2 | 16 | 2 | 1 | 40087 | 100 | 40091 | 40091 | 40091 | 40091 | 40091 |
Result (median cycles for code divided by count): 0.5005
retire uop (01) | cycle (02) | 03 | l1i tlb fill (04) | 1e | 3f | 51 | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | 5f | 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 | cd | cf | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
80024 | 42772 | 307 | 1 | 0 | 35 | 25 | 80010 | 80010 | 80010 | 400050 | 0 | 49 | 36960 | 40040 | 40040 | 13331 | 3 | 13349 | 80010 | 80020 | 80020 | 40040 | 40040 | 1 | 1 | 80021 | 80010 | 9 | 10 | 10 | 10 | 0 | 0 | 2 | 0 | 0 | 5020 | 14 | 20 | 18 | 17 | 40037 | 10 | 40041 | 40041 | 40041 | 40041 | 40041 |
80024 | 40040 | 300 | 0 | 0 | 35 | 25 | 80010 | 80010 | 80010 | 400050 | 0 | 49 | 36960 | 40040 | 40040 | 13331 | 3 | 13349 | 80010 | 80020 | 80020 | 40040 | 40040 | 1 | 1 | 80021 | 80010 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 0 | 5020 | 17 | 20 | 16 | 12 | 40037 | 10 | 40041 | 40041 | 40041 | 40041 | 40041 |
80024 | 40040 | 299 | 0 | 0 | 35 | 25 | 80010 | 80010 | 80010 | 400050 | 0 | 49 | 36960 | 40040 | 40040 | 13331 | 3 | 13349 | 80010 | 80020 | 80020 | 40040 | 40040 | 1 | 1 | 80021 | 80010 | 9 | 10 | 10 | 10 | 0 | 3 | 1 | 3 | 0 | 5020 | 11 | 20 | 16 | 13 | 40037 | 10 | 40041 | 40041 | 40095 | 40095 | 40041 |
80024 | 40040 | 300 | 0 | 0 | 35 | 25 | 80010 | 80010 | 80010 | 400050 | 0 | 49 | 36960 | 40040 | 40040 | 13331 | 3 | 13349 | 80010 | 80020 | 80020 | 40040 | 40040 | 1 | 1 | 80021 | 80010 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 0 | 5020 | 18 | 20 | 14 | 11 | 40037 | 10 | 40041 | 40041 | 40041 | 40041 | 40041 |
80024 | 40040 | 300 | 0 | 0 | 510 | 25 | 80010 | 80010 | 80010 | 400050 | 0 | 49 | 36960 | 40040 | 40040 | 13331 | 3 | 13349 | 80010 | 80020 | 80020 | 40040 | 40040 | 1 | 1 | 80021 | 80010 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 0 | 5020 | 11 | 20 | 11 | 13 | 40037 | 10 | 40041 | 40041 | 40041 | 40041 | 40041 |
80024 | 40040 | 300 | 0 | 0 | 35 | 25 | 80010 | 80010 | 80010 | 400050 | 0 | 49 | 36960 | 40040 | 40040 | 13331 | 3 | 13349 | 80010 | 80020 | 80020 | 40040 | 40040 | 1 | 1 | 80021 | 80010 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 0 | 5020 | 13 | 20 | 17 | 14 | 40037 | 10 | 40041 | 40041 | 40041 | 40041 | 40041 |
80024 | 40040 | 300 | 0 | 0 | 35 | 25 | 80010 | 80010 | 80010 | 400050 | 0 | 49 | 36960 | 40040 | 40040 | 13331 | 3 | 13349 | 80010 | 80020 | 80020 | 40040 | 40040 | 1 | 1 | 80021 | 80010 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 0 | 5020 | 12 | 20 | 18 | 13 | 40037 | 10 | 40041 | 40041 | 40041 | 40041 | 40041 |
80024 | 40040 | 300 | 0 | 0 | 35 | 25 | 80010 | 80010 | 80010 | 400050 | 0 | 49 | 36960 | 40040 | 40040 | 13331 | 3 | 13349 | 80010 | 80020 | 80020 | 40040 | 40040 | 1 | 1 | 80021 | 80010 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 6 | 0 | 5020 | 17 | 20 | 16 | 17 | 40037 | 10 | 40041 | 40041 | 40041 | 40041 | 40041 |
80024 | 40040 | 300 | 0 | 0 | 35 | 25 | 80010 | 80010 | 80010 | 400050 | 0 | 49 | 36960 | 40040 | 40040 | 13331 | 3 | 13349 | 80010 | 80020 | 80020 | 40040 | 40040 | 1 | 1 | 80021 | 80010 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 0 | 5022 | 14 | 20 | 9 | 12 | 40037 | 10 | 40041 | 40041 | 40041 | 40041 | 40041 |
80024 | 40040 | 300 | 0 | 0 | 35 | 25 | 80010 | 80010 | 80010 | 400050 | 0 | 49 | 36960 | 40040 | 40040 | 13331 | 3 | 13349 | 80010 | 80020 | 80020 | 40040 | 40040 | 1 | 1 | 80021 | 80010 | 9 | 10 | 10 | 10 | 0 | 0 | 0 | 0 | 0 | 5020 | 16 | 20 | 17 | 18 | 40037 | 10 | 40041 | 40041 | 40041 | 40041 | 40041 |