Skip to content

Commit

Permalink
Fix SQRT, RCP, RSQRT PerfScores (dotnet#50813)
Browse files Browse the repository at this point in the history
  • Loading branch information
pentp authored Apr 15, 2021
1 parent 1a8f80f commit 0cf4f15
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/coreclr/jit/emitxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14906,16 +14906,16 @@ emitter::insExecutionCharacteristics emitter::getInsExecutionCharacteristics(ins

case INS_sqrtsd:
case INS_sqrtpd:
case INS_rcpps:
case INS_rcpss:
result.insThroughput = PERFSCORE_THROUGHPUT_1C;
result.insLatency += PERFSCORE_LATENCY_4C;
result.insThroughput = PERFSCORE_THROUGHPUT_4C;
result.insLatency += PERFSCORE_LATENCY_13C;
break;

case INS_rcpps:
case INS_rcpss:
case INS_rsqrtss:
case INS_rsqrtps:
result.insThroughput = PERFSCORE_THROUGHPUT_3C;
result.insLatency += PERFSCORE_LATENCY_12C;
result.insThroughput = PERFSCORE_THROUGHPUT_1C;
result.insLatency += PERFSCORE_LATENCY_4C;
break;

case INS_roundpd:
Expand Down

0 comments on commit 0cf4f15

Please sign in to comment.