diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-06-12 14:14:18 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-06-12 14:14:18 +0000 |
commit | e48e8c7a6069374daee4c9be1e17b8ed31527f5e (patch) | |
tree | 9fc5d28fb6eae45e49abb24196fed61cb49a2b04 /test/MC/PowerPC/ppc64-initial-cfa.s | |
parent | 2e0372d69ab11fb6c38b35d533e0a6358fd38658 (diff) | |
download | llvm-e48e8c7a6069374daee4c9be1e17b8ed31527f5e.tar.gz llvm-e48e8c7a6069374daee4c9be1e17b8ed31527f5e.tar.bz2 llvm-e48e8c7a6069374daee4c9be1e17b8ed31527f5e.tar.xz |
[PowerPC] Use assembler source in MC tests
A couple of old test cases in test/MC/PowerPC were still using
LLVM IR. Now that we have a working assembler, we can move
them to assembler tests instead:
ppc64-initial-cfa.ll
ppc64-relocs-01.ll
ppc64-tls-relocs-01.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/PowerPC/ppc64-initial-cfa.s')
-rw-r--r-- | test/MC/PowerPC/ppc64-initial-cfa.s | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/test/MC/PowerPC/ppc64-initial-cfa.s b/test/MC/PowerPC/ppc64-initial-cfa.s new file mode 100644 index 0000000000..fb45474c16 --- /dev/null +++ b/test/MC/PowerPC/ppc64-initial-cfa.s @@ -0,0 +1,84 @@ +# RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj -relocation-model=static %s | \ +# RUN: llvm-readobj -s -sr -sd | FileCheck %s -check-prefix=STATIC +# RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj -relocation-model=pic %s | \ +# RUN: llvm-readobj -s -sr -sd | FileCheck %s -check-prefix=PIC + + .cfi_startproc + nop + .cfi_endproc + +# STATIC: Section { +# STATIC: Name: .eh_frame +# STATIC-NEXT: Type: SHT_PROGBITS +# STATIC-NEXT: Flags [ (0x2) +# STATIC-NEXT: SHF_ALLOC +# STATIC-NEXT: ] +# STATIC-NEXT: Address: +# STATIC-NEXT: Offset: +# STATIC-NEXT: Size: 40 +# STATIC-NEXT: Link: 0 +# STATIC-NEXT: Info: 0 +# STATIC-NEXT: AddressAlignment: 8 +# STATIC-NEXT: EntrySize: +# STATIC-NEXT: Relocations [ +# STATIC-NEXT: ] +# STATIC-NEXT: SectionData ( +# STATIC-NEXT: 0000: 00000010 00000000 017A5200 01784101 +# STATIC-NEXT: 0010: 1B0C0100 00000010 00000018 00000000 +# STATIC-NEXT: 0020: 00000004 00000000 +# STATIC-NEXT: ) +# STATIC-NEXT: } + +# STATIC: Section { +# STATIC: Name: .rela.eh_frame +# STATIC-NEXT: Type: SHT_RELA +# STATIC-NEXT: Flags [ (0x0) +# STATIC-NEXT: ] +# STATIC-NEXT: Address: +# STATIC-NEXT: Offset: +# STATIC-NEXT: Size: 24 +# STATIC-NEXT: Link: +# STATIC-NEXT: Info: +# STATIC-NEXT: AddressAlignment: 8 +# STATIC-NEXT: EntrySize: 24 +# STATIC-NEXT: Relocations [ +# STATIC-NEXT: 0x1C R_PPC64_REL32 .text 0x0 +# STATIC-NEXT: ] + +# PIC: Section { +# PIC: Name: .eh_frame +# PIC-NEXT: Type: SHT_PROGBITS +# PIC-NEXT: Flags [ (0x2) +# PIC-NEXT: SHF_ALLOC +# PIC-NEXT: ] +# PIC-NEXT: Address: +# PIC-NEXT: Offset: +# PIC-NEXT: Size: 40 +# PIC-NEXT: Link: 0 +# PIC-NEXT: Info: 0 +# PIC-NEXT: AddressAlignment: 8 +# PIC-NEXT: EntrySize: 0 +# PIC-NEXT: Relocations [ +# PIC-NEXT: ] +# PIC-NEXT: SectionData ( +# PIC-NEXT: 0000: 00000010 00000000 017A5200 01784101 +# PIC-NEXT: 0010: 1B0C0100 00000010 00000018 00000000 +# PIC-NEXT: 0020: 00000004 00000000 +# PIC-NEXT: ) +# PIC-NEXT: } + +# PIC: Section { +# PIC: Name: .rela.eh_frame +# PIC-NEXT: Type: SHT_RELA +# PIC-NEXT: Flags [ (0x0) +# PIC-NEXT: ] +# PIC-NEXT: Address: +# PIC-NEXT: Offset: +# PIC-NEXT: Size: 24 +# PIC-NEXT: Link: +# PIC-NEXT: Info: +# PIC-NEXT: AddressAlignment: 8 +# PIC-NEXT: EntrySize: 24 +# PIC-NEXT: Relocations [ +# PIC-NEXT: 0x1C R_PPC64_REL32 .text 0x0 +# PIC-NEXT: ] |