[PATCH] [mips] Honour -mno-odd-spreg for vector insert/extract when MSA is enabled.

Daniel Sanders daniel.sanders at imgtec.com
Mon Feb 16 08:25:03 PST 2015


Hi vmedic, sstankovic,

-mno-odd-spreg prohibits the use of odd-numbered single-precision floating
point registers. However, vector insert/extract was still using them when
manipulating the subregisters of an MSA register. Fixed this by ensuring
that insertion/extraction is only performed on even-numbered vector
registers when -mno-odd-spreg is given.

http://reviews.llvm.org/D7672

Files:
  lib/Target/Mips/MipsRegisterInfo.td
  lib/Target/Mips/MipsSEISelLowering.cpp
  test/CodeGen/Mips/no-odd-spreg-msa.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7672.20035.patch
Type: text/x-patch
Size: 8308 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150216/409516e2/attachment.bin>


More information about the llvm-commits mailing list