XCHG (M64, R64) - Throughput and Uops (IACA 2.3)


With a non-indexed addressing mode

With 1 independent instruction

Throughput Analysis Report
--------------------------
Block Throughput: 2.86 Cycles       Throughput Bottleneck: Dependency chains (possibly between iterations)

Port Binding In Cycles Per Iteration:
---------------------------------------------------------------------------------------
|  Port  |  0   -  DV  |  1   |  2   -  D   |  3   -  D   |  4   |  5   |  6   |  7   |
---------------------------------------------------------------------------------------
| Cycles | 0.8    0.0  | 0.8  | 0.6    0.5  | 0.8    0.5  | 1.0  | 0.8  | 0.8  | 0.6  |
---------------------------------------------------------------------------------------


| Num Of |                    Ports pressure in cycles                     |    |
|  Uops  |  0  - DV  |  1  |  2  -  D  |  3  -  D  |  4  |  5  |  6  |  7  |    |
---------------------------------------------------------------------------------
|   6^   | 0.8       | 0.8 | 0.6   0.5 | 0.8   0.5 | 1.0 | 0.8 | 0.8 | 0.6 | CP | xchg qword ptr [r14], r8
Total Num Of Uops: 6

With 8 independent instructions


Throughput Analysis Report
--------------------------
Block Throughput: 10.00 Cycles       Throughput Bottleneck: FrontEnd

Port Binding In Cycles Per Iteration:
---------------------------------------------------------------------------------------
|  Port  |  0   -  DV  |  1   |  2   -  D   |  3   -  D   |  4   |  5   |  6   |  7   |
---------------------------------------------------------------------------------------
| Cycles | 6.0    0.0  | 6.0  | 6.0    4.0  | 6.0    4.0  | 8.0  | 6.0  | 6.0  | 4.0  |
---------------------------------------------------------------------------------------


| Num Of |                    Ports pressure in cycles                     |    |
|  Uops  |  0  - DV  |  1  |  2  -  D  |  3  -  D  |  4  |  5  |  6  |  7  |    |
---------------------------------------------------------------------------------
|   6^   | 1.0       | 1.0 | 1.0   1.0 |           | 1.0 | 1.0 |     | 1.0 |    | xchg qword ptr [r14], r8
|   6^   | 1.0       | 1.0 |           | 1.0   1.0 | 1.0 |     | 1.0 | 1.0 |    | xchg qword ptr [r14+0x8], r9
|   6^   | 1.0       |     | 1.0   1.0 | 1.0       | 1.0 | 1.0 | 1.0 |     |    | xchg qword ptr [r14+0x10], r10
|   6^   |           | 1.0 | 1.0       | 1.0   1.0 | 1.0 | 1.0 | 1.0 |     |    | xchg qword ptr [r14+0x18], r11
|   6^   | 1.0       | 1.0 | 1.0   1.0 |           | 1.0 | 1.0 |     | 1.0 |    | xchg qword ptr [r14+0x20], r12
|   6^   | 1.0       | 1.0 |           | 1.0   1.0 | 1.0 |     | 1.0 | 1.0 |    | xchg qword ptr [r14+0x28], rbx
|   6^   | 1.0       |     | 1.0   1.0 | 1.0       | 1.0 | 1.0 | 1.0 |     |    | xchg qword ptr [r14+0x30], rcx
|   6^   |           | 1.0 | 1.0       | 1.0   1.0 | 1.0 | 1.0 | 1.0 |     |    | xchg qword ptr [r14+0x38], rdx
Total Num Of Uops: 48

With an indexed addressing mode

With 1 independent instruction

Throughput Analysis Report
--------------------------
Block Throughput: 2.86 Cycles       Throughput Bottleneck: Dependency chains (possibly between iterations)

Port Binding In Cycles Per Iteration:
---------------------------------------------------------------------------------------
|  Port  |  0   -  DV  |  1   |  2   -  D   |  3   -  D   |  4   |  5   |  6   |  7   |
---------------------------------------------------------------------------------------
| Cycles | 0.8    0.0  | 0.8  | 1.0    0.5  | 1.0    0.5  | 1.0  | 0.8  | 0.8  | 0.0  |
---------------------------------------------------------------------------------------


| Num Of |                    Ports pressure in cycles                     |    |
|  Uops  |  0  - DV  |  1  |  2  -  D  |  3  -  D  |  4  |  5  |  6  |  7  |    |
---------------------------------------------------------------------------------
|   6    | 0.8       | 0.8 | 1.0   0.5 | 1.0   0.5 | 1.0 | 0.8 | 0.8 |     | CP | xchg qword ptr [r14+r13*1], r8
Total Num Of Uops: 6

With 8 independent instructions


Throughput Analysis Report
--------------------------
Block Throughput: 12.00 Cycles       Throughput Bottleneck: FrontEnd

Port Binding In Cycles Per Iteration:
---------------------------------------------------------------------------------------
|  Port  |  0   -  DV  |  1   |  2   -  D   |  3   -  D   |  4   |  5   |  6   |  7   |
---------------------------------------------------------------------------------------
| Cycles | 6.0    0.0  | 6.0  | 8.0    4.0  | 8.0    4.0  | 8.0  | 6.0  | 6.0  | 0.0  |
---------------------------------------------------------------------------------------


| Num Of |                    Ports pressure in cycles                     |    |
|  Uops  |  0  - DV  |  1  |  2  -  D  |  3  -  D  |  4  |  5  |  6  |  7  |    |
---------------------------------------------------------------------------------
|   6    | 1.0       | 1.0 | 1.0   1.0 | 1.0       | 1.0 | 1.0 |     |     |    | xchg qword ptr [r14+r13*1], r8
|   6    | 1.0       | 1.0 | 1.0       | 1.0   1.0 | 1.0 |     | 1.0 |     |    | xchg qword ptr [r14+r13*1+0x8], r9
|   6    | 1.0       |     | 1.0   1.0 | 1.0       | 1.0 | 1.0 | 1.0 |     |    | xchg qword ptr [r14+r13*1+0x10], r10
|   6    |           | 1.0 | 1.0       | 1.0   1.0 | 1.0 | 1.0 | 1.0 |     |    | xchg qword ptr [r14+r13*1+0x18], r11
|   6    | 1.0       | 1.0 | 1.0   1.0 | 1.0       | 1.0 | 1.0 |     |     |    | xchg qword ptr [r14+r13*1+0x20], r12
|   6    | 1.0       | 1.0 | 1.0       | 1.0   1.0 | 1.0 |     | 1.0 |     |    | xchg qword ptr [r14+r13*1+0x28], rbx
|   6    | 1.0       |     | 1.0   1.0 | 1.0       | 1.0 | 1.0 | 1.0 |     |    | xchg qword ptr [r14+r13*1+0x30], rcx
|   6    |           | 1.0 | 1.0       | 1.0   1.0 | 1.0 | 1.0 | 1.0 |     |    | xchg qword ptr [r14+r13*1+0x38], rdx
Total Num Of Uops: 48