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:
scvtf d0, x0, #3
mov x0, 1 mov x1, 2
(no loop instructions)
Retires: 2.000
Issues: 2.000
Integer unit issues: 0.001
Load/store unit issues: 1.000
SIMD/FP unit issues: 1.000
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) |
2004 | 645 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 8000 | 2000 | 1000 | 1000 | 1000 | 1000 | 1 | 1000 | 1000 |
2004 | 542 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 8000 | 2000 | 1000 | 1000 | 1000 | 1000 | 1 | 1000 | 1000 |
2004 | 537 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 8000 | 2000 | 1000 | 1000 | 1000 | 1000 | 1 | 1000 | 1000 |
2004 | 537 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 8000 | 2000 | 1000 | 1000 | 1000 | 1000 | 1 | 1000 | 1000 |
2004 | 537 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 8000 | 2000 | 1000 | 1000 | 1000 | 1000 | 1 | 1000 | 1000 |
2004 | 537 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 8000 | 2000 | 1000 | 1000 | 1000 | 1000 | 1 | 1000 | 1000 |
2004 | 537 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 8000 | 2000 | 1000 | 1000 | 1000 | 1000 | 1 | 1000 | 1000 |
2004 | 537 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 8000 | 2000 | 1000 | 1000 | 1000 | 1000 | 1 | 1000 | 1000 |
2004 | 537 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 8000 | 2000 | 1000 | 1000 | 1000 | 1000 | 1 | 1000 | 1000 |
2004 | 537 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 8000 | 2000 | 1000 | 1000 | 1000 | 1000 | 1 | 1000 | 1000 |
Code:
scvtf d0, x0, #3 fmov x0, d0
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code): 10.0030
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) |
30204 | 100030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10001 | 300 | 1546172 | 2578264 | 30101 | 200 | 10002 | 20004 | 200 | 10002 | 20004 | 10001 | 10000 | 10000 | 10100 |
30204 | 100030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546174 | 2578264 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 20002 | 10001 | 10000 | 10000 | 10100 |
30205 | 100063 | 40108 | 10103 | 20003 | 10002 | 100 | 20029 | 10000 | 300 | 1546338 | 2578524 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 20002 | 10001 | 10000 | 10000 | 10100 |
30204 | 100030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546174 | 2578264 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 20002 | 10001 | 10000 | 10000 | 10100 |
30204 | 100030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546174 | 2578264 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 20002 | 10001 | 10000 | 10000 | 10100 |
30204 | 100030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546174 | 2578264 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 20002 | 10001 | 10000 | 10000 | 10100 |
30204 | 100030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546174 | 2578264 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 20002 | 10001 | 10000 | 10000 | 10100 |
30204 | 100030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546174 | 2578264 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 20002 | 10001 | 10000 | 10000 | 10100 |
30204 | 100030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546174 | 2578264 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 20002 | 10001 | 10000 | 10000 | 10100 |
30204 | 100030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546174 | 2578264 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 20002 | 10001 | 10000 | 10000 | 10100 |
Result (median cycles for code): 10.0030
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) |
30024 | 100031 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546168 | 2578264 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30025 | 100181 | 40017 | 10012 | 20003 | 10002 | 10 | 20028 | 10070 | 30 | 1549875 | 2584520 | 30198 | 20 | 10074 | 20144 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100303 | 40040 | 10019 | 20014 | 10007 | 10 | 20088 | 10051 | 30 | 1549080 | 2582988 | 30148 | 20 | 10057 | 20111 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100205 | 40030 | 10016 | 20009 | 10005 | 10 | 20059 | 10000 | 30 | 1546174 | 2578264 | 30010 | 20 | 10000 | 20000 | 20 | 10037 | 20072 | 10006 | 10000 | 10000 | 10010 |
30024 | 100030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10051 | 30 | 1548139 | 2581541 | 30148 | 20 | 10059 | 20113 | 20 | 10038 | 20075 | 10007 | 10000 | 10000 | 10010 |
30024 | 100030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10034 | 30 | 1548438 | 2582072 | 30102 | 20 | 10038 | 20074 | 20 | 10282 | 20552 | 10043 | 10000 | 10000 | 10010 |
30024 | 101823 | 40195 | 10062 | 20089 | 10044 | 10 | 20557 | 10159 | 30 | 1555390 | 2593641 | 30431 | 20 | 10170 | 20336 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546174 | 2578264 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546174 | 2578264 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546174 | 2578264 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
Count: 8
Code:
scvtf d0, x8, #3 scvtf d1, x8, #3 scvtf d2, x8, #3 scvtf d3, x8, #3 scvtf d4, x8, #3 scvtf d5, x8, #3 scvtf d6, x8, #3 scvtf d7, x8, #3
mov x8, 9
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.5011
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) |
160204 | 40171 | 160115 | 101 | 80006 | 80008 | 100 | 80012 | 80054 | 300 | 240270 | 640464 | 160208 | 200 | 80054 | 80054 | 200 | 80012 | 80012 | 1 | 80000 | 80000 | 100 |
160204 | 40101 | 160115 | 101 | 80006 | 80008 | 100 | 80012 | 80012 | 300 | 240036 | 640080 | 160124 | 200 | 80012 | 80012 | 200 | 80012 | 80012 | 1 | 80000 | 80000 | 100 |
160204 | 40090 | 160115 | 101 | 80006 | 80008 | 100 | 80012 | 80012 | 300 | 240036 | 640080 | 160124 | 200 | 80012 | 80012 | 200 | 80012 | 80012 | 1 | 80000 | 80000 | 100 |
160204 | 40090 | 160115 | 101 | 80006 | 80008 | 100 | 80012 | 80012 | 300 | 295113 | 709590 | 160124 | 200 | 80012 | 80012 | 200 | 80012 | 80012 | 1 | 80000 | 80000 | 100 |
160204 | 40142 | 160115 | 101 | 80006 | 80008 | 100 | 80012 | 80012 | 300 | 247033 | 651678 | 160124 | 200 | 80012 | 80012 | 200 | 80012 | 80012 | 1 | 80000 | 80000 | 100 |
160204 | 40090 | 160115 | 101 | 80006 | 80008 | 100 | 80012 | 80012 | 300 | 240036 | 640080 | 160124 | 200 | 80012 | 80012 | 200 | 80012 | 80012 | 1 | 80000 | 80000 | 100 |
160204 | 40090 | 160115 | 101 | 80006 | 80008 | 100 | 80012 | 80012 | 300 | 240036 | 640080 | 160124 | 200 | 80012 | 80012 | 200 | 80012 | 80012 | 1 | 80000 | 80000 | 100 |
160204 | 40090 | 160115 | 101 | 80006 | 80008 | 100 | 80012 | 80012 | 300 | 240036 | 640080 | 160124 | 200 | 80012 | 80012 | 200 | 80012 | 80012 | 1 | 80000 | 80000 | 100 |
160204 | 40090 | 160115 | 101 | 80006 | 80008 | 100 | 80012 | 80012 | 300 | 240036 | 640080 | 160124 | 200 | 80012 | 80012 | 200 | 80012 | 80012 | 1 | 80000 | 80000 | 100 |
160204 | 40090 | 160115 | 101 | 80006 | 80008 | 100 | 80012 | 80012 | 300 | 240036 | 640080 | 160124 | 200 | 80012 | 80012 | 200 | 80012 | 80012 | 1 | 80000 | 80000 | 100 |
Result (median cycles for code divided by count): 0.5006
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) |
160024 | 40436 | 160027 | 11 | 80007 | 80009 | 10 | 80013 | 80012 | 30 | 240036 | 640080 | 160034 | 20 | 80012 | 80012 | 20 | 80000 | 80000 | 1 | 80000 | 80000 | 10 |
160024 | 40058 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 640000 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 80000 | 1 | 80000 | 80000 | 10 |
160024 | 40046 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 640000 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 80000 | 1 | 80000 | 80000 | 10 |
160024 | 40046 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240138 | 640138 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 80000 | 1 | 80000 | 80000 | 10 |
160024 | 40046 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 242624 | 642624 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 80000 | 1 | 80000 | 80000 | 10 |
160024 | 40046 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 640000 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 80000 | 1 | 80000 | 80000 | 10 |
160024 | 40046 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 640000 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 80000 | 1 | 80000 | 80000 | 10 |
160024 | 40046 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 640000 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 80000 | 1 | 80000 | 80000 | 10 |
160024 | 40046 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 640000 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 80000 | 1 | 80000 | 80000 | 10 |
160025 | 40103 | 160087 | 11 | 80037 | 80039 | 10 | 80055 | 80000 | 30 | 240000 | 640000 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 80000 | 1 | 80000 | 80000 | 10 |