Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add emitters for int <-> float/usize conversions #94

Merged
merged 32 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c9a2ea6
feat: Add emitters for int <-> float conversions
croyzor Sep 3, 2024
f0b52fc
Update src/custom/conversions.rs
croyzor Sep 3, 2024
21227e3
Remove redundant import
croyzor Sep 3, 2024
9df42ce
Add method to get current module
croyzor Sep 6, 2024
f135ba0
Redo the logic
croyzor Sep 6, 2024
2c1ac0d
Clippy
croyzor Sep 6, 2024
429410e
cargo fmt
croyzor Sep 6, 2024
d2ea3b1
Fix a bug
croyzor Sep 9, 2024
9864b5e
Get log width from type args
croyzor Sep 9, 2024
fdacf48
Refactor into a method; add sign extension; build int_max from rust
croyzor Sep 9, 2024
128b909
clippy
croyzor Sep 9, 2024
3fbe422
Add missing int arg to iabs
croyzor Sep 9, 2024
b06b62b
fix: pack truncation result in a struct
croyzor Sep 9, 2024
272cb7a
Update snapshots
croyzor Sep 9, 2024
c3150bb
fmt
croyzor Sep 9, 2024
ff914b2
Update binary builder to be consistent with the unary one
croyzor Sep 9, 2024
33d6dbf
Merge remote-tracking branch 'origin/main' into feat/conversions
croyzor Sep 9, 2024
79d458c
Fix a bug
croyzor Sep 9, 2024
cfd8ef0
Replace poison with undef
croyzor Sep 9, 2024
fe9e0fe
Update snapshots
croyzor Sep 9, 2024
e15a363
Add implementation of u64 <-> usize
croyzor Sep 9, 2024
d517c08
Add execution tests
croyzor Sep 9, 2024
98195d8
Wee refactor
croyzor Sep 10, 2024
a1ee70a
Statically compute the f64 upper bound
croyzor Sep 10, 2024
7742e1d
Don't rely on our current sum type representation
croyzor Sep 10, 2024
5504734
Update snapshots
croyzor Sep 11, 2024
327fa72
Check lower bounds for truncating floats; get rid of fabs
croyzor Sep 11, 2024
541277b
Review comments
croyzor Sep 11, 2024
3ed1c8b
Rename width -> log_width
croyzor Sep 11, 2024
fede030
Review comments
croyzor Sep 12, 2024
900b3a5
Add approximate roundtrip tests
croyzor Sep 12, 2024
85be9c1
Cargo fmt
croyzor Sep 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use crate::{

use super::emit::EmitOp;

pub mod conversions;
pub mod float;
pub mod int;
pub mod logic;
Expand Down
Loading