Skip to content

Commit

Permalink
#77: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sdasgup3 committed Jun 6, 2018
1 parent 9ac0309 commit cad050d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x86-semantics/semantics/registerInstructions/xchgl_r32_r32.k
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@ convToRegKeys(R2) |-> concatenateMInt( mi(32, 0), extractMInt( getParentValue(R1
requires notBool sameRegisters(R1, R2)


// There are several possible encodings for the instruction xchgl eax, eax, and
// only the two variants that hard-code one of the operands to be eax are affected.
// These essentially encode to nop. According to this, the following
// should not be nop.
/*
rule <k>
execinstr (xchgl R1:R32, R1:R32, .Operands) => execinstr(nop .Operands)
...</k>
requires sameRegisters(R1, %eax)
*/
endmodule

module XCHGL-R32-R32-SEMANTICS
Expand Down

0 comments on commit cad050d

Please sign in to comment.