[PATCH] D50615: [mips] Fix microMIPS unconditional branch offset handling
    Simon Atanasyan via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Aug 12 13:10:09 PDT 2018
    
    
  
atanasyan created this revision.
atanasyan added a reviewer: abeserminji.
Herald added subscribers: jrtc27, arichardson, sdardis.
MipsSEInstrInfo class defines for internal purpose unconditional branches as Mips::B nad Mips:J even in case of microMIPS code generation. Under some conditions that leads to the bug - for rather long branch which fits to Mips jump instruction offset size, but does not fit to microMIPS jump offset size, we generate §short§ branch and later show an error 'out of range PC16 fixup' after chek in the isBranchOffsetInRange routine.
Repository:
  rL LLVM
https://reviews.llvm.org/D50615
Files:
  lib/Target/Mips/MipsSEInstrInfo.cpp
  test/CodeGen/Mips/micromips-b-range.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50615.160271.patch
Type: text/x-patch
Size: 4544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180812/4e9ffc39/attachment.bin>
    
    
More information about the llvm-commits
mailing list