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:
st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [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, 0 mov x8, 0
(no loop instructions)
Retires (minus 60 nops): 12.000
Issues: 13.000
Integer unit issues: 1.001
Load/store unit issues: 4.000
SIMD/FP unit issues: 8.000
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 ldst uop (7d) | map simd uop (7e) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) |
72007 | 30260 | 13027 | 1003 | 8016 | 4008 | 1002 | 8016 | 4000 | 3000 | 44010 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29984 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29972 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29980 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44010 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29934 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29967 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29921 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29942 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29969 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29973 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
Count: 8
Code:
st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8 st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8 st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8 st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8 st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8 st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8 st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8 st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [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): 4.0006
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) |
960207 | 320136 | 1040216 | 80112 | 640086 | 320018 | 80111 | 640100 | 320038 | 240325 | 3965877 | 3200330 | 1040217 | 200 | 320038 | 640078 | 200 | 720105 | 1600242 | 80012 | 320000 | 640000 | 100 |
960204 | 320046 | 1040106 | 80102 | 640004 | 320000 | 80101 | 640010 | 320006 | 240303 | 3965577 | 3200051 | 1040117 | 200 | 320006 | 640014 | 200 | 720013 | 1600035 | 80002 | 320000 | 640000 | 100 |
960204 | 320050 | 1040108 | 80102 | 640006 | 320000 | 80101 | 640012 | 320039 | 240333 | 5121235 | 3200461 | 1040243 | 200 | 320047 | 640097 | 200 | 720018 | 1600040 | 80002 | 320000 | 640000 | 100 |
960204 | 320050 | 1040108 | 80102 | 640006 | 320000 | 80101 | 640012 | 320002 | 240303 | 5439962 | 3200061 | 1040115 | 200 | 320008 | 640016 | 200 | 720018 | 1600040 | 80002 | 320000 | 640000 | 100 |
960204 | 320050 | 1040108 | 80102 | 640006 | 320000 | 80101 | 640012 | 320038 | 240333 | 5440449 | 3200466 | 1040244 | 200 | 320049 | 640099 | 200 | 720018 | 1600040 | 80002 | 320000 | 640000 | 100 |
960204 | 320050 | 1040108 | 80102 | 640006 | 320000 | 80101 | 640012 | 320002 | 240303 | 5439962 | 3200061 | 1040115 | 200 | 320008 | 640016 | 200 | 720018 | 1600040 | 80002 | 320000 | 640000 | 100 |
960205 | 320107 | 1040214 | 80112 | 640084 | 320018 | 80111 | 640095 | 320002 | 240303 | 5439962 | 3200061 | 1040115 | 200 | 320008 | 640016 | 200 | 720018 | 1600040 | 80002 | 320000 | 640000 | 100 |
960204 | 320050 | 1040108 | 80102 | 640006 | 320000 | 80101 | 640012 | 320002 | 240303 | 5439962 | 3200061 | 1040115 | 200 | 320008 | 640016 | 200 | 720018 | 1600040 | 80002 | 320000 | 640000 | 100 |
960205 | 320096 | 1040215 | 80112 | 640082 | 320021 | 80111 | 640093 | 320002 | 240303 | 5440088 | 4143300 | 1040117 | 200 | 320008 | 640016 | 200 | 720018 | 1600040 | 80002 | 320000 | 640000 | 100 |
960204 | 320040 | 1040106 | 80102 | 640004 | 320000 | 80101 | 640010 | 320002 | 240303 | 5439962 | 3200061 | 1040115 | 200 | 320008 | 640016 | 200 | 720018 | 1600040 | 80002 | 320000 | 640000 | 100 |
Result (median cycles for code divided by count): 4.0006
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) |
960027 | 320144 | 1040132 | 80022 | 640092 | 320018 | 80021 | 640100 | 320036 | 240059 | 5089571 | 3913003 | 1040134 | 20 | 320041 | 640083 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960024 | 320046 | 1040011 | 80011 | 640000 | 320000 | 80010 | 640000 | 320000 | 240030 | 5439958 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960025 | 320102 | 1040113 | 80021 | 640074 | 320018 | 80021 | 640090 | 320000 | 240030 | 5439958 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960024 | 320046 | 1040011 | 80011 | 640000 | 320000 | 80010 | 640000 | 320000 | 240030 | 5439958 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960025 | 320103 | 1040111 | 80021 | 640072 | 320018 | 80021 | 640088 | 320000 | 240030 | 5439958 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960024 | 320046 | 1040011 | 80011 | 640000 | 320000 | 80010 | 640000 | 320000 | 240030 | 5439958 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960025 | 320125 | 1040115 | 80021 | 640076 | 320018 | 80021 | 640092 | 320000 | 240030 | 5439958 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960024 | 320046 | 1040011 | 80011 | 640000 | 320000 | 80010 | 640000 | 320000 | 240030 | 5439958 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960025 | 320099 | 1040116 | 80022 | 640076 | 320018 | 80021 | 640092 | 320000 | 240030 | 5439958 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960024 | 320046 | 1040011 | 80011 | 640000 | 320000 | 80010 | 640000 | 320000 | 240030 | 5439958 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |