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:
ld3 { v0.4s, v1.4s, v2.4s }, [x6] 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): 6.000
Issues: 6.002
Integer unit issues: 0.001
Load/store unit issues: 3.000
SIMD/FP unit issues: 3.002
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule simd uop (54) | schedule ldst uop (55) | dispatch simd uop (57) | dispatch ldst uop (58) | 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) |
66005 | 29842 | 6029 | 1 | 3022 | 3006 | 3006 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29600 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29581 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29588 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29624 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29584 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29585 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29581 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29584 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29586 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
Count: 8
Code:
ld3 { v0.4s, v1.4s, v2.4s }, [x6] ld3 { v0.4s, v1.4s, v2.4s }, [x6] ld3 { v0.4s, v1.4s, v2.4s }, [x6] ld3 { v0.4s, v1.4s, v2.4s }, [x6] ld3 { v0.4s, v1.4s, v2.4s }, [x6] ld3 { v0.4s, v1.4s, v2.4s }, [x6] ld3 { v0.4s, v1.4s, v2.4s }, [x6] ld3 { v0.4s, v1.4s, v2.4s }, [x6]
mov x7, x6 mov x8, x6 mov x9, x6 mov x10, x6 mov x11, x6 mov x12, x6 mov x13, x6
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 2.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) |
480205 | 160181 | 480176 | 101 | 240037 | 240038 | 100 | 240036 | 240011 | 300 | 720167 | 2080211 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160055 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720239 | 2080304 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160050 | 480128 | 101 | 240019 | 240008 | 100 | 240010 | 240011 | 300 | 720167 | 2080209 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160046 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720311 | 2080375 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480205 | 160089 | 480186 | 101 | 240047 | 240038 | 100 | 240050 | 240011 | 300 | 720167 | 2080209 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160046 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720167 | 2080209 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160046 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720156 | 2080292 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160046 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720167 | 2080209 | 480121 | 200 | 240012 | 240010 | 200 | 240054 | 720150 | 1 | 240000 | 240000 | 100 |
480204 | 160046 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720167 | 2080209 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160046 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720167 | 2080209 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
Result (median cycles for code divided by count): 2.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) |
480025 | 160251 | 480086 | 11 | 240037 | 240038 | 10 | 240036 | 240053 | 30 | 742892 | 2084605 | 480113 | 20 | 240054 | 240050 | 20 | 240012 | 720030 | 1 | 240000 | 240000 | 10 |
480024 | 160044 | 480034 | 11 | 240015 | 240008 | 10 | 240010 | 240000 | 30 | 720134 | 2080262 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160041 | 480021 | 11 | 240010 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080260 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160041 | 480021 | 11 | 240010 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080260 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480025 | 160087 | 480094 | 11 | 240045 | 240038 | 10 | 240050 | 240000 | 30 | 720134 | 2080260 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160041 | 480021 | 11 | 240010 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080260 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160041 | 480021 | 11 | 240010 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080260 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160041 | 480021 | 11 | 240010 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080260 | 480010 | 20 | 240000 | 240000 | 20 | 240054 | 720150 | 1 | 240000 | 240000 | 10 |
480024 | 160041 | 480021 | 11 | 240010 | 240000 | 10 | 240000 | 240053 | 30 | 723707 | 2084725 | 480113 | 20 | 240054 | 240050 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160041 | 480021 | 11 | 240010 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080260 | 480010 | 20 | 240000 | 240000 | 20 | 240054 | 720150 | 1 | 240000 | 240000 | 10 |