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.8h }, [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 ; nopmov x0, 1 mov x1, 2 mov x8, 0
(no loop instructions)
Retires (minus 60 nops): 1.000
Issues: 2.000
Integer unit issues: 1.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 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) |
| 61005 | 29330 | 2005 | 1003 | 1002 | 1002 | 1000 | 3000 | 3000 | 2000 | 1000 | 2000 | 1001 | 1000 |
| 61004 | 29075 | 2001 | 1001 | 1000 | 1000 | 1000 | 3000 | 3000 | 2000 | 1000 | 2000 | 1001 | 1000 |
| 61004 | 29084 | 2001 | 1001 | 1000 | 1000 | 1000 | 3000 | 3000 | 2000 | 1000 | 2000 | 1001 | 1000 |
| 61004 | 29075 | 2001 | 1001 | 1000 | 1000 | 1000 | 3000 | 3000 | 2000 | 1000 | 2000 | 1001 | 1000 |
| 61004 | 29077 | 2001 | 1001 | 1000 | 1000 | 1000 | 3000 | 3000 | 2000 | 1000 | 2000 | 1001 | 1000 |
| 61004 | 29076 | 2001 | 1001 | 1000 | 1000 | 1000 | 3000 | 3000 | 2000 | 1000 | 2000 | 1001 | 1000 |
| 61004 | 29080 | 2001 | 1001 | 1000 | 1000 | 1001 | 3003 | 3003 | 2002 | 1001 | 2000 | 1001 | 1000 |
| 61004 | 29128 | 2001 | 1001 | 1000 | 1000 | 1000 | 3000 | 3000 | 2000 | 1000 | 2000 | 1001 | 1000 |
| 61004 | 29074 | 2001 | 1001 | 1000 | 1000 | 1000 | 3000 | 3000 | 2000 | 1000 | 2000 | 1001 | 1000 |
| 61004 | 29075 | 2001 | 1001 | 1000 | 1000 | 1000 | 3000 | 3000 | 2000 | 1000 | 2000 | 1001 | 1000 |
Chain cycles: 3
Code:
ld1 { v0.8h }, [x6], x8
fmov x0, d0
eor x8, x8, x0
eor x8, x8, x0
add x6, x6, x8mov 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) |
| 50205 | 100154 | 70109 | 50102 | 10006 | 10001 | 40132 | 10011 | 10003 | 2659448 | 766685 | 794231 | 60110 | 30209 | 10004 | 10003 | 60218 | 20008 | 10003 | 50001 | 10000 | 40100 |
| 50204 | 100049 | 70103 | 50101 | 10002 | 10000 | 40104 | 10003 | 10003 | 2659556 | 766780 | 794321 | 60110 | 30209 | 10004 | 10003 | 60218 | 20008 | 10003 | 50001 | 10000 | 40100 |
| 50204 | 100049 | 70103 | 50101 | 10002 | 10000 | 40104 | 10003 | 10003 | 2659556 | 766780 | 794321 | 60110 | 30209 | 10004 | 10003 | 60218 | 20008 | 10003 | 50001 | 10000 | 40100 |
| 50204 | 100049 | 70103 | 50101 | 10002 | 10000 | 40104 | 10003 | 10003 | 2659556 | 766780 | 794321 | 60110 | 30209 | 10004 | 10003 | 60218 | 20008 | 10003 | 50001 | 10000 | 40100 |
| 50205 | 100081 | 70113 | 50108 | 10004 | 10001 | 40135 | 10012 | 10003 | 2659556 | 766780 | 794321 | 60110 | 30209 | 10004 | 10003 | 60218 | 20008 | 10003 | 50001 | 10000 | 40100 |
| 50204 | 100049 | 70103 | 50101 | 10002 | 10000 | 40104 | 10003 | 10003 | 2659556 | 766780 | 794321 | 60110 | 30209 | 10004 | 10003 | 60218 | 20008 | 10003 | 50001 | 10000 | 40100 |
| 50204 | 100049 | 70103 | 50101 | 10002 | 10000 | 40104 | 10003 | 10003 | 2659556 | 766780 | 794321 | 60110 | 30209 | 10004 | 10003 | 60218 | 20008 | 10003 | 50001 | 10000 | 40100 |
| 50204 | 100049 | 70103 | 50101 | 10002 | 10000 | 40104 | 10003 | 10003 | 2659556 | 766780 | 794321 | 60110 | 30209 | 10004 | 10003 | 60218 | 20008 | 10003 | 50001 | 10000 | 40100 |
| 50204 | 100049 | 70103 | 50101 | 10002 | 10000 | 40104 | 10003 | 10003 | 2659556 | 766780 | 794321 | 60110 | 30209 | 10004 | 10003 | 60218 | 20008 | 10003 | 50001 | 10000 | 40100 |
| 50204 | 100049 | 70103 | 50101 | 10002 | 10000 | 40104 | 10003 | 10003 | 2661851 | 767525 | 795039 | 60110 | 30209 | 10004 | 10003 | 60218 | 20008 | 10003 | 50001 | 10000 | 40100 |
Result (median cycles for code, minus 3 chain cycles): 7.0042
| 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 | 100152 | 70019 | 50012 | 10006 | 10001 | 40042 | 10011 | 10003 | 2659356 | 767168 | 794702 | 60020 | 30029 | 10004 | 10003 | 60020 | 20000 | 10000 | 50001 | 10000 | 40010 |
| 50024 | 100159 | 70013 | 50011 | 10002 | 10000 | 40010 | 10000 | 10003 | 2660294 | 767443 | 795008 | 60020 | 30029 | 10004 | 10003 | 60020 | 20000 | 10000 | 50001 | 10000 | 40010 |
| 50024 | 100042 | 70012 | 50011 | 10001 | 10000 | 40010 | 10000 | 10000 | 2659431 | 767196 | 794724 | 60010 | 30020 | 10000 | 10000 | 60020 | 20000 | 10000 | 50001 | 10000 | 40010 |
| 50024 | 100042 | 70012 | 50011 | 10001 | 10000 | 40010 | 10000 | 10000 | 2659431 | 767196 | 794724 | 60010 | 30020 | 10000 | 10000 | 60020 | 20000 | 10000 | 50001 | 10000 | 40010 |
| 50024 | 100042 | 70012 | 50011 | 10001 | 10000 | 40010 | 10000 | 10000 | 2659431 | 767196 | 794724 | 60010 | 30020 | 10000 | 10000 | 60020 | 20000 | 10000 | 50001 | 10000 | 40010 |
| 50024 | 100042 | 70012 | 50011 | 10001 | 10000 | 40010 | 10000 | 10000 | 2659431 | 767196 | 794724 | 60010 | 30020 | 10000 | 10000 | 60020 | 20000 | 10000 | 50001 | 10000 | 40010 |
| 50025 | 100074 | 70022 | 50018 | 10003 | 10001 | 40045 | 10011 | 10011 | 2660798 | 767625 | 795157 | 60068 | 30058 | 10013 | 10013 | 60020 | 20000 | 10000 | 50001 | 10000 | 40010 |
| 50024 | 100042 | 70012 | 50011 | 10001 | 10000 | 40010 | 10000 | 10000 | 2659431 | 767196 | 794724 | 60010 | 30020 | 10000 | 10000 | 60020 | 20000 | 10000 | 50001 | 10000 | 40010 |
| 50024 | 100042 | 70012 | 50011 | 10001 | 10000 | 40010 | 10000 | 10000 | 2659431 | 767196 | 794724 | 60010 | 30020 | 10000 | 10000 | 60020 | 20000 | 10000 | 50001 | 10000 | 40010 |
| 50024 | 100042 | 70012 | 50011 | 10001 | 10000 | 40010 | 10000 | 10000 | 2659431 | 767196 | 794724 | 60010 | 30020 | 10000 | 10000 | 60020 | 20000 | 10000 | 50001 | 10000 | 40010 |
Count: 8
Code:
ld1 { v0.8h }, [x6], x8
ld1 { v0.8h }, [x6], x8
ld1 { v0.8h }, [x6], x8
ld1 { v0.8h }, [x6], x8
ld1 { v0.8h }, [x6], x8
ld1 { v0.8h }, [x6], x8
ld1 { v0.8h }, [x6], x8
ld1 { v0.8h }, [x6], x8mov 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.0004
| 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 | 80119 | 160175 | 80145 | 80030 | 80157 | 80003 | 1620129 | 1359701 | 160109 | 200 | 80010 | 200 | 160016 | 80001 | 80000 | 100 |
| 80204 | 80043 | 160101 | 80101 | 80000 | 80107 | 80003 | 1620364 | 1359814 | 160110 | 200 | 80008 | 200 | 160096 | 80018 | 80000 | 100 |
| 80204 | 80033 | 160101 | 80101 | 80000 | 80107 | 80003 | 1620364 | 1359814 | 160110 | 200 | 80008 | 200 | 160016 | 80001 | 80000 | 100 |
| 80204 | 80033 | 160101 | 80101 | 80000 | 80107 | 80002 | 1620017 | 1360013 | 160107 | 200 | 80009 | 200 | 160016 | 80001 | 80000 | 100 |
| 80204 | 80033 | 160101 | 80101 | 80000 | 80107 | 80003 | 1620112 | 1359701 | 160109 | 200 | 80010 | 200 | 160016 | 80001 | 80000 | 100 |
| 80204 | 80033 | 160101 | 80101 | 80000 | 80107 | 80003 | 1620365 | 1359814 | 160110 | 200 | 80008 | 200 | 160016 | 80001 | 80000 | 100 |
| 80204 | 80033 | 160101 | 80101 | 80000 | 80107 | 80003 | 1620365 | 1359814 | 160110 | 200 | 80008 | 200 | 160016 | 80001 | 80000 | 100 |
| 80204 | 80033 | 160101 | 80101 | 80000 | 80107 | 80003 | 1620365 | 1359814 | 160110 | 200 | 80008 | 200 | 160016 | 80001 | 80000 | 100 |
| 80204 | 80033 | 160101 | 80101 | 80000 | 80107 | 80003 | 1620365 | 1359814 | 160110 | 200 | 80008 | 200 | 160016 | 80001 | 80000 | 100 |
| 80204 | 80033 | 160101 | 80101 | 80000 | 80107 | 80003 | 1620365 | 1359814 | 160110 | 200 | 80008 | 200 | 160016 | 80001 | 80000 | 100 |
Result (median cycles for code divided by count): 1.0004
| 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) |
| 80026 | 80154 | 160120 | 80073 | 80047 | 80102 | 80003 | 1619712 | 1359778 | 160019 | 20 | 80010 | 20 | 160000 | 80001 | 80000 | 10 |
| 80024 | 80033 | 160011 | 80011 | 80000 | 80010 | 80000 | 1619785 | 1359804 | 160010 | 20 | 80000 | 20 | 160000 | 80001 | 80000 | 10 |
| 80024 | 80033 | 160011 | 80011 | 80000 | 80010 | 80000 | 1619785 | 1359804 | 160010 | 20 | 80000 | 20 | 160000 | 80001 | 80000 | 10 |
| 80024 | 80033 | 160011 | 80011 | 80000 | 80010 | 80000 | 1619785 | 1359804 | 160010 | 20 | 80000 | 20 | 160000 | 80001 | 80000 | 10 |
| 80024 | 80033 | 160011 | 80011 | 80000 | 80010 | 80000 | 1619785 | 1359804 | 160010 | 20 | 80000 | 20 | 160000 | 80001 | 80000 | 10 |
| 80024 | 80033 | 160011 | 80011 | 80000 | 80010 | 80036 | 1620100 | 1360056 | 160086 | 20 | 80048 | 20 | 160000 | 80001 | 80000 | 10 |
| 80024 | 80033 | 160011 | 80011 | 80000 | 80010 | 80000 | 1619785 | 1359804 | 160010 | 20 | 80000 | 20 | 160096 | 80018 | 80000 | 10 |
| 80024 | 80033 | 160011 | 80011 | 80000 | 80010 | 80000 | 1619785 | 1359804 | 160010 | 20 | 80000 | 20 | 160000 | 80001 | 80000 | 10 |
| 80024 | 80033 | 160011 | 80011 | 80000 | 80010 | 80000 | 1619785 | 1359804 | 160010 | 20 | 80000 | 20 | 160000 | 80001 | 80000 | 10 |
| 80024 | 80033 | 160011 | 80011 | 80000 | 80010 | 80000 | 1619785 | 1359804 | 160010 | 20 | 80000 | 20 | 160000 | 80001 | 80000 | 10 |