Add Intel iconst.i32 encoding.

This commit is contained in:
Jakob Stoklund Olesen
2017-06-30 11:41:06 -07:00
parent 7bc2e82b16
commit c592d3174f
4 changed files with 26 additions and 3 deletions

View File

@@ -22,6 +22,9 @@ for inst, rrr in [
I32.enc(inst, *r.rib(0x83, rrr=rrr))
I32.enc(inst, *r.rid(0x81, rrr=rrr))
# Immediate constant.
I32.enc(base.iconst.i32, *r.uid(0xb8))
# 32-bit shifts and rotates.
# Note that the dynamic shift amount is only masked by 5 or 6 bits; the 8-bit
# and 16-bit shifts would need explicit masking.