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:
ld3r { v0.1d, v1.1d, v2.1d }, [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, 1 mov x1, 2 mov x8, 0
(no loop instructions)
Retires (minus 60 nops): 5.000
Issues: 6.003
Integer unit issues: 1.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 3.003
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) |
65005 | 29849 | 6048 | 1003 | 3041 | 2004 | 1002 | 3006 | 2000 | 3000 | 6000 | 23051 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29523 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2002 | 3003 | 6047 | 23107 | 6006 | 2002 | 3003 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29612 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23030 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29615 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23030 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29632 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23030 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29689 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23030 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29647 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23030 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29627 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23030 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29654 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2002 | 3003 | 6104 | 23202 | 6006 | 2002 | 3003 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29777 | 6010 | 1002 | 3006 | 2002 | 1001 | 3003 | 2002 | 3003 | 6006 | 23054 | 6006 | 2002 | 3003 | 3003 | 6006 | 1002 | 2000 | 3000 |
Count: 8
Code:
ld3r { v0.1d, v1.1d, v2.1d }, [x6], x8 ld3r { v0.1d, v1.1d, v2.1d }, [x6], x8 ld3r { v0.1d, v1.1d, v2.1d }, [x6], x8 ld3r { v0.1d, v1.1d, v2.1d }, [x6], x8 ld3r { v0.1d, v1.1d, v2.1d }, [x6], x8 ld3r { v0.1d, v1.1d, v2.1d }, [x6], x8 ld3r { v0.1d, v1.1d, v2.1d }, [x6], x8 ld3r { v0.1d, v1.1d, v2.1d }, [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): 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) |
400205 | 160161 | 480240 | 80115 | 240097 | 160028 | 80115 | 240037 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240057 | 480110 | 80017 | 160000 | 240000 | 100 |
400204 | 160056 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 482006 | 1923509 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240057 | 480110 | 80017 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160038 | 240355 | 481380 | 1922937 | 480212 | 200 | 160038 | 240055 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
Result (median cycles for code divided by count): 2.0004
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) |
400025 | 160158 | 480150 | 80025 | 240097 | 160028 | 80025 | 240037 | 160008 | 240042 | 480036 | 1920542 | 480033 | 20 | 160008 | 240011 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160037 | 480029 | 80011 | 240018 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 1920256 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160037 | 480029 | 80011 | 240018 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 1920256 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400025 | 160081 | 480116 | 80027 | 240057 | 160032 | 80028 | 240053 | 160000 | 240030 | 480022 | 1920256 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160037 | 480029 | 80011 | 240018 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 1920256 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160037 | 480029 | 80011 | 240018 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 1920256 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160037 | 480029 | 80011 | 240018 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 1920256 | 480010 | 20 | 160000 | 240000 | 20 | 240054 | 480106 | 80017 | 160000 | 240000 | 10 |
400024 | 160037 | 480029 | 80011 | 240018 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 1920256 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160037 | 480029 | 80011 | 240018 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 1920256 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160037 | 480029 | 80011 | 240018 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 1920256 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |