MUL (R32) - Throughput and Uops
With unroll_count=500 and no inner loop
Code:
0: 41 f7 e0 mul r8d
Show nanoBench command
Results:
Instructions retired: 1.0
Core cycles: 5.0
Reference cycles: 2.5
UOPS_RETIRED.ALL: 3.0
UOPS_MS: 3.0
With loop_count=1000 and unroll_count=10
Code:
0: 41 f7 e0 mul r8d
Show nanoBench command
Results:
Instructions retired: 1.2
Core cycles: 5.1
Reference cycles: 2.55
UOPS_RETIRED.ALL: 3.2
UOPS_MS: 3.0
With loop_count=100 and unroll_count=100
Code:
0: 41 f7 e0 mul r8d
Show nanoBench command
Results:
Instructions retired: 1.02
Core cycles: 5.01
Reference cycles: 2.5
UOPS_RETIRED.ALL: 3.02
UOPS_MS: 3.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:
Instructions retired: 2.0
Core cycles: 8.0
Reference cycles: 4.0
UOPS_RETIRED.ALL: 4.0
UOPS_MS: 3.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:
Instructions retired: 2.2
Core cycles: 8.1
Reference cycles: 4.05
UOPS_RETIRED.ALL: 4.2
UOPS_MS: 3.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:
Instructions retired: 2.02
Core cycles: 8.01
Reference cycles: 4.0
UOPS_RETIRED.ALL: 4.02
UOPS_MS: 3.0