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:
st3 { v0.8h, v1.8h, v2.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): 6.000
Issues: 7.000
Integer unit issues: 1.001
Load/store unit issues: 3.000
SIMD/FP unit issues: 3.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) |
66008 | 30344 | 7036 | 1006 | 3015 | 3015 | 1005 | 3015 | 3000 | 3000 | 25000 | 12000 | 7000 | 3000 | 3000 | 7000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29623 | 7001 | 1001 | 3000 | 3000 | 1000 | 3000 | 3000 | 3000 | 25000 | 12000 | 7000 | 3000 | 3000 | 7000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29845 | 7001 | 1001 | 3000 | 3000 | 1000 | 3000 | 3000 | 3000 | 25000 | 12000 | 7000 | 3000 | 3000 | 7000 | 9000 | 1001 | 3000 | 3000 |
66004 | 30136 | 7001 | 1001 | 3000 | 3000 | 1000 | 3000 | 3000 | 3000 | 25000 | 12000 | 7000 | 3000 | 3000 | 7000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29611 | 7001 | 1001 | 3000 | 3000 | 1000 | 3000 | 3000 | 3000 | 25000 | 12000 | 7000 | 3000 | 3000 | 7000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29612 | 7001 | 1001 | 3000 | 3000 | 1000 | 3000 | 3000 | 3000 | 25000 | 12000 | 7000 | 3000 | 3000 | 7000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29616 | 7001 | 1001 | 3000 | 3000 | 1000 | 3000 | 3000 | 3000 | 25000 | 12000 | 7000 | 3000 | 3000 | 7000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29612 | 7001 | 1001 | 3000 | 3000 | 1000 | 3000 | 3000 | 3000 | 25000 | 12000 | 7000 | 3000 | 3000 | 7000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29570 | 7001 | 1001 | 3000 | 3000 | 1000 | 3000 | 3000 | 3000 | 25000 | 12000 | 7000 | 3000 | 3000 | 7000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29619 | 7001 | 1001 | 3000 | 3000 | 1000 | 3000 | 3000 | 3000 | 25000 | 12000 | 7000 | 3000 | 3000 | 7000 | 9000 | 1001 | 3000 | 3000 |
Count: 8
Code:
st3 { v0.8h, v1.8h, v2.8h }, [x6], x8 st3 { v0.8h, v1.8h, v2.8h }, [x6], x8 st3 { v0.8h, v1.8h, v2.8h }, [x6], x8 st3 { v0.8h, v1.8h, v2.8h }, [x6], x8 st3 { v0.8h, v1.8h, v2.8h }, [x6], x8 st3 { v0.8h, v1.8h, v2.8h }, [x6], x8 st3 { v0.8h, v1.8h, v2.8h }, [x6], x8 st3 { v0.8h, v1.8h, v2.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): 3.0005
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) |
480208 | 240285 | 560182 | 80116 | 240048 | 240018 | 80116 | 240050 | 240002 | 240306 | 4080065 | 960034 | 560112 | 200 | 240007 | 240009 | 200 | 560016 | 720027 | 80002 | 240000 | 240000 | 100 |
480204 | 240039 | 560108 | 80102 | 240006 | 240000 | 80102 | 240008 | 240002 | 240306 | 4079892 | 960034 | 560112 | 200 | 240007 | 240009 | 200 | 560016 | 720027 | 80002 | 240000 | 240000 | 100 |
480204 | 240039 | 560108 | 80102 | 240006 | 240000 | 80102 | 240008 | 240038 | 240348 | 4080482 | 960202 | 560204 | 200 | 240050 | 240054 | 200 | 560016 | 720027 | 80002 | 240000 | 240000 | 100 |
480204 | 240039 | 560108 | 80102 | 240006 | 240000 | 80102 | 240008 | 240002 | 240306 | 4079892 | 960034 | 560112 | 200 | 240007 | 240009 | 200 | 560016 | 720027 | 80002 | 240000 | 240000 | 100 |
480204 | 240039 | 560108 | 80102 | 240006 | 240000 | 80102 | 240008 | 240002 | 240306 | 4079892 | 960034 | 560112 | 200 | 240007 | 240009 | 200 | 560016 | 720027 | 80002 | 240000 | 240000 | 100 |
480204 | 240047 | 560108 | 80102 | 240006 | 240000 | 80102 | 240008 | 240002 | 240306 | 4080065 | 960034 | 560112 | 200 | 240007 | 240009 | 200 | 560016 | 720027 | 80002 | 240000 | 240000 | 100 |
480204 | 240039 | 560108 | 80102 | 240006 | 240000 | 80102 | 240008 | 240002 | 240306 | 4079892 | 960034 | 560112 | 200 | 240007 | 240009 | 200 | 560016 | 720027 | 80002 | 240000 | 240000 | 100 |
480204 | 240039 | 560108 | 80102 | 240006 | 240000 | 80102 | 240008 | 240038 | 240348 | 4080230 | 960202 | 560204 | 200 | 240050 | 240054 | 200 | 560016 | 720027 | 80002 | 240000 | 240000 | 100 |
480204 | 240039 | 560108 | 80102 | 240006 | 240000 | 80102 | 240008 | 240002 | 240306 | 4079892 | 960034 | 560112 | 200 | 240007 | 240009 | 200 | 560016 | 720027 | 80002 | 240000 | 240000 | 100 |
480204 | 240039 | 560108 | 80102 | 240006 | 240000 | 80102 | 240008 | 240002 | 240306 | 4079892 | 960034 | 560112 | 200 | 240007 | 240009 | 200 | 560016 | 720027 | 80002 | 240000 | 240000 | 100 |
Result (median cycles for code divided by count): 3.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) |
480028 | 240150 | 560092 | 80026 | 240048 | 240018 | 80026 | 240050 | 240038 | 240078 | 4080765 | 960202 | 560114 | 20 | 240050 | 240054 | 20 | 560000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 240047 | 560011 | 80011 | 240000 | 240000 | 80010 | 240000 | 240038 | 240078 | 4080788 | 960202 | 560114 | 20 | 240050 | 240054 | 20 | 560116 | 720162 | 80016 | 240000 | 240000 | 10 |
480024 | 240047 | 560011 | 80011 | 240000 | 240000 | 80010 | 240000 | 240000 | 240030 | 4080059 | 960000 | 560010 | 20 | 240000 | 240000 | 20 | 560116 | 720162 | 80016 | 240000 | 240000 | 10 |
480024 | 240047 | 560011 | 80011 | 240000 | 240000 | 80010 | 240000 | 240000 | 240030 | 4080059 | 960000 | 560010 | 20 | 240000 | 240000 | 20 | 560000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 240047 | 560011 | 80011 | 240000 | 240000 | 80010 | 240000 | 240000 | 240030 | 4080059 | 960000 | 560010 | 20 | 240000 | 240000 | 20 | 560000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 240047 | 560011 | 80011 | 240000 | 240000 | 80010 | 240000 | 240038 | 240078 | 4080385 | 960202 | 560114 | 20 | 240050 | 240054 | 20 | 560000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 240047 | 560011 | 80011 | 240000 | 240000 | 80010 | 240000 | 240000 | 240030 | 4080059 | 960000 | 560010 | 20 | 240000 | 240000 | 20 | 560000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 240047 | 560011 | 80011 | 240000 | 240000 | 80010 | 240000 | 240000 | 240030 | 4080059 | 960000 | 560010 | 20 | 240000 | 240000 | 20 | 560000 | 720000 | 80001 | 240000 | 240000 | 10 |
480025 | 240114 | 560092 | 80026 | 240048 | 240018 | 80026 | 240050 | 240000 | 240030 | 4080059 | 960000 | 560010 | 20 | 240000 | 240000 | 20 | 560000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 240047 | 560011 | 80011 | 240000 | 240000 | 80010 | 240000 | 240000 | 240030 | 4080059 | 960000 | 560010 | 20 | 240000 | 240000 | 20 | 560000 | 720000 | 80001 | 240000 | 240000 | 10 |