Skip to content

Commit 4dc87bc

Browse files
committed
Update intrinsics examples
1 parent 1934758 commit 4dc87bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/intrinsics.rs

+5
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ mod intrinsics {
256256
a * b
257257
}
258258

259+
pub fn divtf(a: f128, b: f128) -> f128 {
260+
a / b
261+
}
262+
259263
pub fn subtf(a: f128, b: f128) -> f128 {
260264
a - b
261265
}
@@ -440,6 +444,7 @@ fn run() {
440444
bb(aeabi_uldivmod(bb(2), bb(3)));
441445
bb(ashlti3(bb(2), bb(2)));
442446
bb(ashrti3(bb(2), bb(2)));
447+
bb(divtf(bb(2.), bb(2.)));
443448
bb(divti3(bb(2), bb(2)));
444449
bb(eqtf(bb(2.), bb(2.)));
445450
bb(extendhfdf(bb(2.)));

0 commit comments

Comments
 (0)