-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/sdasgup3/binary-decompilation/issues/77
- Loading branch information
Showing
13 changed files
with
157 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
tests/gcc.c-torture/instruction_semantics/cmovbe_r32_r32.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module CMOVBE-R32-R32 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (cmovbe R1:R32, R2:R32, .Operands) => execinstr (cmovbel R1:R32, R2:R32, .Operands) | ||
...</k> | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module CMOVE-R32-R32 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (cmove R1:R32, R2:R32, .Operands) => execinstr (cmovel R1:R32, R2:R32, .Operands) | ||
...</k> | ||
|
||
endmodule | ||
|
13 changes: 13 additions & 0 deletions
13
tests/gcc.c-torture/instruction_semantics/cmovge_r32_r32.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module CMOVGE-R32-R32 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (cmovge R1:R32, R2:R32, .Operands) => execinstr (cmovgel R1:R32, R2:R32, .Operands) | ||
...</k> | ||
|
||
endmodule | ||
|
||
|
13 changes: 13 additions & 0 deletions
13
tests/gcc.c-torture/instruction_semantics/cmovle_r32_r32.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module CMOVLE-R32-R32 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (cmovle R1:R32, R2:R32, .Operands) => execinstr (cmovlel R1:R32, R2:R32, .Operands) | ||
...</k> | ||
|
||
endmodule | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module CMOVS-R64-R64 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (cmovs R1:R64, R2:R64, .Operands) => execinstr (cmovsq R1:R64, R2:R64, .Operands) | ||
...</k> | ||
|
||
endmodule | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module ROLL-M32 | ||
imports X86-CONFIGURATION | ||
|
||
context execinstr(roll:Opcode HOLE:Mem, .Operands) [result(MemOffset)] | ||
|
||
rule <k> | ||
execinstr (roll:Opcode memOffset( MemOff:MInt):MemOffset, .Operands) => execinstr (roll:Opcode $0x1, memOffset( MemOff:MInt):MemOffset, .Operands) | ||
...</k> | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module SARB-R8 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (sarb R2:R8, .Operands) => execinstr (sarb $0x1, R2:R8, .Operands) | ||
...</k> | ||
|
||
endmodule | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module SARL-M32 | ||
imports X86-CONFIGURATION | ||
|
||
context execinstr(sarl:Opcode HOLE:Mem, .Operands) [result(MemOffset)] | ||
|
||
rule <k> | ||
execinstr (sarl:Opcode memOffset( MemOff:MInt):MemOffset, .Operands) => execinstr (sarl $0x1, memOffset( MemOff), .Operands) | ||
...</k> | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module SARW-R16 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (sarw R2:R16, .Operands) => execinstr (sarw $0x1, R2:R16, .Operands) | ||
...</k> | ||
endmodule | ||
|
||
|
12 changes: 12 additions & 0 deletions
12
tests/gcc.c-torture/instruction_semantics/sarx_r32_r32_r32.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module SARX-R32-R32-R32 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (sarx R1:R32, R2:R32, R3:R32, .Operands) => execinstr (sarxl R1, R2, R3, .Operands) | ||
...</k> | ||
|
||
endmodule | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module SHRL-R32 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (shrl R2:R32, .Operands) => execinstr (shrl $0x1, R2:R32, .Operands) | ||
...</k> | ||
endmodule | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module SHRQ-R64 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (shrq R2:R64, .Operands) => execinstr (shrq $0x1, R2:R64, .Operands) | ||
...</k> | ||
endmodule |
11 changes: 11 additions & 0 deletions
11
tests/gcc.c-torture/instruction_semantics/shrx_r32_r32_r32.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Autogenerated using stratification. | ||
requires "x86-configuration.k" | ||
|
||
module SHRX-R32-R32-R32 | ||
imports X86-CONFIGURATION | ||
|
||
rule <k> | ||
execinstr (shrx R1:R32, R2:R32, R3:R32, .Operands) => execinstr (shrxl R1:R32, R2:R32, R3:R32, .Operands) | ||
...</k> | ||
endmodule | ||
|