Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 39 additions & 3 deletions src/coreclr/src/jit/emitarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5268,8 +5268,8 @@ void emitter::emitIns_R_R_R(
}
else
{
assert(insOptsNone(opt));
// Scalar operation
assert(insOptsNone(opt));
assert(size == EA_8BYTE); // Only Int64/UInt64 supported
fmt = IF_DV_3E;
}
Expand Down Expand Up @@ -12378,6 +12378,22 @@ emitter::insExecutionCharacteristics emitter::getInsExecutionCharacteristics(ins
result.insLatency = PERFSCORE_LATENCY_1C;
break;

case INS_crc32b:
case INS_crc32h:
case INS_crc32cb:
case INS_crc32ch:
case INS_crc32x:
case INS_crc32cx:
result.insThroughput = PERFSCORE_THROUGHPUT_2X;
result.insLatency = PERFSCORE_LATENCY_2C;
break;

case INS_crc32w:
case INS_crc32cw:
result.insThroughput = PERFSCORE_THROUGHPUT_2X;
result.insLatency = PERFSCORE_LATENCY_1C;
break;

default:
// all other instructions
perfScoreUnhandledInstruction(id, &result);
Expand Down Expand Up @@ -12763,13 +12779,24 @@ emitter::insExecutionCharacteristics emitter::getInsExecutionCharacteristics(ins
result.insLatency = PERFSCORE_LATENCY_4C;
break;

case INS_facge:
case INS_facgt:
case INS_fcmeq:
case INS_fcmge:
case INS_fcmgt:
case INS_fcmle:
case INS_fcmlt:
result.insThroughput = PERFSCORE_THROUGHPUT_2X;
result.insLatency = PERFSCORE_LATENCY_2C;
if (id->idOpSize() == EA_16BYTE)
{
// Q-form
result.insThroughput = PERFSCORE_THROUGHPUT_1C;
result.insLatency = PERFSCORE_LATENCY_2C;
}
else
{
result.insThroughput = PERFSCORE_THROUGHPUT_2X;
result.insLatency = PERFSCORE_LATENCY_2C;
}
break;

case INS_fdiv:
Expand Down Expand Up @@ -12820,6 +12847,15 @@ emitter::insExecutionCharacteristics emitter::getInsExecutionCharacteristics(ins
result.insLatency = PERFSCORE_LATENCY_4C;
break;

case INS_facge:
case INS_facgt:
case INS_fcmeq:
case INS_fcmge:
case INS_fcmgt:
result.insThroughput = PERFSCORE_THROUGHPUT_2X;
result.insLatency = PERFSCORE_LATENCY_2C;
break;

case INS_fdiv:
if (id->idOpSize() == EA_8BYTE)
{
Expand Down