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, v1.1d }, [x6], x8 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): 2.000
Issues: 3.000
Integer unit issues: 1.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 0.000
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 ldst uop (7d) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) |
62005 | 30582 | 3007 | 1003 | 2004 | 1002 | 2000 | 3000 | 6000 | 3000 | 2000 | 3000 | 1001 | 2000 |
62004 | 30140 | 3001 | 1001 | 2000 | 1000 | 2000 | 3000 | 6063 | 3000 | 2000 | 3000 | 1001 | 2000 |
62004 | 30530 | 3001 | 1001 | 2000 | 1000 | 2000 | 3000 | 6026 | 3000 | 2000 | 3000 | 1001 | 2000 |
62004 | 30675 | 3001 | 1001 | 2000 | 1000 | 2000 | 3000 | 6000 | 3000 | 2000 | 3000 | 1001 | 2000 |
62004 | 30112 | 3001 | 1001 | 2000 | 1000 | 2000 | 3000 | 6000 | 3000 | 2000 | 3000 | 1001 | 2000 |
62004 | 30076 | 3001 | 1001 | 2000 | 1000 | 2000 | 3000 | 6000 | 3000 | 2000 | 3000 | 1001 | 2000 |
62004 | 30142 | 3001 | 1001 | 2000 | 1000 | 2000 | 3000 | 6000 | 3000 | 2000 | 3000 | 1001 | 2000 |
62004 | 30104 | 3001 | 1001 | 2000 | 1000 | 2000 | 3000 | 6000 | 3000 | 2000 | 3000 | 1001 | 2000 |
62004 | 30036 | 3001 | 1001 | 2000 | 1000 | 2000 | 3000 | 6000 | 3000 | 2000 | 3000 | 1001 | 2000 |
62004 | 30031 | 3001 | 1001 | 2000 | 1000 | 2000 | 3000 | 6000 | 3000 | 2000 | 3000 | 1001 | 2000 |
Chain cycles: 3
Code:
ld1 { v0.1d, v1.1d }, [x6], x8 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.0049
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) |
60205 | 100275 | 80110 | 50102 | 10006 | 20002 | 40132 | 10012 | 20006 | 2659422 | 1567584 | 788913 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100049 | 80103 | 50101 | 10002 | 20000 | 40104 | 10003 | 20006 | 2659532 | 1567804 | 789000 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100049 | 80103 | 50101 | 10002 | 20000 | 40104 | 10003 | 20006 | 2659532 | 1567804 | 789000 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100049 | 80103 | 50101 | 10002 | 20000 | 40104 | 10003 | 20006 | 2659532 | 1567804 | 789000 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100049 | 80103 | 50101 | 10002 | 20000 | 40104 | 10003 | 20006 | 2659532 | 1567804 | 789000 | 70113 | 30209 | 20008 | 10003 | 60280 | 30042 | 10013 | 50009 | 20000 | 40100 |
60204 | 100056 | 80103 | 50101 | 10002 | 20000 | 40104 | 10003 | 20006 | 2659613 | 1567858 | 789024 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100049 | 80103 | 50101 | 10002 | 20000 | 40104 | 10003 | 20006 | 2659532 | 1567804 | 789000 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100049 | 80103 | 50101 | 10002 | 20000 | 40104 | 10003 | 20006 | 2659532 | 1567804 | 789000 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100049 | 80103 | 50101 | 10002 | 20000 | 40104 | 10003 | 20006 | 2659532 | 1567804 | 789000 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100049 | 80103 | 50101 | 10002 | 20000 | 40104 | 10003 | 20006 | 2659532 | 1567804 | 789000 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
Result (median cycles for code, minus 3 chain cycles): 7.0040
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) |
60025 | 100294 | 80020 | 50012 | 10006 | 20002 | 40042 | 10012 | 20006 | 2659384 | 1569244 | 789679 | 70023 | 30029 | 20008 | 10003 | 60020 | 30000 | 10000 | 50001 | 20000 | 40010 |
60024 | 100042 | 80012 | 50011 | 10001 | 20000 | 40010 | 10000 | 20000 | 2659411 | 1569282 | 789690 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 40010 |
60024 | 100042 | 80012 | 50011 | 10001 | 20000 | 40010 | 10000 | 20024 | 2659843 | 1569570 | 789836 | 70083 | 30059 | 20028 | 10013 | 60020 | 30000 | 10000 | 50001 | 20000 | 40010 |
60024 | 100042 | 80012 | 50011 | 10001 | 20000 | 40010 | 10000 | 20000 | 2659411 | 1569282 | 789690 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 40010 |
60024 | 100042 | 80012 | 50011 | 10001 | 20000 | 40010 | 10000 | 20000 | 2659411 | 1569282 | 789690 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 40010 |
60024 | 100042 | 80012 | 50011 | 10001 | 20000 | 40010 | 10000 | 20000 | 2659411 | 1569282 | 789690 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 40010 |
60024 | 100042 | 80012 | 50011 | 10001 | 20000 | 40010 | 10000 | 20000 | 2659411 | 1569282 | 789690 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 40010 |
60024 | 100042 | 80012 | 50011 | 10001 | 20000 | 40010 | 10000 | 20000 | 2659411 | 1569282 | 789690 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 40010 |
60025 | 100075 | 80024 | 50019 | 10003 | 20002 | 40046 | 10012 | 20000 | 2659411 | 1569282 | 789690 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 40010 |
60024 | 100042 | 80012 | 50011 | 10001 | 20000 | 40010 | 10000 | 20000 | 2659411 | 1569282 | 789690 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 40010 |
Chain cycles: 3
Code:
ld1 { v0.1d, v1.1d }, [x6], x8 fmov x1, d1 eor x8, x8, x1 eor x8, x8, x1 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.0040
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) |
60205 | 100151 | 80110 | 50102 | 10006 | 20002 | 40132 | 10012 | 20006 | 2659282 | 1567588 | 788897 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100042 | 80102 | 50101 | 10001 | 20000 | 40104 | 10003 | 20006 | 2659343 | 1567692 | 788937 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100042 | 80102 | 50101 | 10001 | 20000 | 40104 | 10003 | 20006 | 2659343 | 1567692 | 788937 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100042 | 80102 | 50101 | 10001 | 20000 | 40104 | 10003 | 20006 | 2659343 | 1567692 | 788937 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100042 | 80102 | 50101 | 10001 | 20000 | 40104 | 10003 | 20006 | 2659343 | 1567692 | 788937 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60205 | 100075 | 80114 | 50109 | 10003 | 20002 | 40136 | 10011 | 20006 | 2659343 | 1567692 | 788937 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100042 | 80102 | 50101 | 10001 | 20000 | 40104 | 10003 | 20006 | 2659343 | 1567692 | 788937 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100042 | 80102 | 50101 | 10001 | 20000 | 40104 | 10003 | 20006 | 2661692 | 1569244 | 789677 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100047 | 80102 | 50101 | 10001 | 20000 | 40104 | 10003 | 20006 | 2659343 | 1567692 | 788937 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 40100 |
60204 | 100042 | 80102 | 50101 | 10001 | 20000 | 40104 | 10003 | 20006 | 2659343 | 1567692 | 788937 | 70113 | 30209 | 20008 | 10003 | 60218 | 30012 | 10003 | 50001 | 20000 | 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) | ? simd retires (ee) | ? int retires (ef) |
60025 | 100155 | 80020 | 50012 | 10006 | 20002 | 40042 | 10012 | 20006 | 2659519 | 1569324 | 789724 | 70023 | 30029 | 20008 | 10003 | 60038 | 30012 | 10003 | 50001 | 20000 | 0 | 40010 |
60024 | 100047 | 80013 | 50011 | 10002 | 20000 | 40014 | 10003 | 20000 | 2659546 | 1569362 | 789735 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 0 | 40010 |
60024 | 100047 | 80013 | 50011 | 10002 | 20000 | 40010 | 10000 | 20000 | 2659546 | 1569362 | 789735 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 0 | 40010 |
60024 | 100047 | 80013 | 50011 | 10002 | 20000 | 40010 | 10000 | 20024 | 2659978 | 1569650 | 789881 | 70083 | 30059 | 20028 | 10013 | 60020 | 30000 | 10000 | 50001 | 20000 | 0 | 40010 |
60024 | 100047 | 80013 | 50011 | 10002 | 20000 | 40010 | 10000 | 20000 | 2659546 | 1569362 | 789735 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 0 | 40010 |
60024 | 100047 | 80013 | 50011 | 10002 | 20000 | 40010 | 10000 | 20000 | 2659546 | 1569362 | 789735 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 0 | 40010 |
60024 | 100047 | 80013 | 50011 | 10002 | 20000 | 40010 | 10000 | 20000 | 2659546 | 1569362 | 789735 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 0 | 40010 |
60024 | 100047 | 80013 | 50011 | 10002 | 20000 | 40010 | 10000 | 20000 | 2659546 | 1569362 | 789735 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 0 | 40010 |
60024 | 100047 | 80013 | 50011 | 10002 | 20000 | 40010 | 10000 | 20000 | 2659546 | 1569362 | 789735 | 70010 | 30020 | 20000 | 10000 | 60020 | 30000 | 10000 | 50001 | 20000 | 0 | 40010 |
60024 | 100047 | 80013 | 50011 | 10002 | 20000 | 40010 | 10000 | 20024 | 2659978 | 1569652 | 789882 | 70083 | 30059 | 20028 | 10013 | 60020 | 30000 | 10000 | 50001 | 20000 | 0 | 40010 |
Count: 8
Code:
ld1 { v0.1d, v1.1d }, [x6], x8 ld1 { v0.1d, v1.1d }, [x6], x8 ld1 { v0.1d, v1.1d }, [x6], x8 ld1 { v0.1d, v1.1d }, [x6], x8 ld1 { v0.1d, v1.1d }, [x6], x8 ld1 { v0.1d, v1.1d }, [x6], x8 ld1 { v0.1d, v1.1d }, [x6], x8 ld1 { v0.1d, v1.1d }, [x6], x8
mov x7, x6 mov x8, x6 mov x9, x6 mov x10, x6 mov x11, x6 mov x12, x6 mov x13, x6 mov x8, 0
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 1.0006
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) |
160205 | 80151 | 240161 | 80131 | 160030 | 80132 | 160010 | 356399 | 520028 | 240117 | 200 | 160014 | 200 | 240021 | 80005 | 160000 | 100 |
160204 | 80047 | 240105 | 80105 | 160000 | 80106 | 160008 | 280394 | 1280028 | 240114 | 200 | 160012 | 200 | 240102 | 80030 | 160000 | 100 |
160204 | 80047 | 240105 | 80105 | 160000 | 80106 | 160008 | 280394 | 1280028 | 240114 | 200 | 160012 | 200 | 240018 | 80005 | 160000 | 100 |
160204 | 80047 | 240105 | 80105 | 160000 | 80106 | 160008 | 280394 | 1280028 | 240114 | 200 | 160012 | 200 | 240018 | 80005 | 160000 | 100 |
160204 | 80047 | 240105 | 80105 | 160000 | 80106 | 160008 | 280394 | 1280028 | 240114 | 200 | 160012 | 200 | 240018 | 80005 | 160000 | 100 |
160204 | 80047 | 240105 | 80105 | 160000 | 80106 | 160008 | 280394 | 1280028 | 240114 | 200 | 160012 | 200 | 240018 | 80005 | 160000 | 100 |
160204 | 80047 | 240105 | 80105 | 160000 | 80106 | 160008 | 280394 | 1280028 | 240114 | 200 | 160012 | 200 | 240018 | 80005 | 160000 | 100 |
160204 | 80047 | 240105 | 80105 | 160000 | 80106 | 160008 | 280394 | 1280028 | 240114 | 200 | 160012 | 200 | 240018 | 80005 | 160000 | 100 |
160204 | 80047 | 240105 | 80105 | 160000 | 80106 | 160008 | 280394 | 1280028 | 240114 | 200 | 160012 | 200 | 240105 | 80031 | 160000 | 100 |
160204 | 80047 | 240105 | 80105 | 160000 | 80106 | 160008 | 280394 | 1280028 | 240114 | 200 | 160012 | 200 | 240018 | 80005 | 160000 | 100 |
Result (median cycles for code divided by count): 1.0006
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) |
160025 | 80186 | 240074 | 80040 | 160034 | 80042 | 160010 | 336076 | 720248 | 240027 | 20 | 160014 | 20 | 240111 | 80032 | 160000 | 10 |
160024 | 80050 | 240011 | 80011 | 160000 | 80010 | 160000 | 280059 | 1279998 | 240010 | 20 | 160000 | 20 | 240000 | 80001 | 160000 | 10 |
160024 | 80045 | 240011 | 80011 | 160000 | 80010 | 160000 | 280059 | 1279998 | 240010 | 20 | 160000 | 20 | 240000 | 80001 | 160000 | 10 |
160024 | 80045 | 240011 | 80011 | 160000 | 80010 | 160000 | 280059 | 1279998 | 240010 | 20 | 160000 | 20 | 240000 | 80001 | 160000 | 10 |
160024 | 80045 | 240011 | 80011 | 160000 | 80010 | 160000 | 280059 | 1279998 | 240010 | 20 | 160000 | 20 | 240000 | 80001 | 160000 | 10 |
160024 | 80045 | 240011 | 80011 | 160000 | 80010 | 160000 | 280059 | 1279998 | 240010 | 20 | 160000 | 20 | 240000 | 80001 | 160000 | 10 |
160024 | 80045 | 240011 | 80011 | 160000 | 80010 | 160000 | 280059 | 1279998 | 240010 | 20 | 160000 | 20 | 240000 | 80001 | 160000 | 10 |
160024 | 80045 | 240011 | 80011 | 160000 | 80010 | 160000 | 280059 | 1279998 | 240010 | 20 | 160000 | 20 | 240000 | 80001 | 160000 | 10 |
160024 | 80054 | 240011 | 80011 | 160000 | 80010 | 160000 | 280059 | 1279998 | 240010 | 20 | 160000 | 20 | 240000 | 80001 | 160000 | 10 |
160024 | 80045 | 240011 | 80011 | 160000 | 80010 | 160000 | 280059 | 1279998 | 240010 | 20 | 160000 | 20 | 240000 | 80001 | 160000 | 10 |