We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
moves
1 parent d6b1509 commit b4eedf3Copy full SHA for b4eedf3
1 file changed
fuzz/fuzz_targets/moves.rs
@@ -62,7 +62,7 @@ impl Arbitrary<'_> for TestCase {
62
63
// We might have some unallocated registers free for scratch
64
// space...
65
- for i in u.int_in_range(0..=2) {
+ for i in 0..u.int_in_range(0..=2)? {
66
let reg = PReg::new(30 + i, RegClass::Int);
67
ret.available_pregs.push(Allocation::reg(reg));
68
}
@@ -107,10 +107,6 @@ fuzz_target!(|testcase: TestCase| {
107
// Simulate the sequence of moves.
108
let mut locations: HashMap<Allocation, Allocation> = HashMap::new();
109
for (src, dst, _) in moves {
110
- if is_stack_alloc(src) && is_stack_alloc(dst) {
111
- panic!("Stack-to-stack move!");
112
- }
113
-
114
let data = locations.get(&src).cloned().unwrap_or(src);
115
locations.insert(dst, data);
116
0 commit comments