Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sdasgup3 committed Jul 1, 2018
1 parent 125d3d2 commit 0124ed3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions semantics/specialInstructions/movl_r32_label.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Autogenerated using stratification.
requires "x86-configuration.k"

module MOVL-R32-LABEL
imports X86-CONFIGURATION

rule <k>
execinstr (movl $ LabelId:X86Id, R2:R32, .Operands) =>
execinstr (movl $ uvalueMInt(Target), R2:R32, .Operands)
...</k>
<functargets>... LabelId |-> Target:MInt ...</functargets>

endmodule


14 changes: 14 additions & 0 deletions semantics/specialInstructions/movq_m64_label.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Autogenerated using stratification.
requires "x86-configuration.k"

module MOVQ-M64-IMM32
imports X86-CONFIGURATION

context execinstr(movq:Opcode $ LabelId:X86Id, HOLE:Mem, .Operands) [result(MemOffset)]

rule <k>
execinstr (movq:Opcode $ LabelId:X86Id, memOffset( MemOff:MInt):MemOffset, .Operands) =>
execinstr (movq $ uvalueMInt(Target), memOffset( MemOff), .Operands)
...</k>
<functargets>... LabelId |-> Target:MInt ...</functargets>
endmodule

0 comments on commit 0124ed3

Please sign in to comment.