andreas-abel / uiCA

uops.info Code Analyzer
GNU Affero General Public License v3.0
230 stars 16 forks source link

Instruction latencies are wrong with fused rip-relative loads #22

Closed TellowKrinkle closed 1 year ago

TellowKrinkle commented 1 year ago

(Note: Tested whatever version is on https://uica.uops.info, none locally) Instructions that use rip-relative addressing seem to be treated as if they had 1 cycle of latency.

e.g.

vpmulhw ymm12, ymm12, ymmword ptr [rip+0x14b]
vpmulhw ymm12, ymm12, ymmword ptr [rax+0x14b]

On uica.uops.info: https://bit.ly/3H3YsAR

Expected:

Actual: