MUL (R32) - Throughput and Uops
With unroll_count=500 and no inner loop
Code:
0: 41 f7 e0 mul r8d
Show nanoBench command
Results:
MPERF: 2.51
APERF: 3.0
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: 41 f7 e0 mul r8d
Show nanoBench command
Results:
MPERF: 2.53
APERF: 3.0
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: 41 f7 e0 mul r8d
Show nanoBench command
Results:
MPERF: 2.53
APERF: 3.0
UOPS: 2.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: 41 f7 e0 mul r8d
Show nanoBench command
Results:
MPERF: 0.86
APERF: 1.0
UOPS: 3.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: 41 f7 e0 mul r8d
Show nanoBench command
Results:
MPERF: 1.1
APERF: 1.3
UOPS: 3.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: 41 f7 e0 mul r8d
Show nanoBench command
Results:
MPERF: 0.84
APERF: 1.0
UOPS: 3.02
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
DIV_CYCLES: 0.0