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

CBZ (taken)

Test 1: uops

Code:

  cbz x0, .+4

(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)
10044951332633264317113793793437110761
100466710011001100030001000100010001
100461210011001100030001000100010001
100461210011001100030001000100010001
100461210011001100030001000100010001
100461210011001100030001000100010001
100461210011001100030001000100010001
100461210011001100030001000100010001
100461210011001100030001000100010001
100461210011001100030001000100010001

Test 2: throughput

Count: 8

Code:

  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  cbz x0, .+4
  mov x0, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

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)
80204938288285282852839862403308011080210802061100
80204850168010580105801062403188010680206802061100
80204849488010580105801062403188010680206802641100
80204843498010580105801062403188010680206802061100
80204849278010580105801062403188010680206802061100
80204849158010580105801062403188010680206802061100
80204849218010580105801062403188010680206802061100
80204849218010580105801062403188010680206802591100
80204844438010580105801062403188010680206802061100
80205851548014280142801492403188010680206802061100

1000 unrolls and 10 iterations

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

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)
80025367907116322116322129615240312801048011480021110
80025316851800188001880018240059800208003080021110
80024316903800128001280011240033800118002180021110
80024316868800128001280011240077800268003680021110
80024316850800128001280011240033800118002180021110
80024316845800128001280011240050800178002780021110
80024316844800128001280011240033800118002180021110
80024316843800128001280011240056800198002980021110
80024316844800128001280011240033800118002180021110
80025316847800168001680016240033800118002180021110