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:
ld1 { v0.1d }, [x6] nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop
mov x0, 1 mov x1, 2 mov x8, 0
(no loop instructions)
Retires (minus 60 nops): 1.000
Issues: 1.000
Integer unit issues: 0.001
Load/store unit issues: 1.000
SIMD/FP unit issues: 0.000
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch ldst uop (58) | simd uops in schedulers (5a) | dispatch uop (78) | map ldst uop (7d) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) |
61005 | 29839 | 1003 | 1 | 1002 | 1000 | 3000 | 1000 | 1000 | 1000 | 1 | 1000 |
61004 | 29514 | 1001 | 1 | 1000 | 1000 | 3000 | 1000 | 1000 | 1000 | 1 | 1000 |
61004 | 29934 | 1001 | 1 | 1000 | 1000 | 3000 | 1000 | 1000 | 1000 | 1 | 1000 |
61004 | 29131 | 1001 | 1 | 1000 | 1000 | 3000 | 1000 | 1000 | 1000 | 1 | 1000 |
61004 | 29137 | 1001 | 1 | 1000 | 1000 | 3000 | 1000 | 1000 | 1000 | 1 | 1000 |
61005 | 29146 | 1002 | 1 | 1001 | 1000 | 3000 | 1000 | 1000 | 1000 | 1 | 1000 |
61004 | 29475 | 1001 | 1 | 1000 | 1000 | 3000 | 1000 | 1000 | 1000 | 1 | 1000 |
61004 | 29137 | 1001 | 1 | 1000 | 1000 | 3012 | 1000 | 1000 | 1000 | 1 | 1000 |
61004 | 29960 | 1001 | 1 | 1000 | 1000 | 3001 | 1000 | 1000 | 1000 | 1 | 1000 |
61004 | 29128 | 1001 | 1 | 1000 | 1000 | 3000 | 1000 | 1000 | 1000 | 1 | 1000 |
Chain cycles: 3
Code:
ld1 { v0.1d }, [x6] fmov x0, d0 eor x8, x8, x0 eor x8, x8, x0 add x6, x6, x8
mov x0, 1 mov x1, 2 mov x8, 0
(fused SUBS/B.cc loop)
Result (median cycles for code, minus 3 chain cycles): 7.0047
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule simd uop (54) | schedule ldst uop (55) | dispatch int uop (56) | dispatch simd uop (57) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | ldst uops in schedulers (5b) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | map simd uop (7e) | map int uop inputs (7f) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
50205 | 100153 | 60108 | 40101 | 10006 | 10001 | 30130 | 10014 | 10004 | 2669123 | 1045466 | 1070652 | 50110 | 30212 | 10004 | 10004 | 60302 | 10016 | 10017 | 40007 | 10000 | 0 | 40100 |
50204 | 100047 | 60103 | 40101 | 10002 | 10000 | 30103 | 10003 | 10004 | 2669212 | 1045618 | 1070792 | 50110 | 30212 | 10004 | 10004 | 60224 | 10004 | 10004 | 40001 | 10000 | 0 | 40100 |
50204 | 100047 | 60103 | 40101 | 10002 | 10000 | 30103 | 10003 | 10004 | 2669212 | 1045618 | 1070792 | 50110 | 30212 | 10004 | 10004 | 60224 | 10004 | 10004 | 40001 | 10000 | 0 | 40100 |
50204 | 100047 | 60103 | 40101 | 10002 | 10000 | 30103 | 10003 | 10004 | 2669293 | 1045654 | 1070828 | 50110 | 30212 | 10004 | 10004 | 60224 | 10004 | 10004 | 40001 | 10000 | 0 | 40100 |
50205 | 100151 | 60112 | 40105 | 10005 | 10002 | 30133 | 10015 | 10004 | 2669320 | 1045665 | 1070839 | 50110 | 30212 | 10004 | 10004 | 60224 | 10004 | 10004 | 40001 | 10000 | 0 | 40100 |
50204 | 100048 | 60103 | 40101 | 10002 | 10000 | 30103 | 10003 | 10004 | 2669212 | 1045618 | 1070792 | 50110 | 30212 | 10004 | 10004 | 60224 | 10004 | 10004 | 40001 | 10000 | 0 | 40100 |
50204 | 100047 | 60103 | 40101 | 10002 | 10000 | 30103 | 10003 | 10004 | 2669212 | 1045618 | 1070792 | 50110 | 30212 | 10004 | 10004 | 60224 | 10004 | 10004 | 40001 | 10000 | 0 | 40100 |
50204 | 100047 | 60103 | 40101 | 10002 | 10000 | 30103 | 10003 | 10004 | 2669212 | 1045618 | 1070792 | 50110 | 30212 | 10004 | 10004 | 60224 | 10004 | 10004 | 40001 | 10000 | 0 | 40100 |
50204 | 100106 | 60103 | 40101 | 10002 | 10000 | 30103 | 10003 | 10004 | 2669212 | 1045618 | 1070792 | 50110 | 30212 | 10004 | 10004 | 60224 | 10004 | 10004 | 40001 | 10000 | 0 | 40100 |
50204 | 100425 | 60155 | 40133 | 10013 | 10009 | 30232 | 10054 | 10004 | 2669212 | 1045618 | 1070792 | 50110 | 30212 | 10004 | 10004 | 60294 | 10016 | 10016 | 40009 | 10000 | 0 | 40100 |
Result (median cycles for code, minus 3 chain cycles): 7.0047
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule simd uop (54) | schedule ldst uop (55) | dispatch int uop (56) | dispatch simd uop (57) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | ldst uops in schedulers (5b) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | map simd uop (7e) | map int uop inputs (7f) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
50025 | 100155 | 60018 | 40011 | 10006 | 10001 | 30040 | 10014 | 10004 | 2669257 | 1046891 | 1071937 | 50020 | 30032 | 10004 | 10004 | 60044 | 10004 | 10004 | 40001 | 10000 | 40010 |
50024 | 100047 | 60013 | 40011 | 10002 | 10000 | 30010 | 10000 | 10000 | 2669282 | 1046913 | 1071950 | 50010 | 30020 | 10000 | 10000 | 60020 | 10000 | 10000 | 40001 | 10000 | 40010 |
50024 | 100047 | 60013 | 40011 | 10002 | 10000 | 30010 | 10000 | 10000 | 2669444 | 1046979 | 1072016 | 50010 | 30020 | 10000 | 10000 | 60020 | 10000 | 10000 | 40001 | 10000 | 40010 |
50024 | 100053 | 60013 | 40011 | 10002 | 10000 | 30010 | 10000 | 10000 | 2669282 | 1046913 | 1071950 | 50010 | 30020 | 10000 | 10000 | 60020 | 10000 | 10000 | 40001 | 10000 | 40010 |
50024 | 100047 | 60013 | 40011 | 10002 | 10000 | 30010 | 10000 | 10000 | 2669282 | 1046913 | 1071950 | 50010 | 30020 | 10000 | 10000 | 60020 | 10000 | 10000 | 40001 | 10000 | 40010 |
50024 | 100047 | 60013 | 40011 | 10002 | 10000 | 30010 | 10000 | 10000 | 2669282 | 1046913 | 1071950 | 50010 | 30020 | 10000 | 10000 | 60020 | 10000 | 10000 | 40001 | 10000 | 40010 |
50024 | 100047 | 60013 | 40011 | 10002 | 10000 | 30010 | 10000 | 10000 | 2669471 | 1046997 | 1072029 | 50010 | 30020 | 10000 | 10000 | 60020 | 10000 | 10000 | 40001 | 10000 | 40010 |
50024 | 100047 | 60013 | 40011 | 10002 | 10000 | 30010 | 10000 | 10000 | 2669282 | 1046913 | 1071950 | 50010 | 30020 | 10000 | 10000 | 60116 | 10016 | 10017 | 40007 | 10000 | 40010 |
50024 | 100047 | 60013 | 40011 | 10002 | 10000 | 30010 | 10000 | 10000 | 2669282 | 1046913 | 1071950 | 50010 | 30020 | 10000 | 10000 | 60020 | 10000 | 10000 | 40001 | 10000 | 40010 |
50024 | 100047 | 60013 | 40011 | 10002 | 10000 | 30010 | 10000 | 10000 | 2669282 | 1046913 | 1071950 | 50010 | 30020 | 10000 | 10000 | 60020 | 10000 | 10000 | 40001 | 10000 | 40010 |
Count: 8
Code:
ld1 { v0.1d }, [x6] ld1 { v0.1d }, [x6] ld1 { v0.1d }, [x6] ld1 { v0.1d }, [x6] ld1 { v0.1d }, [x6] ld1 { v0.1d }, [x6] ld1 { v0.1d }, [x6] ld1 { v0.1d }, [x6]
mov x7, x6 mov x8, x6 mov x9, x6 mov x10, x6 mov x11, x6 mov x12, x6 mov x13, x6
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.5007
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch int uop (56) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | map int uop inputs (7f) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
80205 | 40228 | 80131 | 101 | 80030 | 100 | 80008 | 300 | 256188 | 80108 | 200 | 80012 | 200 | 80012 | 1 | 80000 | 100 |
80204 | 40053 | 80101 | 101 | 80000 | 100 | 80008 | 300 | 640194 | 80108 | 200 | 80012 | 200 | 80012 | 1 | 80000 | 100 |
80204 | 40053 | 80101 | 101 | 80000 | 100 | 80008 | 300 | 640194 | 80108 | 200 | 80012 | 200 | 80012 | 1 | 80000 | 100 |
80204 | 40053 | 80101 | 101 | 80000 | 100 | 80008 | 300 | 640194 | 80108 | 200 | 80012 | 200 | 80012 | 1 | 80000 | 100 |
80204 | 40053 | 80101 | 101 | 80000 | 100 | 80008 | 300 | 640194 | 80108 | 200 | 80012 | 200 | 80012 | 1 | 80000 | 100 |
80204 | 40053 | 80101 | 101 | 80000 | 100 | 80008 | 300 | 640194 | 80108 | 200 | 80012 | 200 | 80012 | 1 | 80000 | 100 |
80204 | 40053 | 80101 | 101 | 80000 | 100 | 80008 | 300 | 641346 | 80108 | 200 | 80012 | 200 | 80012 | 1 | 80000 | 100 |
80204 | 40059 | 80101 | 101 | 80000 | 100 | 80008 | 300 | 640194 | 80108 | 200 | 80012 | 200 | 80012 | 1 | 80000 | 100 |
80204 | 40053 | 80101 | 101 | 80000 | 100 | 80008 | 300 | 640194 | 80108 | 200 | 80012 | 200 | 80012 | 1 | 80000 | 100 |
80204 | 40053 | 80101 | 101 | 80000 | 100 | 80008 | 300 | 640194 | 80108 | 200 | 80012 | 200 | 80012 | 1 | 80000 | 100 |
Result (median cycles for code divided by count): 0.5005
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch int uop (56) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | map int uop inputs (7f) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
80025 | 40291 | 80045 | 11 | 80034 | 10 | 80008 | 30 | 640194 | 80018 | 20 | 80012 | 20 | 80000 | 1 | 80000 | 10 |
80024 | 40051 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 639982 | 80010 | 20 | 80000 | 20 | 80000 | 1 | 80000 | 10 |
80024 | 40043 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 639982 | 80010 | 20 | 80000 | 20 | 80000 | 1 | 80000 | 10 |
80024 | 40060 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 640198 | 80010 | 20 | 80000 | 20 | 80000 | 1 | 80000 | 10 |
80024 | 40043 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 639982 | 80010 | 20 | 80000 | 20 | 80000 | 1 | 80000 | 10 |
80024 | 40043 | 80011 | 11 | 80000 | 10 | 80059 | 30 | 299127 | 80069 | 20 | 80071 | 20 | 80000 | 1 | 80000 | 10 |
80024 | 40043 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 639982 | 80010 | 20 | 80000 | 20 | 80000 | 1 | 80000 | 10 |
80024 | 40055 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 640200 | 80010 | 20 | 80000 | 20 | 80000 | 1 | 80000 | 10 |
80024 | 40057 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 640384 | 80010 | 20 | 80000 | 20 | 80069 | 1 | 80000 | 10 |
80024 | 40052 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 639982 | 80010 | 20 | 80000 | 20 | 80000 | 1 | 80000 | 10 |