BSF (R32, M32) - Throughput and Uops (IACA 2.1)


With a non-indexed addressing mode

With 1 independent instruction

Throughput Analysis Report
--------------------------
Block Throughput: 1.00 Cycles       Throughput Bottleneck: Port1

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


| Num Of |              Ports pressure in cycles               |    |
|  Uops  |  0  - DV  |  1  |  2  -  D  |  3  -  D  |  4  |  5  |    |
---------------------------------------------------------------------
|   2^   |           | 1.0 | 0.5   0.5 | 0.5   0.5 |     |     | CP | bsf r8d, dword ptr [r14]
Total Num Of Uops: 2

With 8 independent instructions


Throughput Analysis Report
--------------------------
Block Throughput: 8.00 Cycles       Throughput Bottleneck: Port1

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


| Num Of |              Ports pressure in cycles               |    |
|  Uops  |  0  - DV  |  1  |  2  -  D  |  3  -  D  |  4  |  5  |    |
---------------------------------------------------------------------
|   2^   |           | 1.0 | 1.0   1.0 |           |     |     | CP | bsf r8d, dword ptr [r14]
|   2^   |           | 1.0 |           | 1.0   1.0 |     |     | CP | bsf r9d, dword ptr [r14+0x4]
|   2^   |           | 1.0 | 1.0   1.0 |           |     |     | CP | bsf r10d, dword ptr [r14+0x8]
|   2^   |           | 1.0 |           | 1.0   1.0 |     |     | CP | bsf r11d, dword ptr [r14+0xc]
|   2^   |           | 1.0 | 1.0   1.0 |           |     |     | CP | bsf r12d, dword ptr [r14+0x10]
|   2^   |           | 1.0 |           | 1.0   1.0 |     |     | CP | bsf ebx, dword ptr [r14+0x14]
|   2^   |           | 1.0 | 1.0   1.0 |           |     |     | CP | bsf ecx, dword ptr [r14+0x18]
|   2^   |           | 1.0 |           | 1.0   1.0 |     |     | CP | bsf edx, dword ptr [r14+0x1c]
Total Num Of Uops: 16

With an indexed addressing mode

With 1 independent instruction

Throughput Analysis Report
--------------------------
Block Throughput: 1.00 Cycles       Throughput Bottleneck: Port1

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


| Num Of |              Ports pressure in cycles               |    |
|  Uops  |  0  - DV  |  1  |  2  -  D  |  3  -  D  |  4  |  5  |    |
---------------------------------------------------------------------
|   2    |           | 1.0 | 0.5   0.5 | 0.5   0.5 |     |     | CP | bsf r8d, dword ptr [r14+r13*1]
Total Num Of Uops: 2

With 8 independent instructions


Throughput Analysis Report
--------------------------
Block Throughput: 8.00 Cycles       Throughput Bottleneck: Port1

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


| Num Of |              Ports pressure in cycles               |    |
|  Uops  |  0  - DV  |  1  |  2  -  D  |  3  -  D  |  4  |  5  |    |
---------------------------------------------------------------------
|   2    |           | 1.0 | 1.0   1.0 |           |     |     | CP | bsf r8d, dword ptr [r14+r13*1]
|   2    |           | 1.0 |           | 1.0   1.0 |     |     | CP | bsf r9d, dword ptr [r14+r13*1+0x4]
|   2    |           | 1.0 | 1.0   1.0 |           |     |     | CP | bsf r10d, dword ptr [r14+r13*1+0x8]
|   2    |           | 1.0 |           | 1.0   1.0 |     |     | CP | bsf r11d, dword ptr [r14+r13*1+0xc]
|   2    |           | 1.0 | 1.0   1.0 |           |     |     | CP | bsf r12d, dword ptr [r14+r13*1+0x10]
|   2    |           | 1.0 |           | 1.0   1.0 |     |     | CP | bsf ebx, dword ptr [r14+r13*1+0x14]
|   2    |           | 1.0 | 1.0   1.0 |           |     |     | CP | bsf ecx, dword ptr [r14+r13*1+0x18]
|   2    |           | 1.0 |           | 1.0   1.0 |     |     | CP | bsf edx, dword ptr [r14+r13*1+0x1c]
Total Num Of Uops: 16

With the -no_interiteration flag

Throughput Analysis Report
--------------------------
Block Throughput: 1.00 Cycles       Throughput Bottleneck: Port1

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


| Num Of |              Ports pressure in cycles               |    |
|  Uops  |  0  - DV  |  1  |  2  -  D  |  3  -  D  |  4  |  5  |    |
---------------------------------------------------------------------
|   2^   |           | 1.0 | 0.5   0.5 | 0.5   0.5 |     |     | CP | bsf r8d, dword ptr [r14]
Total Num Of Uops: 2