aarch64: Fix aarch64_map_regs for FpuRRI

This was wrong since I added it in 02c3f238f.

Copyright (c) 2020, Arm Limited.
This commit is contained in:
Joey Gouly
2020-11-04 16:53:25 +00:00
parent 54a97f784e
commit 0223cb2f8c

View File

@@ -2311,11 +2311,15 @@ fn aarch64_map_regs<RUM: RegUsageMapper>(inst: &mut Inst, mapper: &RUM) {
map_use(mapper, rm); map_use(mapper, rm);
} }
&mut Inst::FpuRRI { &mut Inst::FpuRRI {
fpu_op,
ref mut rd, ref mut rd,
ref mut rn, ref mut rn,
.. ..
} => { } => {
map_def(mapper, rd); match fpu_op {
FPUOpRI::UShr32(..) | FPUOpRI::UShr64(..) => map_def(mapper, rd),
FPUOpRI::Sli32(..) | FPUOpRI::Sli64(..) => map_mod(mapper, rd),
}
map_use(mapper, rn); map_use(mapper, rn);
} }
&mut Inst::FpuRRRR { &mut Inst::FpuRRRR {