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

REV16 (32-bit)

Test 1: uops

Code:

  rev16 w0, w0
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 1.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)031e3a3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)606d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst int alu (97)l1d cache writeback (a8)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004103580061862251000100010001691601035103572838681000100010001035411110011000073241229371000100010361036103610361036
1004103580061862251000100010001691601035103572838681000100010001035411110011000073241229371000100010361036103610361036
1004103570061862251000100010001691601035103572838681000100010001035411110011000073241229371000100010361036103610361036
1004103570061862251000100010001691601035103572838681000100010001035411110011000073241229371000100010361036103610361036
1004103570061862251000100010001691601035103572838681000100010001035411110011000073241229371000100010361036103610361036
1004103580061862251000100010001691601035103572838681000100010001035411110011000073241229371000100010361036103610361036
1004103570061862251000100010001691601035103572838681000100010001035411110011000073241229371000100010361036103610361036
1004103570061862251000100010001691601035103572838681000100010001035411110011000073241229371000100010361036103610361036
1004103580061862251000100010001691611035103572838681000100010001035411110011000073241229371000100010361036103610361036
1004103580061862251000100010001691601035103572838681000100010001035411110011000073241229371000100010361036103610361036

Test 2: Latency 1->2

Code:

  rev16 w0, w0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 1.0035

retire uop (01)cycle (02)03mmu table walk instruction (07)1e3a3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204100357500061987725101001010010100884990496955100351003585803872210100102001020010035411110201100991001010010071613711994110000101001003610036100361003610036
10204100357500061987725101001010010100886640496955100351003585803872210100102001020010035411110201100991001010010071013711994110000101001003610036100361003610036
1020410035750282061987725101001010010100886640496955100351003585803872210100102001020010035411110201100991001010010071013711994110000101001003610036100361003610036
10204100357600067987425101001010010125884990496955100351003585833872210100102001020010035431110201100991001010010071013711994110000101001003610036100361003610036
102041003575063261987725101001012510125884990496955100351003585803872210125102001020010035411110201100991001010010071013711994110000101001003610036100361003610036
10204100357500061987725101001012410100886640496955100351003585833872210125102001020010035411110201100991001010010071013711994110000101001003610036100361003610036
10204100357500061987725101001010010100886640496955100351003585803872210100102001020010035411110201100991001010010071013711994110000101001003610036100361003610036
10204100357509061987725101001010010100886640496955100351003585803872210100102001020010035411110201100991001010010071013711994110000101001003610036100361003610036
10204100357500061987725101001010010100886640496955100351003585803872210100102001020010035411110201100991001010010071013711994110025101001003610036100361003610036
102041003575000251987725101001010010100886640496955100351003585803875310100102001020010035431110201100991001010010071013711994110000101001003610036100361003610036

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0035

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk data (08)l2 tlb miss data (0b)181e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10024100357500000619863251001010010100109078314969551003510035860238740100101002010020100354111100211091010010101064024122994010000100101003610036100361003610036
100241003575000001269863251001010010100108878414969551003510035860238740100101002010020100354111100211091010010100064024132994010000100101003610036100361003610036
10024100357500000619863251001010010100108878414969551003510035860238740100101002010020100354111100211091010010100064024122994010000100101003610036100361003610036
10024100357500000619863491001010010100108878414969551003510035860238740100101002010020100354111100211091010010100964024122994010000100101003610036100361003610036
10024100357501000619863251001010010100108878414969551003510035860238740100101002010020100354111100211091010010100064024122994010022100101003610036100361003610036
10024100357500000619863251001010010100108878414969551003510035860238740100101002010020100354111100211091010010100064024122994010000100101003610036100361003610036
10024100357500000619863251001010034100108878414969551003510035860238740100101002010020100354111100211091010010100064024122994010000100101003610036100361003610036
10024100357500000619863251001010010100108878404969551003510035860238740100101002010020100354111100211091010010100064024122994010000100101003610036100361003610036
100241003575000002329863251001010010100108878404969551003510035860238740100101002010020100354111100211091010010100064024122994010000100101003610036100361003610036
100241003575000006198632510010100101001088784149695510035100358602387401001010020100201003541111002110910100101004264024122994010000100101003610036100361003610036

Test 3: throughput

Count: 8

Code:

  rev16 w0, w8
  rev16 w1, w8
  rev16 w2, w8
  rev16 w3, w8
  rev16 w4, w8
  rev16 w5, w8
  rev16 w6, w8
  rev16 w7, w8
  mov x8, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code divided by count): 0.1675

retire uop (01)cycle (02)0318191e3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d cache writeback (a8)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802041341310000872827801368013680148400710149103101339013390332663336804168026480264133903911802011009910080100100001115120216121338780036801001339113391133911339113391
8020413390100001772827801368013680148400710149103101339013390332663336801488026480264133903911802011009910080100100001115120116121338780036801001339113391133911339113391
80204133901000002827801368013680148400710149103101339013390332663336801488026480264133903911802011009910080100100001115120216121338780036801001339113391133911339113391
80204133901010002827801368013680148400710049103101339013390332663336801488026480264133903911802011009910080100100001115120216221338780036801001339113391133911339113391
80204133901000062827801368013680148400710049103101339013390332663336801488026480264133903911802011009910080100100001115120216211338780036801001339113391133911339113391
80204133901010002827801368013680148400710049103101339013390332663336801488026480264133903911802011009910080100100001115120216211338780036801001339113391133911339113391
8020413390100002252827801368013680148400710149103101339013390332663336801488026480264133903911802011009910080100100001115120116221338780036801001339113391133911339113391
80204133901000002827801368013680148400710149103101339013390332663336801488026480264133903911802011009910080100100001115120216121338780036801001339113391133911339113391
80204133901000092827801368013680148400710049103101339013390332663336801488026480264133903911802011009910080100100001115120216231338780036801001339113391133911339113391
80204133901000002827801368013680148400710049103101339013390332663336801488026480264133903911802011009910080100100001115120216211338780036801001339113391133911339113391

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 0.1671

retire uop (01)cycle (02)031e3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)5f60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d tlb miss (a1)st unit uop (a7)l1d cache writeback (a8)accfd0d2l1i cache miss demand (d3)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0? int output thing (e9)eb? int retires (ef)f5f6f7f8fd
800241339010103525800108001080010400050014910291133711337133303334880010800208002013371391180021109108001010001950200005190005513368800000800101337213372133721337213372
8002413371100123525800108001080010400050004910291133711337133303334880010800208002013371391180021109108001010000050200003190003513368800000800101337213372133721337213372
800241337110003525800108001080010400050014910291133711337133303334880010800208002013371391180021109108001010000050200005190005313368800000800101337213372133721337213372
800241337110103525800108001080010400050014910291133711337133303334880010800208002013371391180021109108001010001050200005190005313368800000800101337213372133721337213372
800241337110003525800108001080010400050014910291133711337133303334880010800208002013371391180021109108001010000350200005190005313368800000800101337213372133721337213372
8002413371100035258001080010800104000501149102911337113371333033348800108002080020133713911800211091080010100023050200005190005313368800000800101337213372133721337213372
800241337110003525800108001080010400050014910291133711337133303334880010800208002013371391180021109108001010000050200003190003613368800000800101337213372133721337213372
800241337110003525800108001080010400050014910291133711337133303334880010800208002013371391180021109108001010001050200005190004513368800000800101337213372133721337213372
800241337110003525800108001080010400050014910291133711337133303334880010800208002013371391180021109108001010000350200005190005313368800000800101337213372133721337213372
800241337110003525800108001080010400050014910291133711337133303334880010800208002013371391180021109108001010001050200003190005513368800000800101337213372133721337213372