[PATCH] D17068: [mips][microMIPS] Fix for "Cannot copy registers" assertion

Hrvoje Varga via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 04:12:15 PST 2016


hvarga created this revision.
hvarga added reviewers: dsanders, zoran.jovanovic, zbuljan.
hvarga added subscribers: llvm-commits, petarj.
Herald added a reviewer: vkalintiris.
Herald added a subscriber: dsanders.

Patch is fixing assertion raised in case of copying 64-bit register into 32-bit one and vice versa. This assertion is raised in case when `-mcpu=mips64r6` and `-mattr=micromips` are set for `llc`.

There are two test cases that are triggering this assertion. Test `test/CodeGen/Mips/micromips-addiu.ll` is for a case of copying 64-bit into 32-bit register and test `test/CodeGen/Mips/micromips-gp-rc.ll` is for a case of copying 32-bit into 64-bit register.

http://reviews.llvm.org/D17068

Files:
  lib/Target/Mips/MicroMipsInstrInfo.td
  lib/Target/Mips/MipsMachineFunction.cpp
  lib/Target/Mips/MipsRegisterInfo.td
  test/CodeGen/Mips/micromips-addiu.ll
  test/CodeGen/Mips/micromips-gp-rc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17068.47438.patch
Type: text/x-patch
Size: 4899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160210/47781a34/attachment.bin>


More information about the llvm-commits mailing list