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:
movz 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 | 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 | l1i cache miss demand (d3) | l1i tlb miss demand (d4) | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
4004 | 528 | 4 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 265 | 0 | 0 | 9 | 16 | 6 | 5 | 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 | 266 | 0 | 0 | 5 | 16 | 5 | 5 | 525 | 1000 | 529 | 529 | 529 | 605 | 571 |
4004 | 528 | 4 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 265 | 0 | 0 | 7 | 16 | 5 | 5 | 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 | 265 | 0 | 0 | 7 | 16 | 5 | 5 | 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 | 265 | 0 | 0 | 7 | 16 | 5 | 5 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 28 | 547 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 265 | 0 | 0 | 6 | 16 | 5 | 5 | 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 | 265 | 0 | 0 | 7 | 16 | 5 | 5 | 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 | 265 | 0 | 1 | 6 | 16 | 5 | 5 | 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 | 265 | 0 | 0 | 7 | 16 | 5 | 5 | 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 | 265 | 0 | 0 | 8 | 16 | 5 | 5 | 525 | 1000 | 529 | 529 | 529 | 529 | 529 |
Count: 8
Code:
movz w0, #0x1234, lsl 16 movz w1, #0x1234, lsl 16 movz w2, #0x1234, lsl 16 movz w3, #0x1234, lsl 16 movz w4, #0x1234, lsl 16 movz w5, #0x1234, lsl 16 movz w6, #0x1234, lsl 16 movz 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) | 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 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 | 10092 | 78 | 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 | 5115 | 4 | 16 | 5 | 5 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 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 | 5115 | 5 | 16 | 6 | 5 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 77 | 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 | 5158 | 5 | 16 | 5 | 7 | 10057 | 60111 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 1 | 0 | 0 | 0 | 35 | 25 | 60050 | 60221 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 5115 | 6 | 16 | 5 | 5 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 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 | 5115 | 5 | 16 | 5 | 3 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 6 | 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 | 5115 | 5 | 16 | 6 | 5 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 15 | 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 | 3 | 5115 | 5 | 16 | 5 | 5 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 81 | 0 | 0 | 12 | 0 | 63 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 2 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 5115 | 5 | 16 | 5 | 5 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 80 | 0 | 0 | 3 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10064 | 10064 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 5116 | 6 | 16 | 5 | 5 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 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 | 3 | 5116 | 3 | 16 | 5 | 5 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
Result (median cycles for code divided by count): 0.1255
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 | 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 access (a0) | l1d tlb miss (a1) | l1d cache writeback (a8) | ac | cf | d5 | map dispatch bubble (d6) | db | dd | fetch restart (de) | e0 | ? int output thing (e9) | ea | eb | ec | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
80024 | 10054 | 78 | 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 | 3 | 5026 | 8 | 16 | 0 | 6 | 4 | 10035 | 59994 | 0 | 0 | 14 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 35 | 100 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60140 | 80020 | 20 | 10038 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 0 | 3 | 5026 | 6 | 16 | 0 | 7 | 5 | 10035 | 59994 | 0 | 0 | 8 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 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 | 0 | 0 | 0 | 5024 | 4 | 16 | 0 | 4 | 6 | 10035 | 59994 | 0 | 0 | 11 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 77 | 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 | 32 | 0 | 5024 | 4 | 16 | 0 | 4 | 6 | 10035 | 59994 | 0 | 0 | 13 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 12 | 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 | 0 | 5024 | 6 | 16 | 0 | 6 | 4 | 10035 | 59994 | 0 | 0 | 9 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 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 | 1 | 0 | 5026 | 6 | 16 | 0 | 6 | 6 | 10035 | 59994 | 0 | 25 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 81 | 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 | 0 | 5023 | 5 | 16 | 0 | 5 | 5 | 10035 | 59994 | 0 | 6 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 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 | 0 | 5025 | 5 | 16 | 0 | 5 | 3 | 10035 | 59994 | 0 | 5 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 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 | 0 | 5025 | 5 | 16 | 0 | 5 | 3 | 10035 | 59994 | 0 | 7 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 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 | 0 | 5025 | 5 | 16 | 0 | 6 | 4 | 10035 | 59994 | 0 | 6 | 0 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |