[PATCH] D47941: [mips] Add additional parameter to LONG_BRANCH_LUi/ADDiu pseudo instructions

Aleksandar Beserminji via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 8 06:12:38 PDT 2018


abeserminji created this revision.
abeserminji added reviewers: sdardis, petarj.
Herald added subscribers: atanasyan, arichardson.

Extend LONG_BRANCH_LUi and LONG_BRANCH_ADDiu pseudo instructions, so instead
of always lowering to //lui %hi(...)//, //addiu %lo(...)// or //addiu %hi(...)//, now they are
parameterized and can lower to either %lo, %hi, %higher or %highest.


Repository:
  rL LLVM

https://reviews.llvm.org/D47941

Files:
  lib/Target/Mips/MipsBranchExpansion.cpp
  lib/Target/Mips/MipsMCInstLower.cpp
  lib/Target/Mips/MipsMCInstLower.h
  test/CodeGen/Mips/longbranch/branch-limits-fp-micromips.mir
  test/CodeGen/Mips/longbranch/branch-limits-fp-micromipsr6.mir
  test/CodeGen/Mips/longbranch/branch-limits-fp-mips.mir
  test/CodeGen/Mips/longbranch/branch-limits-fp-mipsr6.mir
  test/CodeGen/Mips/longbranch/branch-limits-int-microMIPS.mir
  test/CodeGen/Mips/longbranch/branch-limits-int-micromipsr6.mir
  test/CodeGen/Mips/longbranch/branch-limits-int-mipsr6.mir
  test/CodeGen/Mips/longbranch/branch-limits-int.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47941.150497.patch
Type: text/x-patch
Size: 30112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180608/72381c47/attachment-0001.bin>


More information about the llvm-commits mailing list