Skip to content

Commit

Permalink
add v_min3_i32
Browse files Browse the repository at this point in the history
  • Loading branch information
Qazalin committed Aug 19, 2024
1 parent dbb93f7 commit d9b1b1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ impl<'a> Thread<'a> {
let ret = (s0 >> (s1 & 0x1f)) & (mask.wrapping_sub(1));
((ret << shift) >> shift) as u32
}
522 | 541 | 544 | 814 => {
522 | 541 | 538 | 544 | 814 => {
let (s0, s1, s2) = (s0 as i32, s1 as i32, s2 as i32);

(match op {
Expand All @@ -1394,6 +1394,7 @@ impl<'a> Thread<'a> {
sign_ext((s1 & 0xffffff) as u64, 24) as i32;
s0 * s1 + s2
}
538 => i32::min(i32::min(s0, s1), s2),
541 => i32::max(i32::max(s0, s1), s2),
544 => {
if (i32::max(i32::max(s0, s1), s2)) == s0 {
Expand Down

0 comments on commit d9b1b1a

Please sign in to comment.