llvm/test/MC
Jack Carter 9d577c8614 Implement methods that enable expansion of load immediate
macro instruction (li) in the assembler.

We have identified three possible expansions depending on 
the size of immediate operand:
  1) for 0 ≤ j ≤ 65535.
     li d,j =>
     ori d,$zero,j

  2) for −32768 ≤ j < 0.
     li d,j =>
     addiu d,$zero,j

  3) for any other value of j that is representable as a 32-bit integer.
     li d,j =>
     lui d,hi16(j)
     ori d,d,lo16(j)

All of the above have been implemented in ths patch.

Contributer: Vladimir Medic


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165199 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-04 04:03:53 +00:00
..
ARM ARM: 'add Rd, pc, #imm' is an alias for 'adr Rd, #imm'. 2012-09-25 00:08:13 +00:00
AsmParser Add support for macro parameters/arguments delimited by spaces, 2012-09-19 20:36:12 +00:00
COFF Emit dtors into proper section while compiling in vcpp-compatible mode. 2012-09-23 15:53:47 +00:00
Disassembler Diagnose invalid alignments on duplicating VLDn instructions. 2012-09-06 15:27:12 +00:00
ELF MC: Overhaul handling of .lcomm 2012-09-07 17:25:13 +00:00
MachO MachO: direct-to-object attribute for data-in-code markers. 2012-10-01 22:20:54 +00:00
MBlaze Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu 2012-03-25 09:02:19 +00:00
Mips Implement methods that enable expansion of load immediate 2012-10-04 04:03:53 +00:00
X86 llvm/test/MC/X86/x86_nop.s: Make sure -arch=x86 when -mcpu=geode. 2012-09-19 00:56:20 +00:00