Skip to content

Commit 6c7d86a

Browse files
committed
Add (and correct) some entry points
1 parent bfb8e77 commit 6c7d86a

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

src/jitstate.rs

+17-6
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,10 @@ impl<'a> JitState<'a> {
276276
jit_impl!(subxr, www);
277277
jit_impl!(subxi, i_www);
278278

279-
//TODO: jit_rsbr
279+
pub fn rsbr(&mut self, a: Reg, b: Reg, c: Reg) -> JitNode<'a> {
280+
self.subr(a, c, b)
281+
}
282+
280283
jit_impl!(rsbi, i_www);
281284

282285
jit_impl!(mulr, www);
@@ -393,10 +396,10 @@ impl<'a> JitState<'a> {
393396
jit_impl!(ldxi_c, i_www);
394397
jit_impl!(ldxr_uc, www);
395398
jit_impl!(ldxi_uc, i_www);
396-
jit_impl!(ldxi_s, www);
397399
jit_impl!(ldxr_s, www);
400+
jit_impl!(ldxi_s, i_www);
401+
jit_impl!(ldxr_us, www);
398402
jit_impl!(ldxi_us, i_www);
399-
jit_impl!(ldxr_us, i_www);
400403
jit_impl!(ldxr_i, www);
401404
jit_impl!(ldxi_i, i_www);
402405
#[cfg(target_pointer_width = "64")]
@@ -542,7 +545,11 @@ impl<'a> JitState<'a> {
542545
jit_impl!(addi_f, i_wwf);
543546
jit_impl!(subr_f, www);
544547
jit_impl!(subi_f, i_wwf);
545-
//TODO: rsbr_f
548+
549+
pub fn rsbr_f(&mut self, a: Reg, b: Reg, c: Reg) -> JitNode<'a> {
550+
self.subr_f(a, c, b)
551+
}
552+
546553
jit_impl!(rsbi_f, i_wwf);
547554
jit_impl!(mulr_f, www);
548555
jit_impl!(muli_f, i_wwf);
@@ -627,7 +634,7 @@ impl<'a> JitState<'a> {
627634
jit_branch!(bungtr_f, r);
628635
jit_branch!(bungti_f, f);
629636
jit_branch!(bltgtr_f, r);
630-
jit_branch!(bltgti_f, d);
637+
jit_branch!(bltgti_f, f);
631638
jit_branch!(bordr_f, r);
632639
jit_branch!(bordi_f, f);
633640
jit_branch!(bunordr_f, r);
@@ -651,7 +658,11 @@ impl<'a> JitState<'a> {
651658
jit_impl!(addi_d, i_wwd);
652659
jit_impl!(subr_d, www);
653660
jit_impl!(subi_d, i_wwd);
654-
//TODO: rsbr_d
661+
662+
pub fn rsbr_d(&mut self, a: Reg, b: Reg, c: Reg) -> JitNode<'a> {
663+
self.subr_d(a, c, b)
664+
}
665+
655666
jit_impl!(rsbi_d, i_wwd);
656667
jit_impl!(mulr_d, www);
657668
jit_impl!(muli_d, i_wwd);

0 commit comments

Comments
 (0)