s390x: Fix instruction encoding and disassembly format bugs (#5786)

- Fix encoding of the AHY instruction.
- Fix disassembly format of FIEBR, FIDBR, and LEDBRA instructions.
This commit is contained in:
Ulrich Weigand
2023-02-15 17:36:44 +01:00
committed by GitHub
parent e10094dcd6
commit 305000d14b
5 changed files with 37 additions and 32 deletions

View File

@@ -2359,11 +2359,16 @@ impl Inst {
let (rn, rn_fpr) = pretty_print_fpr(rn, allocs);
if opcode_fpr.is_some() && rd_fpr.is_some() && rn_fpr.is_some() {
format!(
"{} {}, {}, {}",
"{} {}, {}, {}{}",
opcode_fpr.unwrap(),
rd_fpr.unwrap(),
mode,
rn_fpr.unwrap(),
mode
if opcode_fpr.unwrap().ends_with('a') {
", 0"
} else {
""
}
)
} else if opcode.starts_with('w') {
format!(