llvm-6502/lib/Target/PowerPC/MCTargetDesc
Ulrich Weigand 4456a8ec76 [PowerPC] Fix hi/lo encoding in old-style code emitter
This patch implements the equivalent change to r182091/r182092
in the old-style code emitter.  Instead of having two separate
16-bit immediate encoding routines depending on the instruction,
this patch introduces a single encoder that checks the machine
operand flags to decide whether the low or high half of a
symbol address is required.

Since now both encoders make no further distinction between
"symbolLo" and "symbolHi", the .td operand can now use a
single getS16ImmEncoding method.

Tested by running the old-style JIT tests on 32-bit Linux.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182097 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-17 14:14:12 +00:00
..
CMakeLists.txt
LLVMBuild.txt
Makefile
PPCAsmBackend.cpp [PowerPC] Merge/rename PPC fixup types 2013-05-17 12:37:21 +00:00
PPCELFObjectWriter.cpp [PowerPC] Merge/rename PPC fixup types 2013-05-17 12:37:21 +00:00
PPCFixupKinds.h [PowerPC] Merge/rename PPC fixup types 2013-05-17 12:37:21 +00:00
PPCMCAsmInfo.cpp
PPCMCAsmInfo.h
PPCMCCodeEmitter.cpp [PowerPC] Fix hi/lo encoding in old-style code emitter 2013-05-17 14:14:12 +00:00
PPCMCTargetDesc.cpp Remove the MachineMove class. 2013-05-13 01:16:13 +00:00
PPCMCTargetDesc.h To avoid symbol clash, undefine PPC here. PPC may be predefined on some hosts. 2013-03-17 12:40:42 +00:00
PPCPredicates.cpp Move PPC getSwappedPredicate for reuse 2013-04-20 05:16:26 +00:00
PPCPredicates.h Move PPC getSwappedPredicate for reuse 2013-04-20 05:16:26 +00:00