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

FCVTPU (vector, 2S)

Test 1: uops

Code:

  fcvtpu v0.2s, v0.2s
  movi v0.16b, 1
  movi v1.16b, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)031e3f4e51schedule uop (52)schedule simd uop (54)dispatch simd uop (57)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map simd uop (7e)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst simd alu (9a)l1d tlb access (a0)l1d tlb miss (a1)st unit uop (a7)l1d cache writeback (a8)a9accfl1i cache miss demand (d3)d5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)f5f6f7f8fd
10043037240612547251000100010003981600301830373037241432895100010001000303730371110011000000100730116112629100030383038303830383038
10043037240612547251000100010003981600301830373037241432895100010001000303730371110011000000000730116112629100030383038303830383038
1004303724122142547251000100010003981600301830373037241432895100010001000303730371110011000000100730116112629100030383038303830383038
10043037240612547251000100010003981600301830373037241432895100010001000303730371110011000000000730116112629100030383038303830383038
10043037230612547251000100010003981600301830373037241432895100010001000303730371110011000000000730116112629100030383038303830383038
100430372402732547251000100010003981600301830373037241432895100010001000303730371110011000000000730116112629100030383038303830383038
10043037230612547251000100010003981600301830373037241432895100010001000303730371110011000000000730116112629100030383038303830383038
100430372402812547251000100010003981600301830373037241432895100010001000303730371110011000000000730116112629100030383038303830383038
10043037240612547251000100010003981600301830373037241432895100010001000303730371110011000000003730116112629100030383038303830383038
10043037230612547251000100010003981600301830373037241432895100010001000303730371110011000000300730116112629100030383038303830383038

Test 2: Latency 1->2

Code:

  fcvtpu v0.2s, v0.2s
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)03181e3f4e51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)60696b6d6emap stall dispatch (70)simd prf full (72)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fld unit uop (a6)l1d cache writeback (a8)acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
102043003722500201295472510100100100001001000050042771600300180300373003728264732874510100200100002001000030037300841110201100991001001000010000000007101161129633100001003003830038300383003830038
102043003722500815295472510100100100001001000050042771600300180300373003728264032874510252200100002001000030037300371110201100991001001000010000000007101161129633100001003003830038300383003830038
102043003722500338295472510100100100001001000050042771600300180300373003728264082872310100200100002001000030037300371110201100991001001000010000000007101161129633100001003003830038300383003830038
102043003722500422295472510100100100001001000050042771600300180300373003728264032874510100200100002001000030037300371110201100991001001000010000000007101161129633100001003003830038300383003830038
102043003722500986295472510100100100001001000050042771600300180300373003728264032874510100200100002001000030037300371110201100991001001000010000000007101161129633100001003003830038300383003830038
102043003722500905295472510100100100001001000050042771600300180300373003728264032874510100200100002001018230037300371110202100991001001000010000000007101161129633100001003003830038300383003830038
102043003722400453295472510100100100001001000050042771600300180300373003728264032874510100200100002001000030037300371110201100991001001000010000000007101161129633100001003003830038300383003830038
1020430037225002657295472510100100100001001000050042771601300180300373003728264032874510100200100002001000030037300371110201100991001001000010000000007101161129633100001003003830038300383003830038
102043003722500432295472510100100100001001000050042771600300180300373003728264032874510100200100002001000030037300371110201100991001001000010000000007101161129633100001003003830038300383003830038
102043003722500485295472510100100100001001000050042771600300180300373003728264032874510100200100002001000030037300371110201100991001001000010000000007101161129633100001003003830038300383003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)03181e3f4e51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)l1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
1002430037225009429547251001010100001010000504277160300183003730037282863287671001020100002010494300843003711100211091010100001000002640516452962910000103003830038300383003830038
1002430037241006129547251001010100001010000504277160300183003730037282863287671001020100002010000300373003711100211091010100001000000640516452962910000103003830038300383003830038
1002430037225006129547251001010100001010000504277160300183003730037282863287671001020100002010000300373003711100211091010100001000000640416552962910000103003830038300383003830038
1002430037225006129547251001010100001010000504277160300183003730037282863287671001020100002010000300373003711100211091010100001000000640316342962910000103003830038300383003830038
1002430037225006129547251001010100001010000504277160300183003730037282863287671001020100002010000300373003711100211091010100001000000640516452962910000103003830038300383003830038
1002430037224006129547251001010100001010000504277160300183003730037282863287671001020100002010000300373003711100211091010100001000000640416332962910000103003830038300383003830038
1002430037225006129547251001010100001010000504277160300183003730037282863287671001020100002010000300373003711100211091010100001000000640416542962910000103003830038300383003830038
1002430037225006129547251001010100001010000504277160300183003730037282863287671001020100002010000300373003711100211091010100001000030640516542962910000103003830038300383003830038
10024300372250010329547251001010100001010000504277160300183003730037282863287671001020100002010000300373003711100211091010100001000000640416542962910000103003830038300383003830038
1002430037225006129547251001010100001010000504277160300183003730037282863287671001020100002010000300373003711100211091010100001000000640516542962910000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  fcvtpu v0.2s, v8.2s
  fcvtpu v1.2s, v8.2s
  fcvtpu v2.2s, v8.2s
  fcvtpu v3.2s, v8.2s
  fcvtpu v4.2s, v8.2s
  fcvtpu v5.2s, v8.2s
  fcvtpu v6.2s, v8.2s
  fcvtpu v7.2s, v8.2s
  movi v8.16b, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)031e3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)91inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d cache writeback (a8)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
8020420049157074258010810080008100800205006401320200202003920039997769990801202008003220080032200392003911802011009901001008000010000111511801600200360800001002004020040200402004020040
8020420039155030258010810080008100800205006401320200202003920039997769990801202008003220080032200392003911802011009901001008000010000111511801610200360800001002004020040200402004020040
8020420039155030258010810080008100800205006401320200202003920039997769990801202008003220080032200392003911802011009901001008000010000222512812311200450800001002005020050200492004920050
80204200481550642680116100800161008002850064019602002920048200499976109986801282008003820080038200482004811802011009901001008000010053222512912311200450800001002005020050200492005020049
802042004815612642780116100800161008002850064019602002920048200489976109986801282008003820080038200492004911802011009901001008000010000222512812321200460800001002004920049200502005020049
8020420048155064268011610080016100800285006401960200292004820049997699986801282008003820080038200482004811802011009901001008000010000222512812311200450800001002004920049200492004920049
80204200481550106268011610080016100800285006401960200292004820048997699986801282008003820080038200492004811802011009901001008000010000222512812311200450800001002005020050200492005020049
80204200481560190278011610080016100800285006401960200292004920048997610998680128200800382008003820049200481180201100991710010080000100024111511801600200360800001002004020040200402004020040
8020420039156030258010810080008100800205006401320200202003920039997769990801202008003220080032200392003911802011009901001008000010000111511801600200360800001002004020040200402004020040
8020420039155030258010810080008100800205006401320200202003920039997769990801202008003220080032200392003911802011009901001008000010000111511801600200360800001002004020040200402004020040

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03181e3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)5f60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb miss (a1)l1d cache writeback (a8)accfd0l1i cache miss demand (d3)d5map dispatch bubble (d6)dbddfetch restart (de)e0ebec? simd retires (ee)? int retires (ef)f5f6f7f8fd
80024200391550011022580010108000010800005064000001200202003920039999631001980010208000020800002003920039118002110910108000010000502000716096200360080000102004020040200402004020040
8002420039155001242580010108000010800005064000001200202003920039999631001980010208000020800002003920039118002110910108000010000502000616079200360080000102004020040200402004020040
8002420039155001492580010108000010800005064000001200202003920039999631001980010208000020800002003920039118002110910108000010000502000616097200360080000102004020040200402004020040
8002420039155001032580010108000010800005064000000200202003920039999631001980010208000020800002003920039118002110910108000010000502000916097200360080000102007820040200402004020040
800242003915500632580010108000010800005064000000200202003920039999631001980010208000020800002003920039118002110910108000010000502000916097200360080000102004020040200402004020040
800242003915500402580010108000010800005064000000200202003920039999631001980010208000020800002003920039118002110910108000010000502030916079200360080000102004020040200402004020040
800242003915500632580010108000010800005064000001200202003920039999631001980010208000020800002003920039118002110910108000010000502000916097200360080000102004020040200402004020040
800242003915600402580010108000010800005064000000200202003920039999631001980010208000020800002003920039118002110910108000010000502000616079200360080000102004020040200402004020040
800242003915500402580010108000010800005064000000200202003920039999631001980010208000020800002003920039118002110910108000010000502000916099200360080000102004020040200402004020040
800242003915500822580010108000010800005064000001200202003920039999631001980010208000020800002003920039118002110910108000010000502000716069200360080000102004020040200402004020040