ADD (AL, I8) - Throughput and Uops
With unroll_count=500 and no inner loop
Code:
0: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.85
APERF: 1.0
UOPS: 1.0
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
DIV_CYCLES: 0.0
With loop_count=1000 and unroll_count=10
Code:
0: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.87
APERF: 1.0
UOPS: 1.2
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
DIV_CYCLES: 0.0
With loop_count=100 and unroll_count=100
Code:
0: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.87
APERF: 1.0
UOPS: 1.02
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
DIV_CYCLES: 0.0
With additional dependency-breaking instructions
With unroll_count=500 and no inner loop
Code:
0: 48 31 c0 xor rax,rax 3: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.44
APERF: 0.5
UOPS: 2.0
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
DIV_CYCLES: 0.0
With loop_count=1000 and unroll_count=10
Code:
0: 48 31 c0 xor rax,rax 3: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.52
APERF: 0.6
UOPS: 2.2
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
DIV_CYCLES: 0.0
With loop_count=100 and unroll_count=100
Code:
0: 48 31 c0 xor rax,rax 3: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.58
APERF: 0.67
UOPS: 2.02
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
DIV_CYCLES: 0.0