Add a trapif instruction.

This is a conditional trap controlled by integer CPU flags.
Compare to brif.
This commit is contained in:
Jakob Stoklund Olesen
2018-02-08 14:39:06 -08:00
parent 3eeef1c752
commit 11c721934c
8 changed files with 49 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ RegFill = InstructionFormat(
Trap = InstructionFormat(trapcode)
CondTrap = InstructionFormat(VALUE, trapcode)
IntCondTrap = InstructionFormat(intcc, VALUE, trapcode)
# Finally extract the names of global variables in this module.
InstructionFormat.extract_names(globals())