[PATCH] D10967: [mips] Fix li/la differences between IAS and GAS.

Daniel Sanders daniel.sanders at imgtec.com
Mon Jul 6 09:54:37 PDT 2015


dsanders added a reviewer: vkalintiris.
dsanders added a subscriber: llvm-commits.

- Signed 16-bit should have priority over unsigned.
- For la, unsigned 16-bit must use ori+addu rather than directly use ori.
- Correct tests on 32-bit immediates with 64-bit predicates by
  sign-extending the immediate beforehand. For example, isInt<16>(0xffff8000)
  should be true and use addiu.

Also split li/la testing into separate files due to their size.

http://reviews.llvm.org/D10967

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  test/MC/Mips/macro-la-bad.s
  test/MC/Mips/macro-la.s
  test/MC/Mips/macro-li-bad.s
  test/MC/Mips/macro-li.s
  test/MC/Mips/micromips-expansions.s
  test/MC/Mips/mips-expansions-bad.s
  test/MC/Mips/mips-expansions.s
  test/MC/Mips/mips64-expansions.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10967.29102.patch
Type: text/x-patch
Size: 44765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150706/70e3e418/attachment.bin>


More information about the llvm-commits mailing list