[PowerPC] Fix emitting instruction pairs on LE
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 18 Jun 2014 15:37:07 +0000 (15:37 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 18 Jun 2014 15:37:07 +0000 (15:37 +0000)
commitb7074b8c2d30631b293c13d2279fe2f031ca9726
tree11d5af546755a281e5b75ce3311135ac910170bc
parent3fbbe94b9320d29d9be8e8064447c42b6c353352
[PowerPC] Fix emitting instruction pairs on LE

My patch r204634 to emit instructions in little-endian format failed to
handle those special cases where we emit a pair of instructions from a
single LLVM MC instructions (like the bl; nop pairs used to implement
the call sequence).

In those cases, we still need to emit the "first" instruction (the one
in the more significant word) first, on both big and little endian,
and not swap them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211171 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp