Add x86_push and x86_pop instructions.

This commit is contained in:
Tyler McMullen
2017-11-22 12:25:01 -08:00
committed by Jakob Stoklund Olesen
parent 04f6ccabe5
commit 8ed37e352e
6 changed files with 20 additions and 1 deletions

View File

@@ -99,4 +99,17 @@ fmax = Instruction(
""",
ins=(x, y), outs=a)
WideInt = TypeVar(
'WideInt', 'An integer type with 16 to 64 bits',
ints=(16, 64))
x = Operand('x', WideInt)
push = Instruction(
'x86_push', "Pushes onto the stack.",
ins=x, can_store=True, other_side_effects=True)
pop = Instruction(
'x86_pop', "Pops from the stack.",
outs=x, can_load=True, other_side_effects=True)
GROUP.close()