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:
mov x0, #0xaaaaaaaaaaaaaaaa nop ; nop ; nop
(no loop instructions)
Retires (minus 3 nops): 1.000
Issues: 0.000
Integer unit issues: 0.000
Load/store unit issues: 0.000
SIMD/FP unit issues: 0.000
retire uop (01) | cycle (02) | 03 | 1e | 3f | 51 | 60 | 6d | 6e | map rewind (75) | map stall (76) | map int uop (7c) | 82 | 83 | flush restart other nonspec (84) | 85 | inst all (8c) | inst int alu (97) | l1d cache writeback (a8) | ac | cf | d2 | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
4004 | 528 | 4 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 264 | 0 | 4 | 16 | 4 | 4 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 263 | 0 | 3 | 16 | 3 | 3 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 264 | 0 | 4 | 16 | 3 | 3 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 264 | 0 | 4 | 16 | 4 | 4 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 35 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 264 | 0 | 4 | 16 | 4 | 4 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 6 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 264 | 0 | 3 | 16 | 4 | 4 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 264 | 0 | 4 | 16 | 4 | 4 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 264 | 0 | 4 | 16 | 4 | 3 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 264 | 0 | 4 | 16 | 4 | 4 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 264 | 0 | 4 | 16 | 4 | 4 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
Count: 8
Code:
mov x0, #0xaaaaaaaaaaaaaaaa mov x1, #0xaaaaaaaaaaaaaaaa mov x2, #0xaaaaaaaaaaaaaaaa mov x3, #0xaaaaaaaaaaaaaaaa mov x4, #0xaaaaaaaaaaaaaaaa mov x5, #0xaaaaaaaaaaaaaaaa mov x6, #0xaaaaaaaaaaaaaaaa mov x7, #0xaaaaaaaaaaaaaaaa
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.1258
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) | 5f | 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 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 |
80204 | 10064 | 77 | 0 | 415 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 1 | 0 | 5113 | 3 | 16 | 3 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 77 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 1 | 0 | 5113 | 3 | 16 | 3 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 12 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 1 | 6 | 5113 | 3 | 16 | 3 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 77 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 5113 | 3 | 16 | 3 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 3 | 5113 | 3 | 16 | 3 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 98 | 0 | 619 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 5113 | 3 | 16 | 3 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 5113 | 3 | 16 | 3 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 5113 | 3 | 16 | 3 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 5113 | 3 | 16 | 3 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 605 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 5113 | 3 | 16 | 3 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
Result (median cycles for code divided by count): 0.1255
retire uop (01) | cycle (02) | 03 | mmu table walk instruction (07) | 1e | 3f | 51 | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | 60 | 69 | 6a | 6d | 6e | 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) | ac | cf | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | ? int output thing (e9) | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
80024 | 10054 | 77 | 1 | 0 | 98 | 25 | 60004 | 60004 | 60004 | 300020 | 1 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 5021 | 1 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 35 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 1 | 0 | 5021 | 1 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 3 | 35 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 5021 | 1 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 35 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 171 | 60004 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 5021 | 2 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 0 | 0 | 63 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 5021 | 1 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 503 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 5021 | 1 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 80 | 0 | 0 | 56 | 25 | 60004 | 60004 | 60004 | 300020 | 1 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 5021 | 1 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 35 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 5021 | 1 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 56 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 5021 | 1 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 35 | 25 | 60004 | 60004 | 60004 | 300020 | 1 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 5021 | 1 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |