Support floating point intrinsics in const eval

This commit is contained in:
hkalbasi 2023-06-02 17:29:17 +03:30
parent f9e3b180b7
commit a6a27a7ff8
4 changed files with 296 additions and 109 deletions

View file

@ -870,7 +870,7 @@ impl Evaluator<'_> {
Owned(c.to_le_bytes().into())
}
chalk_ir::FloatTy::F64 => {
let c = -from_bytes!(f32, c);
let c = -from_bytes!(f64, c);
Owned(c.to_le_bytes().into())
}
}