Made test pass

This commit is contained in:
Asher Frost 2024-12-01 16:03:40 -05:00
parent 7055253564
commit c2d06e3658
No known key found for this signature in database
GPG key ID: 4C8BA25CB3670AF4
2 changed files with 8 additions and 13 deletions

View file

@ -1162,22 +1162,18 @@ pub(crate) fn run_low_level<'a, 'ctx>(
env.builder
.build_int_s_extend(arg.into_int_value(), to, "inc_cast")
}
//U16 -> X32
(false, _, true) => {
env.builder
.build_int_z_extend(arg.into_int_value(), to, "inc_cast")
},
//I16 -> U32
(true,false,true)
(true,false,true)
//Any case where it is not an extension, also perhaps warn here?
| (_, _, false) => {
| (_, _, false) => {
Ok(env.builder
.new_build_int_cast_sign_flag(arg.into_int_value(), to, to_signed, "inc_cast"))
}
};
let Ok(value) = result else { todo!() };