summaryrefslogtreecommitdiff
path: root/test/MC/PowerPC/ppc-nop.s
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-07-04 18:28:46 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-07-04 18:28:46 +0000
commit972befb3f281f0f9ce08d7cf27b4e879327676b0 (patch)
treed586b61b885f9b28d473c087c1222bf5cdb77dbd /test/MC/PowerPC/ppc-nop.s
parent449f64c69c8db6ac0b63078e1feb1f51b7b0549a (diff)
downloadllvm-972befb3f281f0f9ce08d7cf27b4e879327676b0.tar.gz
llvm-972befb3f281f0f9ce08d7cf27b4e879327676b0.tar.bz2
llvm-972befb3f281f0f9ce08d7cf27b4e879327676b0.tar.xz
[PowerPC] Implement writeNopData
This implements a proper PPCAsmBackend::writeNopData routine that actually writes PowerPC nop instructions. This fixes the last remaining difference in object file output (text section) between the integrated assembler and GNU as that I've seen anywhere. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/PowerPC/ppc-nop.s')
-rw-r--r--test/MC/PowerPC/ppc-nop.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/PowerPC/ppc-nop.s b/test/MC/PowerPC/ppc-nop.s
new file mode 100644
index 0000000000..567943cc32
--- /dev/null
+++ b/test/MC/PowerPC/ppc-nop.s
@@ -0,0 +1,9 @@
+# RUN: llvm-mc -filetype=obj -triple=powerpc-unknown-linux-gnu %s | llvm-readobj -s -sd - | FileCheck %s
+# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux-gnu %s | llvm-readobj -s -sd - | FileCheck %s
+
+blr
+.p2align 3
+blr
+
+# CHECK: 0000: 4E800020 60000000 4E800020
+