gen_wasm: Implement u128 right shift by delegating to compiler_rt

This commit is contained in:
Brian Carroll 2022-12-04 20:42:14 +00:00
parent f30811baac
commit 28d6d000ec
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
2 changed files with 11 additions and 1 deletions

View file

@ -1716,7 +1716,7 @@ impl<'a> LowLevelCall<'a> {
backend.code_builder.i64_extend_u_i32();
backend.code_builder.i64_shr_u();
}
I128 => todo!("{:?} for I128", self.lowlevel),
I128 => self.load_args_and_call_zig(backend, "__lshrti3"), // from compiler_rt
_ => panic_ret_type(),
}
}