IDIV (R32)
Summary:
"Signed Divide"
Reference:
https://www.felixcloutier.com/x86/IDIV.html
Extension:
BASE
Category:
BINARY
ISA-Set:
I86
CPL:
3
iform:
IDIV_GPRv
iclass:
IDIV
ASM:
IDIV
Operands
Operand 1 (r): Register (EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI, R8D, R9D, R10D, R11D, R12D, R13D, R14D, R15D)
Operand 2 (r/w, suppressed): Register (EAX)
Operand 3 (r/w, suppressed): Register (EDX)
Operand 4 (w, suppressed): Flags (AF: undef, CF: undef, OF: undef, PF: undef, SF: undef, ZF: undef)
Available performance data
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 4
AMD Zen 3
AMD Zen 2
AMD Zen+
Alder Lake-P
Measurements
Latencies
Latency operand 1 → 2:
10
Latency operand 1 → 3:
14
Latency operand 2 → 2:
11
Latency operand 2 → 3:
15
Latency operand 3 → 2:
15
Latency operand 3 → 3:
15
Throughput
Computed from the port usage: 3.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 2
Retire slots: 4
Decoded (MITE): 4
Microcode Sequencer (MS): 0
Port usage:
3*p1
Alder Lake-E
Measurements
Latencies
Latency operand 1 → 2:
12 ≤ lat ≤ 27
Latency operand 1 → 3:
13 ≤ lat ≤ 28
Latency operand 2 → 2:
11 ≤ lat ≤ 26
Latency operand 2 → 3:
12 ≤ lat ≤ 27
Latency operand 3 → 2:
11 ≤ lat ≤ 26
Latency operand 3 → 3:
11 ≤ lat ≤ 26
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:
10
Latency operand 1 → 3:
14
Latency operand 2 → 2:
12
Latency operand 2 → 3:
15
Latency operand 3 → 2:
15
Latency operand 3 → 3:
15
Throughput
Computed from the port usage: 2.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 4
Retire slots: 4
Decoded (MITE): 4
Microcode Sequencer (MS): 0
Port usage:
1*p0156+2*p1+1*p15
Tiger Lake
Measurements
Latencies
Latency operand 1 → 2:
10
Latency operand 1 → 3:
14
Latency operand 2 → 2:
11
Latency operand 2 → 3:
15
Latency operand 3 → 2:
15
Latency operand 3 → 3:
15
Throughput
Computed from the port usage: 2.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 4
Retire slots: 4
Decoded (MITE): 4
Microcode Sequencer (MS): 0
Port usage:
1*p0156+2*p1+1*p15
Ice Lake
Measurements
Latencies
Latency operand 1 → 2:
10
Latency operand 1 → 3:
14
Latency operand 2 → 2:
11
Latency operand 2 → 3:
15
Latency operand 3 → 2:
15
Latency operand 3 → 3:
15
Throughput
Computed from the port usage: 2.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 4
Retire slots: 4
Decoded (MITE): 4
Microcode Sequencer (MS): 0
Port usage:
1*p0156+2*p1+1*p15
Cascade Lake
Measurements
Latencies
Latency operand 1 → 2:
25 ≤ lat ≤ 27
Latency operand 1 → 3:
26 ≤ lat ≤ 28
Latency operand 2 → 2:
23 ≤ lat ≤ 25
Latency operand 2 → 3:
24 ≤ lat ≤ 26
Latency operand 3 → 2:
24 ≤ lat ≤ 26
Latency operand 3 → 3:
24 ≤ lat ≤ 26
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
Cannon Lake
Measurements
Latencies
Latency operand 1 → 2:
10
Latency operand 1 → 3:
14
Latency operand 2 → 2:
11
Latency operand 2 → 3:
15
Latency operand 3 → 2:
15
Latency operand 3 → 3:
15
Throughput
Computed from the port usage: 2.00
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 4
Retire slots: 4
Decoded (MITE): 4
Microcode Sequencer (MS): 0
Port usage:
1*p0156+2*p1+1*p15
Skylake-X
Measurements
Latencies
Latency operand 1 → 2:
25 ≤ lat ≤ 27
Latency operand 1 → 3:
26 ≤ lat ≤ 28
Latency operand 2 → 2:
23 ≤ lat ≤ 25
Latency operand 2 → 3:
24 ≤ lat ≤ 26
Latency operand 3 → 2:
24 ≤ lat ≤ 26
Latency operand 3 → 3:
24 ≤ lat ≤ 26
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
Coffee Lake
Measurements
Latencies
Latency operand 1 → 2:
25 ≤ lat ≤ 27
Latency operand 1 → 3:
26 ≤ lat ≤ 28
Latency operand 2 → 2:
23 ≤ lat ≤ 25
Latency operand 2 → 3:
24 ≤ lat ≤ 26
Latency operand 3 → 2:
24 ≤ lat ≤ 26
Latency operand 3 → 3:
24 ≤ lat ≤ 26
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:
25 ≤ lat ≤ 27
Latency operand 1 → 3:
26 ≤ lat ≤ 28
Latency operand 2 → 2:
23 ≤ lat ≤ 25
Latency operand 2 → 3:
24 ≤ lat ≤ 26
Latency operand 3 → 2:
24 ≤ lat ≤ 26
Latency operand 3 → 3:
24 ≤ lat ≤ 26
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:
25 ≤ lat ≤ 27
Latency operand 1 → 3:
26 ≤ lat ≤ 28
Latency operand 2 → 2:
23 ≤ lat ≤ 25
Latency operand 2 → 3:
24 ≤ lat ≤ 26
Latency operand 3 → 2:
24 ≤ lat ≤ 26
Latency operand 3 → 3:
24 ≤ lat ≤ 26
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 ≤ 27
Latency operand 1 → 3:
20 ≤ lat ≤ 27
Latency operand 2 → 2:
21 ≤ lat ≤ 28
Latency operand 2 → 3:
21 ≤ lat ≤ 28
Latency operand 3 → 2:
21 ≤ lat ≤ 28
Latency operand 3 → 3:
21 ≤ lat ≤ 28
Throughput
Computed from the port usage: 2.50
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 9
Retire slots: 9
Decoded (MITE): 3
Microcode Sequencer (MS): 6
Port usage:
2*p0+1*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 ≤ 27
Latency operand 1 → 3:
20 ≤ lat ≤ 27
Latency operand 2 → 2:
21 ≤ lat ≤ 28
Latency operand 2 → 3:
21 ≤ lat ≤ 28
Latency operand 3 → 2:
21 ≤ lat ≤ 28
Latency operand 3 → 3:
21 ≤ lat ≤ 28
Throughput
Computed from the port usage: 2.50
Measured (loop):
8.00
Measured (unrolled):
8.00
Number of μops
Executed: 9
Retire slots: 9
Decoded (MITE): 3
Microcode Sequencer (MS): 6
Port usage:
2*p0+1*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 ≤ 25
Latency operand 1 → 3:
18 ≤ lat ≤ 25
Latency operand 2 → 2:
19 ≤ lat ≤ 26
Latency operand 2 → 3:
19 ≤ lat ≤ 26
Latency operand 3 → 2:
19 ≤ lat ≤ 26
Latency operand 3 → 3:
19 ≤ lat ≤ 26
Throughput
Computed from the port usage: 3.00
Measured (loop):
8.03
Measured (unrolled):
8.02
Number of μops
Executed: 9
Retire slots: 9
Decoded (MITE): 3
Microcode Sequencer (MS): 6
Port usage:
2*p0+1*p015+2*p05+2*p1+2*p5
Sandy Bridge
Measurements
Latencies
Latency operand 1 → 2:
19 ≤ lat ≤ 26
Latency operand 1 → 3:
19 ≤ lat ≤ 26
Latency operand 2 → 2:
19 ≤ lat ≤ 26
Latency operand 2 → 3:
19 ≤ lat ≤ 26
Latency operand 3 → 2:
19 ≤ lat ≤ 26
Latency operand 3 → 3:
19 ≤ lat ≤ 26
Throughput
Computed from the port usage: 3.00
Measured (loop):
11.00
Measured (unrolled):
11.04
Number of μops
Executed: 9
Retire slots: 9
Decoded (MITE): 3
Microcode Sequencer (MS): 6
Port usage:
2*p0+1*p015+2*p05+2*p1+2*p5
Westmere
Measurements
Latencies
Latency operand 1 → 2:
17 ≤ lat ≤ 27
Latency operand 1 → 3:
17 ≤ lat ≤ 27
Latency operand 2 → 2:
17 ≤ lat ≤ 27
Latency operand 2 → 3:
18 ≤ lat ≤ 28
Latency operand 3 → 2:
18 ≤ lat ≤ 28
Latency operand 3 → 3:
17 ≤ lat ≤ 27
Throughput
Computed from the port usage: 2.33
Measured (loop):
7.00
Measured (unrolled):
7.00
Number of μops
Executed: 7
Retire slots: 7
Microcode Sequencer (MS): 7
Port usage:
1*p0+2*p015+2*p05+2*p1
Nehalem
Measurements
Latencies
Latency operand 1 → 2:
17 ≤ lat ≤ 27
Latency operand 1 → 3:
17 ≤ lat ≤ 27
Latency operand 2 → 2:
17 ≤ lat ≤ 27
Latency operand 2 → 3:
18 ≤ lat ≤ 28
Latency operand 3 → 2:
18 ≤ lat ≤ 28
Latency operand 3 → 3:
17 ≤ lat ≤ 27
Throughput
Computed from the port usage: 2.33
Measured (loop):
7.00
Measured (unrolled):
7.02
Number of μops
Executed: 7
Retire slots: 7
Microcode Sequencer (MS): 7
Port usage:
1*p0+2*p015+2*p05+2*p1
Wolfdale
Measurements
Latencies
Latency operand 1 → 2:
14 ≤ lat ≤ 24
Latency operand 1 → 3:
14 ≤ lat ≤ 24
Latency operand 2 → 2:
14 ≤ lat ≤ 24
Latency operand 2 → 3:
14 ≤ lat ≤ 24
Latency operand 3 → 2:
14 ≤ lat ≤ 24
Latency operand 3 → 3:
14 ≤ lat ≤ 24
Throughput
Computed from the port usage: 2.33
Measured (loop):
5.00
Measured (unrolled):
5.00
Number of μops
Executed: 7
Port usage:
1*p0+2*p015+2*p05+2*p1
Conroe
Measurements
Latencies
Latency operand 1 → 2:
17 ≤ lat ≤ 41
Latency operand 1 → 3:
17 ≤ lat ≤ 41
Latency operand 2 → 2:
17 ≤ lat ≤ 41
Latency operand 2 → 3:
18 ≤ lat ≤ 42
Latency operand 3 → 2:
18 ≤ lat ≤ 42
Latency operand 3 → 3:
17 ≤ lat ≤ 41
Throughput
Computed from the port usage: 1.50
Measured (loop):
12.04
Measured (unrolled):
12.25
Number of μops
Executed: 4
Port usage:
1*p0+1*p015+2*p05
Tremont
Measurements
Latencies
Latency operand 1 → 2:
11 ≤ lat ≤ 26
Latency operand 1 → 3:
12 ≤ lat ≤ 27
Latency operand 2 → 2:
11 ≤ lat ≤ 26
Latency operand 2 → 3:
12 ≤ lat ≤ 27
Latency operand 3 → 2:
11 ≤ lat ≤ 26
Latency operand 3 → 3:
11 ≤ lat ≤ 26
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 ≤ 26
Latency operand 1 → 3:
14 ≤ lat ≤ 27
Latency operand 2 → 2:
13 ≤ lat ≤ 26
Latency operand 2 → 3:
14 ≤ lat ≤ 27
Latency operand 3 → 2:
13 ≤ lat ≤ 26
Latency operand 3 → 3:
13 ≤ lat ≤ 26
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 ≤ 26
Latency operand 1 → 3:
14 ≤ lat ≤ 27
Latency operand 2 → 2:
13 ≤ lat ≤ 26
Latency operand 2 → 3:
14 ≤ lat ≤ 27
Latency operand 3 → 2:
13 ≤ lat ≤ 26
Latency operand 3 → 3:
13 ≤ lat ≤ 26
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 ≤ 46
Latency operand 1 → 3:
33 ≤ lat ≤ 45
Latency operand 2 → 2:
33 ≤ lat ≤ 45
Latency operand 2 → 3:
34 ≤ lat ≤ 46
Latency operand 3 → 2:
35 ≤ lat ≤ 47
Latency operand 3 → 3:
34 ≤ lat ≤ 46
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:
62
Latency operand 1 → 3:
62
Latency operand 2 → 2:
61
Latency operand 2 → 3:
61
Latency operand 3 → 2:
61
Latency operand 3 → 3:
61
Throughput
Measured (loop):
62.03
Measured (unrolled):
62.00
Number of μops
Executed: 29
Microcode Sequencer (MS): 29
AMD Zen 4
Measurements
Latencies
Latency operand 1 → 2:
9 ≤ lat ≤ 12
Latency operand 1 → 3:
10 ≤ lat ≤ 13
Latency operand 2 → 2:
9 ≤ lat ≤ 12
Latency operand 2 → 3:
10 ≤ lat ≤ 13
Latency operand 3 → 2:
11 ≤ lat ≤ 14
Latency operand 3 → 3:
11 ≤ lat ≤ 14
Throughput
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 2
AMD Zen 3
Measurements
Latencies
Latency operand 1 → 2:
9 ≤ lat ≤ 12
Latency operand 1 → 3:
10 ≤ lat ≤ 13
Latency operand 2 → 2:
9 ≤ lat ≤ 12
Latency operand 2 → 3:
10 ≤ lat ≤ 13
Latency operand 3 → 2:
11 ≤ lat ≤ 14
Latency operand 3 → 3:
11 ≤ lat ≤ 14
Throughput
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 2
Documentation
Latency: 12
Throughput: 5.99
Number of μops: 2
Port usage: DIV
AMD Zen 2
Measurements
Latencies
Latency operand 1 → 2:
8 ≤ lat ≤ 23
Latency operand 1 → 3:
10 ≤ lat ≤ 25
Latency operand 2 → 2:
8 ≤ lat ≤ 23
Latency operand 2 → 3:
10 ≤ lat ≤ 25
Latency operand 3 → 2:
10 ≤ lat ≤ 25
Latency operand 3 → 3:
10 ≤ lat ≤ 25
Throughput
Measured (loop):
14.00
Measured (unrolled):
14.00
Number of μops
Executed: 2
Documentation
Latency: 25
Throughput: 25.00
Number of μops: 2
Port usage: DIV
AMD Zen+
Measurements
Latencies
Latency operand 1 → 2:
8 ≤ lat ≤ 23
Latency operand 1 → 3:
10 ≤ lat ≤ 25
Latency operand 2 → 2:
8 ≤ lat ≤ 23
Latency operand 2 → 3:
10 ≤ lat ≤ 25
Latency operand 3 → 2:
10 ≤ lat ≤ 25
Latency operand 3 → 3:
10 ≤ lat ≤ 25
Throughput
Measured (loop):
14.00
Measured (unrolled):
14.00
Number of μops
Executed: 2
Documentation
Latency: 25
Throughput: 25.00
Number of μops: 2
Port usage: DIV