Skip to content

Commit

Permalink
Update intrinsics examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Aug 19, 2024
1 parent 1934758 commit 4dc87bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ mod intrinsics {
a * b
}

pub fn divtf(a: f128, b: f128) -> f128 {
a / b
}

pub fn subtf(a: f128, b: f128) -> f128 {
a - b
}
Expand Down Expand Up @@ -440,6 +444,7 @@ fn run() {
bb(aeabi_uldivmod(bb(2), bb(3)));
bb(ashlti3(bb(2), bb(2)));
bb(ashrti3(bb(2), bb(2)));
bb(divtf(bb(2.), bb(2.)));
bb(divti3(bb(2), bb(2)));
bb(eqtf(bb(2.), bb(2.)));
bb(extendhfdf(bb(2.)));
Expand Down

0 comments on commit 4dc87bc

Please sign in to comment.