Use dot syntax to bind type variables on instructions.

Encodings need to refer to concrete instances of polymorphic instructions by
binding type variables. Allow dot syntax like iadd.i32 to do that.
This commit is contained in:
Jakob Stoklund Olesen
2016-08-03 16:30:47 -07:00
parent 9cdf6edd62
commit c1d32167dc
2 changed files with 64 additions and 8 deletions

View File

@@ -17,5 +17,5 @@ for inst, f3, f7 in [
(base.bor, 0b110, 0b0000000),
(base.band, 0b111, 0b0000000)
]:
RV32.enc(inst, i32, R, OP(f3, f7))
RV64.enc(inst, i64, R, OP(f3, f7))
RV32.enc(inst.i32, R, OP(f3, f7))
RV64.enc(inst.i64, R, OP(f3, f7))