Skip to content

Commit 2f0f838

Browse files
add assert
1 parent 8bbfdaa commit 2f0f838

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/coreclr/jit/hwintrinsiccodegenxarch.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2482,6 +2482,10 @@ void CodeGen::genX86BaseIntrinsic(GenTreeHWIntrinsic* node, insOpts instOptions)
24822482
// emit the MUL/IMUL instruction
24832483
emit->emitInsBinary(ins, attr, node, op2);
24842484

2485+
// verify target registers are honored
2486+
assert(node->GetRegNum() == REG_EAX);
2487+
assert(node->GetRegByIndex(1) == REG_EDX);
2488+
24852489
break;
24862490
}
24872491

0 commit comments

Comments
 (0)