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

BFXIL (32-bit)

Test 1: uops

Code:

  bfxil w0, w1, #3, #7
  mov x0, 1

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 1.001

Load/store unit issues: 0.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
10041030100110011000300010001000200010011000
10041030100110011000300010001000200010011000
10041030100110011000300010001000200010011000
10041030100110011000300010001000200010011000
10041030100110011000300010001000200010011000
10041030100110011000300010001000200010011000
10041030100110011000300010001000200010011000
10041030100110011000300010001000200010011000
10041030100110011000300010001000200010011000
10041030100110011000300010001000200010011000

Test 2: Latency 1->1

Code:

  bfxil w0, w1, #3, #7
  mov x0, 1

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 1.0034

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
10204100541010410104010105303151010510212202241000410100
10204100341010410104010105303151010510212202241000410100
10204100341010410104010105303151010510212202241000410100
10204100341010410104010105303151010510212202241000410100
10204100341010410104010105303151010510212202241000410100
10204100341010410104010105303151010510212202241000410100
10204100341010410104010105303151010510212202241000410100
10204100341010410104010105303151010510212202241000410100
10204100341010410104010105303151010510212202241000410100
10204100341010410104010105303151010510212202241000410100

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0030

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
1002410035100251002510026300601002010020200201001110010
1002410030100211002110020300601002010020200201001110010
1002410030100211002110020300601002010020200201001110010
1002410030100211002110020300601002010020200201001110010
1002410030100211002110020300601002010020200201001110010
1002410030100211002110020300601002010020200201001110010
1002410030100211002110020300601002010020200201001110010
1002410030100211002110020300601002010020200201001110010
1002410030100211002110020300601002010020200201001110010
1002410030100211002110020300601002010020200201001110010

Test 3: Latency 1->2

Chain cycles: 1

Code:

  add x1, x0, x0
  mov x0, 0
  bfxil w0, w1, #3, #7
  mov x0, 1

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 1 chain cycle): 1.0030

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)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)? int output thing (e9)? int retires (ef)
3020420033202012020120208038003000202072021300402262010130100
3020420030202012020120207038032400202082021300402262010130100
3020420030202012020120208038032400202082021300402262010130100
3020420030202012020120208038032400202082021300402262010130100
3020420241202852028520356038032400202082021300402262010130100
3020420030202012020120208038032400202082021300402262010130100
3020420030202012020120208038032400202082021300402262010130100
3020420030202012020120208038032400202082021300402262010130100
3020420030202012020120208038032400202082021300402262010130100
3020420030202012020120208038032400202082021300402262010130100

1000 unrolls and 10 iterations

Result (median cycles for code, minus 1 chain cycle): 1.0030

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
300242003220011200110200153796852001020020400202000130010
300252006020025200250200483796842001020020400202000130010
300242003020011200110200103797762001020020400202000130010
300242003020011200110200103797762001020020400202000130010
300242003020011200110200103797762001020020400202000130010
300242003020011200110200103797762001020020400202000130010
300242003020011200110200103797762001020020400202000130010
300242003020011200110200103797762001020020400202000130010
300242003020011200110200103797762001020020400202000130010
300242003020011200110200103797762001020020400202000130010

Test 4: throughput

Count: 8

Code:

  bfxil w0, w8, #3, #7
  bfxil w1, w8, #3, #7
  bfxil w2, w8, #3, #7
  bfxil w3, w8, #3, #7
  bfxil w4, w8, #3, #7
  bfxil w5, w8, #3, #7
  bfxil w6, w8, #3, #7
  bfxil w7, w8, #3, #7

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)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)? int output thing (e9)? int retires (ef)
80204800548010480104801050240315008010580210001602248000480100
80204800348010480104801050240315008010580212001602248000480100
80204800348010480104801050240315008010580212001602248000480100
80204800348010480104801050240315008010580212001602248000480100
80204800348010480104801050240315008010580212001602248000480100
80205800648011880118801220240315008010580212001602248000480100
80204800348010480104801050240315008010580212001602248000480100
80204800348010480104801050240315008010580212001602248000480100
80204800348010480104801050240315008010580212001602248000480100
80204800348010480104801050240315008010580212001602248000480100

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)dispatch uop (78)map int uop (7c)map int uop inputs (7f)? int output thing (e9)? int retires (ef)
800248003580025800258002624006080020800201600208001180010
800248003080021800218002024006080020800201600208001180010
800248003080021800218002024006080020800201600928002980010
800248003080021800218002024006080020800201600208001180010
800248003080021800218002024006080020800201600208001180010
800248003080021800218002024006080020800201600208001180010
800248003080021800218002024006080020800201600208001180010
800248003080021800218002024006080020800201600208001180010
800248003080021800218002024006080020800201600208001180010
800248003080021800218002024006080020800201600928002980010