[PATCH] Sparc: Prefer reg+reg address encoding when only one register used.

James Y Knight jyknight at google.com
Tue Mar 31 15:14:36 PDT 2015


Reg+%g0 is preferred to Reg+imm0 by the manual, and is what GCC produces.

Futhermore, reg+imm is invalid for the (not yet supported) "alternate address space" instructions.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8753

Files:
  lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
  test/MC/Disassembler/Sparc/sparc-mem.txt
  test/MC/Sparc/sparc-ctrl-instructions.s
  test/MC/Sparc/sparc-mem-instructions.s

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8753.23011.patch
Type: text/x-patch
Size: 9999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150331/e1ec5d96/attachment.bin>


More information about the llvm-commits mailing list