Add instructions using CPU flags.

Add integer and floating comparison instructions that return CPU flags:
ifcmp, ifcmp_imm, and ffcmp.

Add conditional branch instructions that check CPU flags: brif, brff

Add instructions that check a condition in the CPU flags and return a
b1: trueif, trueff.
This commit is contained in:
Jakob Stoklund Olesen
2017-10-12 15:21:40 -07:00
parent 15461c1e4b
commit 1f98fc491c
8 changed files with 262 additions and 28 deletions

View File

@@ -288,6 +288,16 @@ impl<'a> Verifier<'a> {
ref args,
..
} |
BranchInt {
destination,
ref args,
..
} |
BranchFloat {
destination,
ref args,
..
} |
BranchIcmp {
destination,
ref args,
@@ -340,7 +350,9 @@ impl<'a> Verifier<'a> {
ExtractLane { .. } |
IntCompare { .. } |
IntCompareImm { .. } |
IntCond { .. } |
FloatCompare { .. } |
FloatCond { .. } |
Load { .. } |
Store { .. } |
RegMove { .. } |