Legalize bint.i8

This commit is contained in:
bjorn3
2018-08-13 21:23:25 +02:00
parent ad184ff9aa
commit fa65ee7a68
2 changed files with 19 additions and 0 deletions

View File

@@ -257,6 +257,15 @@ for int_ty in [types.i8, types.i16]:
)
)
for int_ty in [types.i8, types.i16]:
widen.legalize(
a << insts.bint.bind(int_ty)(b),
Rtl(
x << insts.bint.i32(b),
a << ireduce.bind(int_ty)(x)
)
)
# Expand integer operations with carry for RISC architectures that don't have
# the flags.
expand.legalize(