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

@@ -1568,7 +1568,7 @@ impl Inst {
let (opcode_rx, opcode_rxy) = match alu_op {
ALUOp::Add32 => (Some(0x5a), Some(0xe35a)), // A(Y)
ALUOp::Add32Ext16 => (Some(0x4a), Some(0xe34a)), // AH(Y)
ALUOp::Add32Ext16 => (Some(0x4a), Some(0xe37a)), // AH(Y)
ALUOp::Add64 => (None, Some(0xe308)), // AG
ALUOp::Add64Ext16 => (None, Some(0xe338)), // AGH
ALUOp::Add64Ext32 => (None, Some(0xe318)), // AGF