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 x0, #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 | d5 | map dispatch bubble (d6) | e0 | eb | ? 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 | 260 | 1 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 4 | 0 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 12 | 70 | 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 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 3 | 260 | 0 | 16 | 525 | 0 | 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 | 260 | 0 | 16 | 525 | 0 | 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 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 4 | 0 | 70 | 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 | 70 | 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 | 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 | 3 | 0 | 28 | 525 | 0 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 6 | 260 | 0 | 16 | 525 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
Count: 8
Code:
movn x0, #0x1234, lsl 16 movn x1, #0x1234, lsl 16 movn x2, #0x1234, lsl 16 movn x3, #0x1234, lsl 16 movn x4, #0x1234, lsl 16 movn x5, #0x1234, lsl 16 movn x6, #0x1234, lsl 16 movn x7, #0x1234, lsl 16
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.1258
retire uop (01) | cycle (02) | 03 | l2 tlb miss instruction (0a) | 18 | 19 | 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 | ld unit uop (a6) | l1d cache writeback (a8) | a9 | 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 | 120 | 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 | 0 | 5112 | 6 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 12 | 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 | 0 | 5134 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 0 | 320 | 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 | 0 | 5112 | 2 | 16 | 2 | 2 | 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 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 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 | 0 | 5112 | 2 | 16 | 2 | 2 | 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 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 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 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 77 | 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 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 0 | 163 | 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 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 77 | 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 | 0 | 5112 | 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 | l2 tlb miss data (0b) | 18 | 19 | 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 miss (a1) | l1d cache writeback (a8) | ac | cf | d5 | map dispatch bubble (d6) | da | dd | fetch restart (de) | e0 | ? int output thing (e9) | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
80024 | 10044 | 78 | 0 | 0 | 0 | 12 | 594 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10344 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 0 | 5023 | 6 | 16 | 0 | 3 | 3 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 0 | 123 | 25 | 60004 | 60004 | 60137 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10339 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 0 | 5026 | 2 | 16 | 0 | 3 | 3 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 0 | 35 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10334 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 0 | 5025 | 3 | 16 | 0 | 5 | 5 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 0 | 35 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10077 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 0 | 5025 | 3 | 16 | 0 | 5 | 5 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 0 | 126 | 25 | 60004 | 60004 | 60004 | 300020 | 1 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10334 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 0 | 5023 | 2 | 16 | 0 | 3 | 6 | 10035 | 59994 | 80010 | 10087 | 10125 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 1 | 2 | 0 | 0 | 56 | 25 | 60004 | 60004 | 60004 | 300020 | 1 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10081 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 0 | 5025 | 5 | 16 | 0 | 3 | 2 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 0 | 0 | 0 | 0 | 185 | 25 | 60004 | 60004 | 60004 | 300020 | 1 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10337 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 0 | 5022 | 3 | 16 | 0 | 3 | 3 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 0 | 409 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10337 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 0 | 5026 | 2 | 16 | 0 | 3 | 3 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 0 | 411 | 25 | 60004 | 60004 | 60004 | 300020 | 0 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10334 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 3 | 5025 | 5 | 16 | 0 | 3 | 2 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 0 | 0 | 0 | 0 | 125 | 25 | 60004 | 60004 | 60004 | 300020 | 1 | 49 | 6958 | 10038 | 10038 | 3 | 18 | 60004 | 80020 | 20 | 10334 | 35 | 1 | 1 | 80021 | 10 | 9 | 10 | 80010 | 10 | 0 | 0 | 0 | 5026 | 3 | 16 | 0 | 5 | 6 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |