summaryrefslogtreecommitdiff
path: root/test/MC/PowerPC/ppc-llong.s
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2014-03-24 18:16:09 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2014-03-24 18:16:09 +0000
commit47eac58333828d7a573eef418fe68e1fe622f977 (patch)
tree08aaebaf924c46f51fa46dc6844934e4238c8412 /test/MC/PowerPC/ppc-llong.s
parent4768df00c436b8da6357c30071bc3f35820bc2bf (diff)
downloadllvm-47eac58333828d7a573eef418fe68e1fe622f977.tar.gz
llvm-47eac58333828d7a573eef418fe68e1fe622f977.tar.bz2
llvm-47eac58333828d7a573eef418fe68e1fe622f977.tar.xz
[PowerPC] Generate little-endian object files
As a first step towards real little-endian code generation, this patch changes the PowerPC MC layer to actually generate little-endian object files. This involves passing the little-endian flag through the various layers, including down to createELFObjectWriter so we actually get basic little-endian ELF objects, emitting instructions in little-endian order, and handling fixups and relocations as appropriate for little-endian. The bulk of the patch is to update most test cases in test/MC/PowerPC to verify both big- and little-endian encodings. (The only test cases *not* updated are those that create actual big-endian ABI code, like the TLS tests.) Note that while the object files are now little-endian, the generated code itself is not yet updated, in particular, it still does not adhere to the ELFv2 ABI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/PowerPC/ppc-llong.s')
-rw-r--r--test/MC/PowerPC/ppc-llong.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/MC/PowerPC/ppc-llong.s b/test/MC/PowerPC/ppc-llong.s
index 0838e424fb..5d92fe3196 100644
--- a/test/MC/PowerPC/ppc-llong.s
+++ b/test/MC/PowerPC/ppc-llong.s
@@ -3,6 +3,8 @@
# RUN: llvm-readobj -s -sd | FileCheck %s
# RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \
# RUN: llvm-readobj -s -sd | FileCheck %s
+# RUN: llvm-mc -triple powerpc64le-unknown-unknown -filetype=obj %s | \
+# RUN: llvm-readobj -s -sd | FileCheck %s
.data
.llong 0