llvm.org GIT mirror llvm / dd051a0
ARMDisassembler.cpp: Fix utf8 char in comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157292 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 8 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
33383338
33393339 static DecodeStatus DecodeThumbBLXOffset(MCInst &Inst, unsigned Val,
33403340 uint64_t Address, const void *Decoder) {
3341 // Val is passed in as S:J1:J2:imm10H:imm10L:’0’
3341 // Val is passed in as S:J1:J2:imm10H:imm10L:'0'
33423342 // Note only one trailing zero not two. Also the J1 and J2 values are from
33433343 // the encoded instruction. So here change to I1 and I2 values via:
33443344 // I1 = NOT(J1 EOR S);
33453345 // I2 = NOT(J2 EOR S);
33463346 // and build the imm32 with two trailing zeros as documented:
3347 // imm32 = SignExtend(S:I1:I2:imm10H:imm10L:’00’, 32);
3347 // imm32 = SignExtend(S:I1:I2:imm10H:imm10L:'00', 32);
33483348 unsigned S = (Val >> 23) & 1;
33493349 unsigned J1 = (Val >> 22) & 1;
33503350 unsigned J2 = (Val >> 21) & 1;
34763476 // I1 = NOT(J1 EOR S);
34773477 // I2 = NOT(J2 EOR S);
34783478 // and build the imm32 with one trailing zero as documented:
3479 // imm32 = SignExtend(S:I1:I2:imm10:imm11:’0’, 32);
3479 // imm32 = SignExtend(S:I1:I2:imm10:imm11:'0', 32);
34803480 unsigned S = (Val >> 23) & 1;
34813481 unsigned J1 = (Val >> 22) & 1;
34823482 unsigned J2 = (Val >> 21) & 1;