Make the verifier accept any of the legal encodings of an instruction

This commit is contained in:
Angus Holder
2017-09-18 20:41:01 +01:00
committed by Jakob Stoklund Olesen
parent da4cde8117
commit d2273c73ea
2 changed files with 38 additions and 20 deletions

View File

@@ -16,6 +16,6 @@ function %RV32I(i32 link [%x1]) -> i32 link [%x1] {
ebb0(v9999: i32):
v1 = iconst.i32 1
v2 = iconst.i32 2
[R#0,-] v3 = iadd v1, v2 ; error: Instruction re-encoding
[R#0,-] v3 = iadd v1, v2 ; error: Instruction encoding R#00 doesn't match any possibilities
return v9999
}