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.2s, v1.2s, v2.2s }, [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 | 29768 | 6048 | 1003 | 3041 | 2004 | 1002 | 3006 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29550 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23036 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29519 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23036 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29536 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23036 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29538 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23036 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29525 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23036 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29540 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2002 | 3003 | 6006 | 23095 | 6006 | 2002 | 3003 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29621 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6002 | 23039 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29896 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23036 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29533 | 6004 | 1001 | 3003 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23036 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
Count: 8
Code:
ld3 { v0.2s, v1.2s, v2.2s }, [x6], x8 ld3 { v0.2s, v1.2s, v2.2s }, [x6], x8 ld3 { v0.2s, v1.2s, v2.2s }, [x6], x8 ld3 { v0.2s, v1.2s, v2.2s }, [x6], x8 ld3 { v0.2s, v1.2s, v2.2s }, [x6], x8 ld3 { v0.2s, v1.2s, v2.2s }, [x6], x8 ld3 { v0.2s, v1.2s, v2.2s }, [x6], x8 ld3 { v0.2s, v1.2s, v2.2s }, [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 | 160286 | 480240 | 80115 | 240097 | 160028 | 80115 | 240037 | 160038 | 240355 | 480132 | 1920381 | 480212 | 200 | 160038 | 240055 | 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 | 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 | 480950 | 1921655 | 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 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400205 | 160086 | 480215 | 80117 | 240066 | 160032 | 80119 | 240055 | 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 |
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) |
400026 | 160220 | 480249 | 80038 | 240157 | 160054 | 80039 | 240079 | 160008 | 240042 | 480234 | 1920903 | 480033 | 20 | 160008 | 240011 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160046 | 480053 | 80014 | 240033 | 160006 | 80014 | 240011 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240054 | 480106 | 80017 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160008 | 240042 | 480036 | 1920538 | 480033 | 20 | 160008 | 240011 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240057 | 480110 | 80017 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |