ADD (M32, I32)
Summary:
"Add"
Reference:
https://www.felixcloutier.com/x86/ADD.html
Extension:
BASE
Category:
BINARY
ISA-Set:
I86
CPL:
3
iform:
ADD_MEMv_IMMz
iclass:
ADD
ASM:
ADD
Operands
Operand 1 (r/w): Memory
Operand 2 (r): 32-bit immediate
Operand 3 (w, suppressed): Flags (AF: w, CF: w, OF: w, PF: w, SF: w, ZF: w)
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 → 1 (address, base register):
≤0
Latency operand 1 → 1 (address, index register):
≤12
Latency operand 1 → 1 (memory):
1
Latency operand 1 → 3 (address, base register):
1
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤1
Throughput
Computed from the port usage: 0.50 (if an indexed addressing mode is used: 1.00)
Measured (loop):
1.00
Measured (unrolled):
0.95 (if an indexed addressing mode is used: 0.96)
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (4 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156B+1*p23A+1*p49+1*p78 (if an indexed addressing mode is used: 2*p015+1*p056+1*p15B+1*p23A+2*p49+1*p78)
Alder Lake-E
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤2
Latency operand 1 → 1 (address, index register):
≤2
Latency operand 1 → 1 (memory):
1
Latency operand 1 → 3 (address, base register):
0
Latency operand 1 → 3 (address, index register):
0
Latency operand 1 → 3 (memory):
≤1
Throughput
Measured (loop):
0.50
Measured (unrolled):
0.50
Number of μops
Executed: 1
Microcode Sequencer (MS): 0
Rocket Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤6
Latency operand 1 → 1 (address, index register):
≤11
Latency operand 1 → 1 (memory):
1
Latency operand 1 → 3 (address, base register):
1
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤1
Throughput
Computed from the port usage: 0.50
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (7 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p49+1*p78
Tiger Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤11
Latency operand 1 → 1 (address, index register):
≤11
Latency operand 1 → 1 (memory):
7
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p49+1*p78
Ice Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤11
Latency operand 1 → 1 (address, index register):
≤11
Latency operand 1 → 1 (memory):
7
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p49+1*p78
Cascade Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤10
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
4
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤3
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p237+1*p4 (if an indexed addressing mode is used: 1*p0156+2*p23+1*p4)
Cannon Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤10
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
4
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤3
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p237+1*p4 (if an indexed addressing mode is used: 1*p0156+2*p23+1*p4)
Skylake-X
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤10
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
4
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤3
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p237+1*p4 (if an indexed addressing mode is used: 1*p0156+2*p23+1*p4)
IACA 2.3
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
IACA 3.0
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
Coffee Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤10
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
4
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤3
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p237+1*p4 (if an indexed addressing mode is used: 1*p0156+2*p23+1*p4)
Kaby Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤10
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
4
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤3
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p237+1*p4 (if an indexed addressing mode is used: 1*p0156+2*p23+1*p4)
Skylake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤10
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
4
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤3
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p237+1*p4 (if an indexed addressing mode is used: 1*p0156+2*p23+1*p4)
IACA 2.3
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
IACA 3.0
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
Broadwell
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤9
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
6
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤5
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (2 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p237+1*p4 (if an indexed addressing mode is used: 1*p0156+2*p23+1*p4)
IACA 2.2
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
IACA 2.3
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
IACA 3.0
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
Haswell
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤9
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
6
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤5
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 3)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (2 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p0156+1*p23+1*p237+1*p4 (if an indexed addressing mode is used: 1*p0156+2*p23+1*p4)
IACA 2.1
Latency:
7
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
IACA 2.2
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
IACA 2.3
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
IACA 3.0
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
4
Port usage:
1*p0156+1*p23+1*p237+1*p4
Ivy Bridge
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤9
Latency operand 1 → 1 (address, index register):
≤9
Latency operand 1 → 1 (memory):
6
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤5
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 4)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (2 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+2*p23+1*p4
IACA 2.1
Latency:
7
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p015+2*p23+1*p4
IACA 2.2
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p015+2*p23+1*p4
IACA 2.3
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
4
Port usage:
1*p015+2*p23+1*p4
Sandy Bridge
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤9
Latency operand 1 → 1 (address, index register):
≤9
Latency operand 1 → 1 (memory):
6
Latency operand 1 → 3 (address, base register):
6
Latency operand 1 → 3 (address, index register):
6
Latency operand 1 → 3 (memory):
≤5
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.03 (if an indexed addressing mode is used: 1.00)
Measured (unrolled):
1.02 (if an indexed addressing mode is used: 1.00)
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 4)
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (2 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+2*p23+1*p4
IACA 2.1
Latency:
7
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p015+2*p23+1*p4
IACA 2.2
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p015+2*p23+1*p4
IACA 2.3
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
4
Port usage:
1*p015+2*p23+1*p4
Westmere
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤8
Latency operand 1 → 1 (address, index register):
≤8
Latency operand 1 → 1 (memory):
6
Latency operand 1 → 3 (address, base register):
5
Latency operand 1 → 3 (address, index register):
5
Latency operand 1 → 3 (memory):
≤5
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 4)
Microcode Sequencer (MS): 0
Requires the complex decoder
Port usage:
1*p015+1*p2+1*p3+1*p4
IACA 2.1
Latency:
6
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p015+1*p2+1*p3+1*p4
IACA 2.2
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p015+1*p2+1*p3+1*p4
Nehalem
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤8
Latency operand 1 → 1 (address, index register):
≤8
Latency operand 1 → 1 (memory):
6
Latency operand 1 → 3 (address, base register):
5
Latency operand 1 → 3 (address, index register):
5
Latency operand 1 → 3 (memory):
≤5
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Retire slots: 2 (if an indexed addressing mode is used: 4)
Microcode Sequencer (MS): 0
Requires the complex decoder
Port usage:
1*p015+1*p2+1*p3+1*p4
IACA 2.1
Latency:
6
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p015+1*p2+1*p3+1*p4
IACA 2.2
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
4
Port usage:
1*p015+1*p2+1*p3+1*p4
Wolfdale
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤9
Latency operand 1 → 1 (address, index register):
≤9
Latency operand 1 → 1 (memory):
6
Latency operand 1 → 3 (address, base register):
5
Latency operand 1 → 3 (address, index register):
5
Latency operand 1 → 3 (memory):
≤5
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Port usage:
1*p015+1*p2+1*p3+1*p4
Conroe
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤9
Latency operand 1 → 1 (address, index register):
≤9
Latency operand 1 → 1 (memory):
6
Latency operand 1 → 3 (address, base register):
5
Latency operand 1 → 3 (address, index register):
5
Latency operand 1 → 3 (memory):
≤5
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 4
Port usage:
1*p015+1*p2+1*p3+1*p4
Tremont
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤9
Latency operand 1 → 1 (address, index register):
≤9
Latency operand 1 → 1 (memory):
6
Latency operand 1 → 3 (address, base register):
4
Latency operand 1 → 3 (address, index register):
4
Latency operand 1 → 3 (memory):
≤5
Throughput
Measured (loop):
1.00
Measured (unrolled):
0.50
Number of μops
Executed: 1
Microcode Sequencer (MS): 0
Goldmont Plus
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤8
Latency operand 1 → 1 (address, index register):
≤8
Latency operand 1 → 1 (memory):
5
Latency operand 1 → 3 (address, base register):
4
Latency operand 1 → 3 (address, index register):
4
Latency operand 1 → 3 (memory):
≤5
Throughput
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 1
Microcode Sequencer (MS): 0
Goldmont
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤8
Latency operand 1 → 1 (address, index register):
≤8
Latency operand 1 → 1 (memory):
5
Latency operand 1 → 3 (address, base register):
4
Latency operand 1 → 3 (address, index register):
4
Latency operand 1 → 3 (memory):
≤6
Throughput
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 1
Microcode Sequencer (MS): 0
Airmont
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤8
Latency operand 1 → 1 (address, index register):
≤8
Latency operand 1 → 1 (memory):
5
Latency operand 1 → 3 (address, base register):
4
Latency operand 1 → 3 (address, index register):
4
Latency operand 1 → 3 (memory):
≤4
Throughput
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 1
Microcode Sequencer (MS): 0
Bonnell
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤4
Latency operand 1 → 1 (address, index register):
≤4
Latency operand 1 → 1 (memory):
1
Latency operand 1 → 3 (address, base register):
4
Latency operand 1 → 3 (address, index register):
4
Latency operand 1 → 3 (memory):
≤1
Throughput
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 1
Microcode Sequencer (MS): 0
AMD Zen 4
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤8
Latency operand 1 → 1 (address, index register):
≤8
Latency operand 1 → 1 (memory):
1
Latency operand 1 → 3 (address, base register):
5
Latency operand 1 → 3 (address, index register):
5
Latency operand 1 → 3 (memory):
≤1
Throughput
Measured (loop):
0.56
Measured (unrolled):
0.60
Number of μops
Executed: 2
AMD Zen 3
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤10
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
7
Latency operand 1 → 3 (address, base register):
5
Latency operand 1 → 3 (address, index register):
5
Latency operand 1 → 3 (memory):
≤6
Throughput
Measured (loop):
0.50
Measured (unrolled):
0.67
Number of μops
Executed: 1
AMD Zen 2
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤5
Latency operand 1 → 1 (address, index register):
≤5
Latency operand 1 → 1 (memory):
1
Latency operand 1 → 3 (address, base register):
5
Latency operand 1 → 3 (address, index register):
5
Latency operand 1 → 3 (memory):
≤1
Throughput
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 1
AMD Zen+
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤8
Latency operand 1 → 1 (address, index register):
≤8
Latency operand 1 → 1 (memory):
7
Latency operand 1 → 3 (address, base register):
5
Latency operand 1 → 3 (address, index register):
5
Latency operand 1 → 3 (memory):
≤7
Throughput
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 1