Skip to content

Commit 9e26c52

Browse files
committed
fix formatting
1 parent b9eeb0c commit 9e26c52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AVR/Disassembler/AVRDisassembler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ static DecodeStatus decodeAddSubWordImm(MCInst &Inst, unsigned Insn,
337337
if ((Insn & 0xfe00) == 0x9600) {
338338
Inst.setOpcode((Insn & 0xff00) == 0x9600 ? AVR::ADIWRdK : AVR::SUBIWRdK);
339339
Inst.addOperand(MCOperand::createReg(RegVal));
340-
Inst.addOperand(
341-
MCOperand::createImm(((Insn & 0x00C0) >> 2) | (Insn & 0xF)));
340+
unsigned imm = ((Insn & 0x00C0) >> 2) | (Insn & 0xF);
341+
Inst.addOperand(MCOperand::createImm(imm));
342342
return MCDisassembler::Success;
343343
}
344344
return MCDisassembler::Fail;
@@ -538,8 +538,8 @@ DecodeStatus AVRDisassembler::getInstruction(MCInst &Instr, uint64_t &Size,
538538
Result = decodeMoveWord(Instr, Insn, Address, this);
539539
if (Result != MCDisassembler::Fail)
540540
return Result;
541-
542-
// Try to decode to a ADIW instruction
541+
542+
// Try to decode to a ADIW /SBIW instruction
543543
Result = decodeAddSubWordImm(Instr, Insn, Address, this);
544544
if (Result != MCDisassembler::Fail)
545545
return Result;

0 commit comments

Comments
 (0)