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 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 | c3 | cf | l1i cache miss demand (d3) | d5 | map dispatch bubble (d6) | d9 | dd | fetch restart (de) | e0 | ea | 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 | 0 | 265 | 4 | 5 | 16 | 0 | 5 | 5 | 525 | 0 | 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 | 1 | 0 | 0 | 265 | 0 | 5 | 16 | 0 | 5 | 5 | 525 | 0 | 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 | 43 | 0 | 0 | 265 | 0 | 5 | 16 | 0 | 5 | 5 | 525 | 0 | 0 | 1000 | 529 | 529 | 529 | 529 | 540 |
4004 | 528 | 4 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 0 | 266 | 0 | 5 | 16 | 0 | 5 | 5 | 525 | 0 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
4004 | 528 | 3 | 0 | 28 | 525 | 1 | 528 | 528 | 3 | 10 | 1000 | 528 | 95 | 1 | 1 | 4001 | 1000 | 0 | 0 | 0 | 265 | 0 | 5 | 16 | 0 | 5 | 5 | 525 | 0 | 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 | 3 | 0 | 265 | 0 | 5 | 16 | 0 | 5 | 5 | 525 | 0 | 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 | 0 | 265 | 0 | 5 | 16 | 0 | 5 | 5 | 525 | 0 | 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 | 0 | 265 | 0 | 5 | 16 | 0 | 5 | 5 | 525 | 0 | 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 | 0 | 265 | 0 | 5 | 16 | 0 | 5 | 5 | 525 | 0 | 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 | 0 | 266 | 0 | 5 | 16 | 0 | 5 | 5 | 525 | 0 | 0 | 1000 | 529 | 529 | 529 | 529 | 529 |
Count: 8
Code:
movz x0, #0x1234, lsl 16 movz x1, #0x1234, lsl 16 movz x2, #0x1234, lsl 16 movz x3, #0x1234, lsl 16 movz x4, #0x1234, lsl 16 movz x5, #0x1234, lsl 16 movz x6, #0x1234, lsl 16 movz 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 | 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 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 | branch cond mispred nonspec (c5) | cf | d5 | map dispatch bubble (d6) | dd | fetch restart (de) | e0 | ? int output thing (e9) | ? int retires (ef) | f5 | f6 | f7 | f8 | fd |
80204 | 10090 | 78 | 0 | 0 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 49 | 6984 | 10064 | 10064 | 0 | 6 | 10 | 60092 | 80256 | 200 | 10064 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 1 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 81 | 0 | 0 | 0 | 77 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 119 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 7055 | 10060 | 10060 | 0 | 8 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 1 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 418 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 150 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 58 | 25 | 60050 | 60050 | 60050 | 300250 | 1 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 0 | 0 | 0 | 5112 | 2 | 16 | 2 | 2 | 10057 | 59950 | 80100 | 10061 | 10061 | 10061 | 10061 | 10061 |
80204 | 10060 | 78 | 0 | 0 | 0 | 35 | 25 | 60050 | 60050 | 60050 | 300250 | 0 | 49 | 6980 | 10060 | 10060 | 0 | 3 | 18 | 60050 | 80200 | 200 | 10060 | 35 | 1 | 1 | 80201 | 100 | 99 | 100 | 80100 | 100 | 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 | 1f | 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 tlb miss (a1) | ld unit uop (a6) | st unit uop (a7) | l1d cache writeback (a8) | a9 | ac | cf | d0 | d2 | 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 |
80024 | 10055 | 78 | 0 | 0 | 0 | 0 | 0 | 0 | 79 | 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 | 0 | 0 | 5021 | 0 | 0 | 0 | 3 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 0 | 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 | 0 | 0 | 0 | 5021 | 0 | 0 | 0 | 3 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 0 | 0 | 0 | 0 | 0 | 460 | 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 | 0 | 0 | 5021 | 0 | 0 | 0 | 3 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 0 | 0 | 0 | 0 | 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 | 0 | 1 | 0 | 0 | 5021 | 0 | 0 | 0 | 4 | 50 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 0 | 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 | 0 | 0 | 0 | 5021 | 0 | 0 | 0 | 2 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 77 | 0 | 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 | 1 | 0 | 0 | 5021 | 0 | 0 | 0 | 2 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 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 | 0 | 0 | 0 | 5021 | 0 | 0 | 0 | 2 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 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 | 0 | 0 | 0 | 5021 | 0 | 0 | 0 | 2 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 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 | 0 | 0 | 0 | 5021 | 0 | 0 | 0 | 4 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |
80024 | 10038 | 78 | 0 | 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 | 0 | 0 | 0 | 5021 | 0 | 0 | 0 | 3 | 16 | 1 | 1 | 10035 | 59994 | 80010 | 10039 | 10039 | 10039 | 10039 | 10039 |