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:
movn w0, #0x1234, lsl 16 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 | 18 | 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 | d0 | map dispatch bubble (d6) | e0 | ea | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
4004 | 528 | 4 | 0 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 1 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 9 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 260 | 0 | 25 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 3 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
Count: 8
Code:
movn w0, #0x1234, lsl 16 movn w1, #0x1234, lsl 16 movn w2, #0x1234, lsl 16 movn w3, #0x1234, lsl 16 movn w4, #0x1234, lsl 16 movn w5, #0x1234, lsl 16 movn w6, #0x1234, lsl 16 movn w7, #0x1234, lsl 16
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.1258
retire uop (01) | cycle (02) | 03 | 09 | l2 tlb miss data (0b) | 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 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) | l1d cache writeback (a8) | ac | cf | l1i cache miss demand (d3) | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | ? int output thing (e9) | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
80204 | 10090 | 81 | 0 | 0 | 0 | 0 | 0 | 77 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10064 | 10077 | 21 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 0 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 77 | 0 | 0 | 0 | 0 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 0 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10136 | 79 | 0 | 0 | 0 | 12 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 32 | 6 | 5112 | 0 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 0 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 8 | 6 | 5112 | 0 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 0 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 25 | 0 | 5112 | 0 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 0 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 3 | 5112 | 0 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 12 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 0 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 1 | 0 | 3 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 0 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 0 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 0 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 0 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 3 | 5112 | 0 | 2 | 16 | 2 | 2 | 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 data (08) | 09 | l2 tlb miss data (0b) | 1e | 3a | 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 | cd | cf | d5 | map dispatch bubble (d6) | d9 | dd | fetch restart (de) | e0 | ? int output thing (e9) | eb | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
80024 | 10054 | 78 | 0 | 0 | 0 | 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 | 0 | 5025 | 5 | 16 | 0 | 6 | 6 | 10035 | 59994 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 0 | 0 | 77 | 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 | 3 | 0 | 5025 | 4 | 16 | 0 | 4 | 5 | 10035 | 59994 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 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 | 0 | 5025 | 6 | 16 | 0 | 4 | 4 | 10035 | 59994 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10183 | 78 | 0 | 0 | 0 | 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 | 63 | 0 | 5048 | 5 | 16 | 0 | 5 | 5 | 10035 | 59994 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 81 | 0 | 0 | 0 | 0 | 0 | 35 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 63828 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 12 | 0 | 0 | 5025 | 5 | 16 | 0 | 5 | 5 | 10035 | 59994 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 5025 | 5 | 16 | 0 | 5 | 5 | 10035 | 59994 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 0 | 0 | 0 | 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 | 0 | 5027 | 6 | 16 | 0 | 5 | 5 | 10035 | 59994 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 12 | 0 | 77 | 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 | 54 | 0 | 5025 | 6 | 16 | 0 | 6 | 6 | 10035 | 59994 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10123 | 78 | 1 | 0 | 1 | 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 | 0 | 5025 | 6 | 16 | 0 | 5 | 6 | 10035 | 59994 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 0 | 0 | 0 | 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 | 3 | 0 | 5025 | 6 | 16 | 0 | 6 | 6 | 10035 | 59994 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |