Commit 8ba0ebb1 authored by Daniel Chen's avatar Daniel Chen

Revert "revert"

This reverts commit 30c26465.
parent c8e3e6c9
Pipeline #8520 passed with stages
in 11 minutes and 20 seconds
......@@ -75,7 +75,7 @@ bool KillDeads::execute()
{
// for flags, do a random compare to change them
char buf[100];
sprintf(buf," cmp rax, %d", kill_val);
sprintf(buf," cmp rax, 0x%x", kill_val);
cout << "Inserting '" << buf << "' before '" << insn->getDisassembly() << "'" << endl;
insertAssemblyBefore(insn, buf);
killed_flags++;
......@@ -86,7 +86,7 @@ bool KillDeads::execute()
{
// integer registers can be killed with a mov instruction
char buf[100];
sprintf(buf," mov %s, %d", registerToString(reg).c_str(), kill_val);
sprintf(buf," mov %s, 0x%x", registerToString(reg).c_str(), kill_val);
cout << "Inserting '" << buf << "' before '" << insn->getDisassembly() << "'" << endl;
insertAssemblyBefore(insn, buf);
killed_regs++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment