IDIV (R16)
Summary:
"Signed Divide"
Reference:
https://www.felixcloutier.com/x86/idiv
Extension:
BASE
Category:
BINARY
ISA-Set:
I86
CPL:
3
iform:
IDIV_GPRv
iclass:
IDIV
ASM:
IDIV
Operands
Operand 1 (r): Register (AX, CX, DX, BX, SP, BP, SI, DI, R8W, R9W, R10W, R11W, R12W, R13W, R14W, R15W)
Operand 2 (r/w, suppressed): Register (AX)
Operand 3 (r/w, suppressed): Register (DX)
Operand 4 (w, suppressed): Flags (AF: undef, CF: undef, OF: undef, PF: undef, SF: undef, ZF: undef)
Available performance data
Arrow Lake-P
Arrow Lake-E
Meteor Lake-P
Meteor Lake-E
Emerald Rapids
Alder Lake-P
Alder Lake-E
Rocket Lake
Tiger Lake
Ice Lake
Cascade Lake
Cannon Lake
Skylake-X
Coffee Lake
Kaby Lake
Skylake
Broadwell
Haswell
Ivy Bridge
Sandy Bridge
Westmere
Nehalem
Wolfdale
Conroe
Tremont
Goldmont Plus
Goldmont
Airmont
Bonnell
AMD Zen 5
AMD Zen 4
AMD Zen 3
AMD Zen 2
AMD Zen+
Arrow Lake-P
Measurements
Latencies
Latency operand 1 → 2:
11
Latency operand 1 → 3:
15
Latency operand 2 → 2:
13
Latency operand 2 → 3:
17
Latency operand 3 → 2:
17
Latency operand 3 → 3:
17
Throughput
Measured (loop):
6.15
Measured (unrolled):
6.20
Number of μops
Executed: 6
Retire slots: 6
Decoded (MITE): 3
Microcode Sequencer (MS): 3
Port usage:
3*ALU+1*INT_OTHER+2*SLOW
Arrow Lake-E
Measurements
Latencies
Latency operand 1 → 2:
12 ≤ lat ≤ 16
Latency operand 1 → 3:
13 ≤ lat ≤ 17
Latency operand 2 → 2:
11 ≤ lat ≤ 15
Latency operand 2 → 3:
12 ≤ lat ≤ 16
Latency operand 3 → 2:
11 ≤ lat ≤ 15
Latency operand 3 → 3:
11 ≤ lat ≤ 15
Throughput
Measured (loop):
5.50
Measured (unrolled):
5.50
Number of μops
Executed: 5
Microcode Sequencer (MS): 5
Meteor Lake-P
Measurements
Latencies
Latency operand 1 → 2:
11
Latency operand 1 → 3:
15
Latency operand 2 → 2:
12
Latency operand 2 → 3:
16
Latency operand 3 → 2:
16
Latency operand 3 → 3:
16
Throughput
Computed from the port usage: 3.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 4
Retire slots: 6
Decoded (MITE): 4
Microcode Sequencer (MS): 2
Port usage:
1*p0156B+3*p1
Meteor Lake-E
Measurements
Latencies
Latency operand 1 → 2:
12 ≤ lat ≤ 16
Latency operand 1 → 3:
13 ≤ lat ≤ 17
Latency operand 2 → 2:
11 ≤ lat ≤ 15
Latency operand 2 → 3:
12 ≤ lat ≤ 16
Latency operand 3 → 2:
11 ≤ lat ≤ 15
Latency operand 3 → 3:
11 ≤ lat ≤ 15
Throughput
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 4
Microcode Sequencer (MS): 3
Emerald Rapids
Measurements
Latencies
Latency operand 1 → 2:
11
Latency operand 1 → 3:
15
Latency operand 2 → 2:
12
Latency operand 2 → 3:
16
Latency operand 3 → 2:
16
Latency operand 3 → 3:
16
Throughput
Computed from the port usage: 3.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 4
Retire slots: 6
Decoded (MITE): 4
Microcode Sequencer (MS): 2
Port usage:
1*p0156B+3*p1
Alder Lake-P
Measurements
Latencies
Latency operand 1 → 2:
11
Latency operand 1 → 3:
15
Latency operand 2 → 2:
12
Latency operand 2 → 3:
16
Latency operand 3 → 2:
16
Latency operand 3 → 3:
16
Throughput
Computed from the port usage: 3.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 4
Retire slots: 6
Decoded (MITE): 4
Microcode Sequencer (MS): 2
Port usage:
1*p0156B+3*p1
Alder Lake-E
Measurements
Latencies
Latency operand 1 → 2:
12 ≤ lat ≤ 19
Latency operand 1 → 3:
13 ≤ lat ≤ 20
Latency operand 2 → 2:
11 ≤ lat ≤ 18
Latency operand 2 → 3:
12 ≤ lat ≤ 19
Latency operand 3 → 2:
11 ≤ lat ≤ 18
Latency operand 3 → 3:
11 ≤ lat ≤ 18
Throughput
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 4
Microcode Sequencer (MS): 3
Rocket Lake
Measurements
Latencies
Latency operand 1 → 2:
11
Latency operand 1 → 3:
15
Latency operand 2 → 2:
12
Latency operand 2 → 3:
16
Latency operand 3 → 2:
16
Latency operand 3 → 3:
16
Throughput
Computed from the port usage: 2.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 6
Retire slots: 6
Decoded (MITE): 4
Microcode Sequencer (MS): 2
Port usage:
3*p0156+2*p1+1*p15
Tiger Lake
Measurements
Latencies
Latency operand 1 → 2:
11
Latency operand 1 → 3:
15
Latency operand 2 → 2:
12
Latency operand 2 → 3:
16
Latency operand 3 → 2:
16
Latency operand 3 → 3:
16
Throughput
Computed from the port usage: 2.00
Measured (loop):
6.00
Measured (unrolled):
6.04
Number of μops
Executed: 6
Retire slots: 6
Decoded (MITE): 4
Microcode Sequencer (MS): 2
Port usage:
3*p0156+2*p1+1*p15
Ice Lake
Measurements
Latencies
Latency operand 1 → 2:
11
Latency operand 1 → 3:
15
Latency operand 2 → 2:
12
Latency operand 2 → 3:
16
Latency operand 3 → 2:
16
Latency operand 3 → 3:
16
Throughput
Computed from the port usage: 2.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 6
Retire slots: 6
Decoded (MITE): 4
Microcode Sequencer (MS): 2
Port usage:
3*p0156+2*p1+1*p15
Cascade Lake
Measurements
Latencies
Latency operand 1 → 2:
23
Latency operand 1 → 3:
24
Latency operand 2 → 2:
21
Latency operand 2 → 3:
22
Latency operand 3 → 2:
22
Latency operand 3 → 3:
22
Throughput
Computed from the port usage: 4.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 10
Retire slots: 10
Decoded (MITE): 3
Microcode Sequencer (MS): 7
Port usage:
2*p0+1*p0156+1*p06+1*p15+4*p5
Cannon Lake
Measurements
Latencies
Latency operand 1 → 2:
11
Latency operand 1 → 3:
15
Latency operand 2 → 2:
13
Latency operand 2 → 3:
16
Latency operand 3 → 2:
16
Latency operand 3 → 3:
16
Throughput
Computed from the port usage: 2.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 6
Retire slots: 6
Decoded (MITE): 4
Microcode Sequencer (MS): 2
Port usage:
1*p015+2*p0156+2*p1+1*p15
Skylake-X
Measurements
Latencies
Latency operand 1 → 2:
23
Latency operand 1 → 3:
24
Latency operand 2 → 2:
21
Latency operand 2 → 3:
22
Latency operand 3 → 2:
22
Latency operand 3 → 3:
22
Throughput
Computed from the port usage: 4.00
Measured (loop):
6.00
Measured (unrolled):
6.03
Number of μops
Executed: 10
Retire slots: 10
Decoded (MITE): 3
Microcode Sequencer (MS): 7
Port usage:
2*p0+2*p0156+1*p06+1*p15+4*p5
IACA 2.3
Throughput
Computed from the port usage: 16.50
IACA:
98.19
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
IACA 3.0
Throughput
Computed from the port usage: 16.50
IACA:
96.63
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
Coffee Lake
Measurements
Latencies
Latency operand 1 → 2:
23
Latency operand 1 → 3:
24
Latency operand 2 → 2:
21
Latency operand 2 → 3:
22
Latency operand 3 → 2:
22
Latency operand 3 → 3:
22
Throughput
Computed from the port usage: 4.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 10
Retire slots: 10
Decoded (MITE): 3
Microcode Sequencer (MS): 7
Port usage:
2*p0+2*p0156+1*p06+1*p15+4*p5
Kaby Lake
Measurements
Latencies
Latency operand 1 → 2:
23
Latency operand 1 → 3:
24
Latency operand 2 → 2:
21
Latency operand 2 → 3:
22
Latency operand 3 → 2:
22
Latency operand 3 → 3:
22
Throughput
Computed from the port usage: 4.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 10
Retire slots: 10
Decoded (MITE): 3
Microcode Sequencer (MS): 7
Port usage:
2*p0+2*p0156+1*p06+1*p15+4*p5
Skylake
Measurements
Latencies
Latency operand 1 → 2:
23
Latency operand 1 → 3:
24
Latency operand 2 → 2:
21
Latency operand 2 → 3:
22
Latency operand 3 → 2:
22
Latency operand 3 → 3:
22
Throughput
Computed from the port usage: 4.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 10
Retire slots: 10
Decoded (MITE): 3
Microcode Sequencer (MS): 7
Port usage:
2*p0+2*p0156+1*p06+1*p15+4*p5
IACA 2.3
Throughput
Computed from the port usage: 16.50
IACA:
98.19
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
IACA 3.0
Throughput
Computed from the port usage: 16.50
IACA:
96.63
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
Broadwell
Measurements
Latencies
Latency operand 1 → 2:
20 ≤ lat ≤ 23
Latency operand 1 → 3:
21 ≤ lat ≤ 24
Latency operand 2 → 2:
21 ≤ lat ≤ 24
Latency operand 2 → 3:
23 ≤ lat ≤ 26
Latency operand 3 → 2:
23 ≤ lat ≤ 26
Latency operand 3 → 3:
22 ≤ lat ≤ 25
Throughput
Computed from the port usage: 2.50
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 10
Retire slots: 10
Decoded (MITE): 3
Microcode Sequencer (MS): 7
Port usage:
2*p0+2*p0156+1*p06+2*p1+1*p15+2*p5
IACA 2.2
Throughput
Computed from the port usage: 16.50
IACA:
112.05 (with the -no_interiteration flag: 103.24)
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
Haswell
Measurements
Latencies
Latency operand 1 → 2:
20 ≤ lat ≤ 23
Latency operand 1 → 3:
21 ≤ lat ≤ 24
Latency operand 2 → 2:
21 ≤ lat ≤ 25
Latency operand 2 → 3:
22 ≤ lat ≤ 25
Latency operand 3 → 2:
22 ≤ lat ≤ 25
Latency operand 3 → 3:
22 ≤ lat ≤ 25
Throughput
Computed from the port usage: 2.50
Measured (loop):
8.07
Measured (unrolled):
8.05
Number of μops
Executed: 10
Retire slots: 10
Decoded (MITE): 3
Microcode Sequencer (MS): 7
Port usage:
2*p0+2*p0156+1*p06+2*p1+1*p15+2*p5
IACA 2.2
Throughput
Computed from the port usage: 16.50
IACA:
112.05 (with the -no_interiteration flag: 103.24)
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
IACA 2.3
Throughput
Computed from the port usage: 16.50
IACA:
107.71
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
IACA 3.0
Throughput
Computed from the port usage: 16.50
IACA:
106.11
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
Ivy Bridge
Measurements
Latencies
Latency operand 1 → 2:
18 ≤ lat ≤ 21
Latency operand 1 → 3:
19 ≤ lat ≤ 22
Latency operand 2 → 2:
19 ≤ lat ≤ 22
Latency operand 2 → 3:
20 ≤ lat ≤ 23
Latency operand 3 → 2:
20 ≤ lat ≤ 23
Latency operand 3 → 3:
20 ≤ lat ≤ 23
Throughput
Computed from the port usage: 3.33
Measured (loop):
8.15
Measured (unrolled):
8.04
Number of μops
Executed: 10
Retire slots: 10
Decoded (MITE): 3
Microcode Sequencer (MS): 7
Port usage:
2*p0+2*p015+2*p05+2*p1+2*p5
Sandy Bridge
Measurements
Latencies
Latency operand 1 → 2:
18 ≤ lat ≤ 21
Latency operand 1 → 3:
19 ≤ lat ≤ 22
Latency operand 2 → 2:
19 ≤ lat ≤ 22
Latency operand 2 → 3:
20 ≤ lat ≤ 23
Latency operand 3 → 2:
20 ≤ lat ≤ 23
Latency operand 3 → 3:
20 ≤ lat ≤ 23
Throughput
Computed from the port usage: 3.33
Measured (loop):
11.08
Measured (unrolled):
11.00
Number of μops
Executed: 10
Retire slots: 10
Decoded (MITE): 3
Microcode Sequencer (MS): 7
Port usage:
2*p0+2*p015+2*p05+2*p1+2*p5
Westmere
Measurements
Latencies
Latency operand 1 → 2:
17 ≤ lat ≤ 23
Latency operand 1 → 3:
17 ≤ lat ≤ 23
Latency operand 2 → 2:
19 ≤ lat ≤ 25
Latency operand 2 → 3:
19 ≤ lat ≤ 25
Latency operand 3 → 2:
19 ≤ lat ≤ 25
Latency operand 3 → 3:
19 ≤ lat ≤ 25
Throughput
Computed from the port usage: 2.67
Measured (loop):
7.00
Measured (unrolled):
7.02
Number of μops
Executed: 8
Retire slots: 8
Microcode Sequencer (MS): 15
Port usage:
1*p0+3*p015+2*p05+2*p1
Nehalem
Measurements
Latencies
Latency operand 1 → 2:
17 ≤ lat ≤ 23
Latency operand 1 → 3:
17 ≤ lat ≤ 23
Latency operand 2 → 2:
19 ≤ lat ≤ 25
Latency operand 2 → 3:
19 ≤ lat ≤ 25
Latency operand 3 → 2:
19 ≤ lat ≤ 25
Latency operand 3 → 3:
19 ≤ lat ≤ 25
Throughput
Computed from the port usage: 2.67
Measured (loop):
7.00
Measured (unrolled):
7.02
Number of μops
Executed: 8
Retire slots: 8
Microcode Sequencer (MS): 15
Port usage:
1*p0+3*p015+2*p05+2*p1
Wolfdale
Measurements
Latencies
Latency operand 1 → 2:
14 ≤ lat ≤ 20
Latency operand 1 → 3:
14 ≤ lat ≤ 20
Latency operand 2 → 2:
15 ≤ lat ≤ 21
Latency operand 2 → 3:
15 ≤ lat ≤ 21
Latency operand 3 → 2:
15 ≤ lat ≤ 21
Latency operand 3 → 3:
15 ≤ lat ≤ 21
Throughput
Computed from the port usage: 2.67
Measured (loop):
5.00
Measured (unrolled):
5.00
Number of μops
Executed: 8
Port usage:
1*p0+3*p015+2*p05+2*p1
Conroe
Measurements
Latencies
Latency operand 1 → 2:
17 ≤ lat ≤ 25
Latency operand 1 → 3:
17 ≤ lat ≤ 25
Latency operand 2 → 2:
17 ≤ lat ≤ 25
Latency operand 2 → 3:
18 ≤ lat ≤ 26
Latency operand 3 → 2:
18 ≤ lat ≤ 26
Latency operand 3 → 3:
17 ≤ lat ≤ 25
Throughput
Computed from the port usage: 1.50
Measured (loop):
12.03
Measured (unrolled):
12.06
Number of μops
Executed: 4
Port usage:
1*p0+1*p015+2*p05
Tremont
Measurements
Latencies
Latency operand 1 → 2:
11 ≤ lat ≤ 18
Latency operand 1 → 3:
12 ≤ lat ≤ 19
Latency operand 2 → 2:
11 ≤ lat ≤ 18
Latency operand 2 → 3:
12 ≤ lat ≤ 19
Latency operand 3 → 2:
11 ≤ lat ≤ 18
Latency operand 3 → 3:
11 ≤ lat ≤ 18
Throughput
Measured (loop):
11.00
Measured (unrolled):
11.00
Number of μops
Executed: 5
Microcode Sequencer (MS): 4
Goldmont Plus
Measurements
Latencies
Latency operand 1 → 2:
13 ≤ lat ≤ 18
Latency operand 1 → 3:
14 ≤ lat ≤ 19
Latency operand 2 → 2:
13 ≤ lat ≤ 18
Latency operand 2 → 3:
14 ≤ lat ≤ 19
Latency operand 3 → 2:
13 ≤ lat ≤ 18
Latency operand 3 → 3:
13 ≤ lat ≤ 18
Throughput
Measured (loop):
13.00
Measured (unrolled):
13.00
Number of μops
Executed: 4
Microcode Sequencer (MS): 4
Goldmont
Measurements
Latencies
Latency operand 1 → 2:
13 ≤ lat ≤ 18
Latency operand 1 → 3:
14 ≤ lat ≤ 19
Latency operand 2 → 2:
13 ≤ lat ≤ 18
Latency operand 2 → 3:
14 ≤ lat ≤ 19
Latency operand 3 → 2:
13 ≤ lat ≤ 18
Latency operand 3 → 3:
13 ≤ lat ≤ 18
Throughput
Measured (loop):
13.00
Measured (unrolled):
13.00
Number of μops
Executed: 4
Microcode Sequencer (MS): 4
Airmont
Measurements
Latencies
Latency operand 1 → 2:
34 ≤ lat ≤ 38
Latency operand 1 → 3:
33 ≤ lat ≤ 37
Latency operand 2 → 2:
33 ≤ lat ≤ 37
Latency operand 2 → 3:
34 ≤ lat ≤ 38
Latency operand 3 → 2:
35 ≤ lat ≤ 39
Latency operand 3 → 3:
34 ≤ lat ≤ 38
Throughput
Measured (loop):
30.08
Measured (unrolled):
30.00
Number of μops
Executed: 29
Microcode Sequencer (MS): 29
Bonnell
Measurements
Latencies
Latency operand 1 → 2:
46 ≤ lat ≤ 79
Latency operand 1 → 3:
46
Latency operand 2 → 2:
50
Latency operand 2 → 3:
45
Latency operand 3 → 2:
45
Latency operand 3 → 3:
45 ≤ lat ≤ 50
Throughput
Measured (loop):
46.03
Measured (unrolled):
46.00
Number of μops
Executed: 29
Microcode Sequencer (MS): 29
AMD Zen 5
Measurements
Latencies
Latency operand 1 → 2:
10 ≤ lat ≤ 11
Latency operand 1 → 3:
10 ≤ lat ≤ 11
Latency operand 2 → 2:
10 ≤ lat ≤ 11
Latency operand 2 → 3:
10 ≤ lat ≤ 11
Latency operand 3 → 2:
10 ≤ lat ≤ 11
Latency operand 3 → 3:
10 ≤ lat ≤ 11
Throughput
Measured (loop):
4.00
Measured (unrolled):
4.00
Number of μops
Executed: 2
Documentation
Latency: 10
Throughput: 10.00
Number of μops: 2
Port usage: DIV
AMD Zen 4
Measurements
Latencies
Latency operand 1 → 2:
9 ≤ lat ≤ 10
Latency operand 1 → 3:
10 ≤ lat ≤ 11
Latency operand 2 → 2:
9 ≤ lat ≤ 10
Latency operand 2 → 3:
10 ≤ lat ≤ 11
Latency operand 3 → 2:
11 ≤ lat ≤ 12
Latency operand 3 → 3:
11 ≤ lat ≤ 12
Throughput
Measured (loop):
4.00
Measured (unrolled):
4.00
Number of μops
Executed: 2
Documentation
Latency: 10
Throughput: 4.00
Number of μops: 2
Port usage: DIV
AMD Zen 3
Measurements
Latencies
Latency operand 1 → 2:
9 ≤ lat ≤ 10
Latency operand 1 → 3:
10 ≤ lat ≤ 11
Latency operand 2 → 2:
9 ≤ lat ≤ 10
Latency operand 2 → 3:
10 ≤ lat ≤ 11
Latency operand 3 → 2:
11 ≤ lat ≤ 12
Latency operand 3 → 3:
11 ≤ lat ≤ 12
Throughput
Measured (loop):
4.00
Measured (unrolled):
4.00
Number of μops
Executed: 2
Documentation
Latency: 10
Throughput: 4.00
Number of μops: 2
Port usage: DIV
AMD Zen 2
Measurements
Latencies
Latency operand 1 → 2:
8 ≤ lat ≤ 15
Latency operand 1 → 3:
10 ≤ lat ≤ 17
Latency operand 2 → 2:
8 ≤ lat ≤ 15
Latency operand 2 → 3:
10 ≤ lat ≤ 17
Latency operand 3 → 2:
10 ≤ lat ≤ 17
Latency operand 3 → 3:
10 ≤ lat ≤ 17
Throughput
Measured (loop):
14.00
Measured (unrolled):
14.00
Number of μops
Executed: 2
Documentation
Latency: 17
Throughput: 17.00
Number of μops: 2
Port usage: DIV
AMD Zen+
Measurements
Latencies
Latency operand 1 → 2:
8 ≤ lat ≤ 15
Latency operand 1 → 3:
10 ≤ lat ≤ 17
Latency operand 2 → 2:
8 ≤ lat ≤ 15
Latency operand 2 → 3:
10 ≤ lat ≤ 17
Latency operand 3 → 2:
10 ≤ lat ≤ 17
Latency operand 3 → 3:
10 ≤ lat ≤ 17
Throughput
Measured (loop):
14.00
Measured (unrolled):
14.00
Number of μops
Executed: 2
Documentation
Latency: 17
Throughput: 17.00
Number of μops: 2
Port usage: DIV