[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)
commit7c3f0dc7e4e4e31f636b846bcc31cf442d9a7df5
tree5c67890ca36f75848140200e9cab3892262f77b4
parent457e606d1f701a0336994d3a3eeea17c74753580
[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.

llvm-svn: 211171
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp