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

MOVN (32-bit)

Test 1: uops

Code:

  movn w0, #0x1234, lsl 16
  nop ; nop ; nop

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 3 nops): 1.000

Issues: 0.000

Integer unit issues: 0.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)map int uop (7c)? int output thing (e9)? int retires (ef)
4004203511100011000
4004106011100011000
4004102511100011000
4004102511100011000
4004102511100011000
4004102511100011000
4004102511100011000
4004102511100011000
4004102511100011000
4004102511100011000

Test 2: throughput

Count: 8

Code:

  movn w0, #0x1234, lsl 16
  movn w1, #0x1234, lsl 16
  movn w2, #0x1234, lsl 16
  movn w3, #0x1234, lsl 16
  movn w4, #0x1234, lsl 16
  movn w5, #0x1234, lsl 16
  movn w6, #0x1234, lsl 16
  movn w7, #0x1234, lsl 16

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

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)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)
802042031240010400104001312003940013802262000399100080100
8020420096400104001040013120036400128022486252240254285180502
802042009840010400104001312003640012802242000399090080100
802042008640009400094001212003640012802242000399090080100
802042008640009400094001212003640012802242000399090080100
802042008640009400094001212003640012802242000399090080100
802042008640009400094001212003640012802242000399090080100
802042009640010400104001312003640012802242000399090080100
802042008640009400094001212003640012802242000399090080100
802042008640009400094001212003640012802242000399090080100

1000 unrolls and 10 iterations

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

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)
80024219504002240022400251200524001180020204000180010
80024201504001140011400101200454001080020204000180010
80024200654001140011400101200494001080020204000180010
80024201234001140011400101200494001080020204000180010
80024200794001140011400101200494001080020204000180010
80024200544001140011400101200494001080020204000180010
80024200544001140011400101200494001080020204000180010
80024200544001140011400101200494001080020204000180010
80024200544001140011400101200494001080020204000180010
80024200544001140011400101200494001080020204000180010