Arm fails to compile #19

Closed
opened 2024-05-05 11:12:43 -05:00 by able · 0 comments
Owner
error[E0069]: `return;` in a function whose return type is not `()`
  --> /home/able/.cargo/git/checkouts/holey-bytes-d8b90e524a790b7d/247b2c6/hbvm/src/float/aarch64.rs:13:21
   |
9  |           $vis fn $name(val: $from, mode: RoundingMode) -> $to {
   |                                                            --- expected `$to` because of this return type
...
13 |                       return;
   |                       ^^^^^^ return type is not `()`
...
40 | / fnsdef! {
41 | |     /// Convert [`f64`] to [`f32`] with chosen rounding mode
42 | |     pub fn conv64to32[vreg -> vreg](f64 -> f32): "fcvt {:s}, {:d}";
43 | |
...  |
48 | |     pub fn f64toint[vreg -> reg](f64 -> i64): "fcvtzs {}, {:d}";
49 | | }
   | |_- in this macro invocation
   |
   = note: this error originates in the macro `fnsdef` (in Nightly builds, run with -Z macro-backtrace for more info)
``` error[E0069]: `return;` in a function whose return type is not `()` --> /home/able/.cargo/git/checkouts/holey-bytes-d8b90e524a790b7d/247b2c6/hbvm/src/float/aarch64.rs:13:21 | 9 | $vis fn $name(val: $from, mode: RoundingMode) -> $to { | --- expected `$to` because of this return type ... 13 | return; | ^^^^^^ return type is not `()` ... 40 | / fnsdef! { 41 | | /// Convert [`f64`] to [`f32`] with chosen rounding mode 42 | | pub fn conv64to32[vreg -> vreg](f64 -> f32): "fcvt {:s}, {:d}"; 43 | | ... | 48 | | pub fn f64toint[vreg -> reg](f64 -> i64): "fcvtzs {}, {:d}"; 49 | | } | |_- in this macro invocation | = note: this error originates in the macro `fnsdef` (in Nightly builds, run with -Z macro-backtrace for more info) ```
able added the
I-bug
label 2024-05-05 11:12:43 -05:00
erin was assigned by able 2024-05-05 11:12:43 -05:00
able closed this issue 2024-11-18 06:28:14 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: AbleOS/holey-bytes#19
No description provided.