Add (some) encodings for x86_push/pop instructions. Simple uses actually pass the legalizer now.

This commit is contained in:
Tyler McMullen
2017-11-22 19:18:51 -08:00
committed by Jakob Stoklund Olesen
parent cdf70ccb77
commit b8275f5713
4 changed files with 22 additions and 5 deletions

View File

@@ -99,10 +99,9 @@ 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)
Int = TypeVar('Int', 'A scalar integer type', ints=True)
x = Operand('x', Int)
push = Instruction(
'x86_push', "Pushes onto the stack.",