diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-05-17 14:14:12 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-05-17 14:14:12 +0000 |
commit | 4456a8ec76bba1148f64bb2707e18b980eda291e (patch) | |
tree | 329b91ac01b5bd3ce27154ebca08f2778a58570c /lib/ExecutionEngine | |
parent | e152eac63efa836cbb109d79e4307516fa16f1a6 (diff) | |
download | external_llvm-4456a8ec76bba1148f64bb2707e18b980eda291e.zip external_llvm-4456a8ec76bba1148f64bb2707e18b980eda291e.tar.gz external_llvm-4456a8ec76bba1148f64bb2707e18b980eda291e.tar.bz2 |
[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
Diffstat (limited to 'lib/ExecutionEngine')
0 files changed, 0 insertions, 0 deletions