bitwise #15
@@ -39,7 +39,7 @@ pub fn constant_propagation<'a>(
|
|||||||
}),
|
}),
|
||||||
Instruction::Sra(dst, a, b) => try_fold_bitwise(dst, a, b, ®isters, |x, y| {
|
Instruction::Sra(dst, a, b) => try_fold_bitwise(dst, a, b, ®isters, |x, y| {
|
||||||
if y >= 64 {
|
if y >= 64 {
|
||||||
(if x < 0 { -1 } else { 0 })
|
if x < 0 { -1 } else { 0 }
|
||||||
} else {
|
} else {
|
||||||
x >> y as u32
|
x >> y as u32
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user