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.8h, v1.8h, v2.8h, v3.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 ; 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 | 30159 | 13027 | 1003 | 8016 | 4008 | 1002 | 8016 | 4000 | 3000 | 44002 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 30481 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 30111 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29892 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29932 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29882 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29890 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29892 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29891 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9000 | 20000 | 1001 | 4000 | 8000 |
72004 | 29892 | 13001 | 1001 | 8000 | 4000 | 1000 | 8000 | 4000 | 3000 | 44001 | 40000 | 13000 | 4000 | 8000 | 9009 | 20020 | 1001 | 4000 | 8000 |
Count: 8
Code:
st4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8 st4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8 st4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8 st4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8 st4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8 st4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8 st4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8 st4 { v0.8h, v1.8h, v2.8h, v3.8h }, [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 | 320156 | 1040218 | 80112 | 640088 | 320018 | 80111 | 640096 | 320006 | 240303 | 3965583 | 3200051 | 1040117 | 200 | 320006 | 640014 | 200 | 720013 | 1600035 | 80002 | 320000 | 640000 | 100 |
960204 | 320049 | 1040107 | 80102 | 640004 | 320001 | 80101 | 640010 | 320005 | 240303 | 5439979 | 3200051 | 1040116 | 200 | 320006 | 640014 | 200 | 720105 | 1600242 | 80011 | 320000 | 640000 | 100 |
960204 | 320046 | 1040106 | 80102 | 640004 | 320000 | 80101 | 640010 | 320005 | 240303 | 5439979 | 3200051 | 1040116 | 200 | 320006 | 640014 | 200 | 720013 | 1600035 | 80002 | 320000 | 640000 | 100 |
960204 | 320046 | 1040106 | 80102 | 640004 | 320000 | 80101 | 640010 | 320005 | 240303 | 5439979 | 3200051 | 1040116 | 200 | 320006 | 640014 | 200 | 720105 | 1600242 | 80011 | 320000 | 640000 | 100 |
960204 | 320046 | 1040106 | 80102 | 640004 | 320000 | 80101 | 640010 | 320005 | 240303 | 5439979 | 3200051 | 1040116 | 200 | 320006 | 640014 | 200 | 720013 | 1600035 | 80002 | 320000 | 640000 | 100 |
960204 | 320046 | 1040106 | 80102 | 640004 | 320000 | 80101 | 640010 | 320005 | 240303 | 5439979 | 3200051 | 1040116 | 200 | 320006 | 640014 | 200 | 720103 | 1600235 | 80011 | 320000 | 640000 | 100 |
960204 | 320046 | 1040106 | 80102 | 640004 | 320000 | 80101 | 640010 | 320005 | 240303 | 5439979 | 3200051 | 1040116 | 200 | 320006 | 640014 | 200 | 720013 | 1600035 | 80002 | 320000 | 640000 | 100 |
960204 | 320046 | 1040106 | 80102 | 640004 | 320000 | 80101 | 640010 | 320005 | 240303 | 5439979 | 3200051 | 1040116 | 200 | 320006 | 640014 | 200 | 720013 | 1600035 | 80002 | 320000 | 640000 | 100 |
960204 | 320046 | 1040106 | 80102 | 640004 | 320000 | 80101 | 640010 | 320005 | 240303 | 5439979 | 3200051 | 1040116 | 200 | 320006 | 640014 | 200 | 720013 | 1600035 | 80002 | 320000 | 640000 | 100 |
960204 | 320046 | 1040106 | 80102 | 640004 | 320000 | 80101 | 640010 | 320038 | 240332 | 5436230 | 3200430 | 1040239 | 200 | 320049 | 640099 | 200 | 720013 | 1600035 | 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) |
960028 | 320197 | 1040206 | 80029 | 640138 | 320039 | 80029 | 640156 | 320006 | 240033 | 5439973 | 3200051 | 1040027 | 20 | 320006 | 640014 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960024 | 320045 | 1040011 | 80011 | 640000 | 320000 | 80010 | 640000 | 320000 | 240030 | 5439945 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960025 | 320108 | 1040107 | 80021 | 640068 | 320018 | 80020 | 640084 | 320000 | 240030 | 4527987 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960024 | 320045 | 1040011 | 80011 | 640000 | 320000 | 80010 | 640000 | 320000 | 240030 | 5439945 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960025 | 320100 | 1040112 | 80021 | 640070 | 320021 | 80021 | 640086 | 320000 | 240030 | 5439945 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960024 | 320045 | 1040011 | 80011 | 640000 | 320000 | 80010 | 640000 | 320000 | 240030 | 5439945 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960025 | 320090 | 1040112 | 80021 | 640070 | 320021 | 80021 | 640086 | 320000 | 240030 | 5439945 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960024 | 320045 | 1040011 | 80011 | 640000 | 320000 | 80010 | 640000 | 320000 | 240030 | 5439945 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960025 | 320098 | 1040107 | 80021 | 640068 | 320018 | 80020 | 640084 | 320000 | 240030 | 5439945 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |
960024 | 320045 | 1040011 | 80011 | 640000 | 320000 | 80010 | 640000 | 320000 | 240030 | 5439945 | 3200000 | 1040010 | 20 | 320000 | 640000 | 20 | 720000 | 1600000 | 80001 | 320000 | 640000 | 10 |