forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
following rust program https://github.com/mrk-its/aoc2022/blob/new_rust/pi/src/main.rs
produces bad result:
$ cargo run -p pi --release
100 pi: -2147450880
47611328 cycles
changing casting to to_int_unchecked produces proper result:
$ cargo run -p pi --release --features to_int_unchecked
100 pi: 314
47474448 cycles
This is probably because of some flaw in implementation of intrinsic(@llvm.fptosi.sat) llvm-mos/llvm-mos-sdk#299 (llvm-mos/llvm-mos@2372941 llvm-mos/llvm-mos-sdk#303)
Reactions are currently unavailable