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-tls-relocs-01.s | |
parent | 2e0372d69ab11fb6c38b35d533e0a6358fd38658 (diff) | |
download | external_llvm-e48e8c7a6069374daee4c9be1e17b8ed31527f5e.zip external_llvm-e48e8c7a6069374daee4c9be1e17b8ed31527f5e.tar.gz external_llvm-e48e8c7a6069374daee4c9be1e17b8ed31527f5e.tar.bz2 |
[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-tls-relocs-01.s')
-rw-r--r-- | test/MC/PowerPC/ppc64-tls-relocs-01.s | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/MC/PowerPC/ppc64-tls-relocs-01.s b/test/MC/PowerPC/ppc64-tls-relocs-01.s new file mode 100644 index 0000000..66a00fe --- /dev/null +++ b/test/MC/PowerPC/ppc64-tls-relocs-01.s @@ -0,0 +1,22 @@ +# RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj %s | \ +# RUN: llvm-readobj -r | FileCheck %s + + .text + addis 3, 13, t@tprel@ha + addi 3, 3, t@tprel@l + + .type t,@object + .section .tbss,"awT",@nobits + .globl t + .align 2 +t: + .long 0 + .size t, 4 + +# Check for a pair of R_PPC64_TPREL16_HA / R_PPC64_TPREL16_LO relocs +# against the thread-local symbol 't'. +# CHECK: Relocations [ +# CHECK: Section ({{[0-9]+}}) .rela.text { +# CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_HA t +# CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_LO t +# CHECK-NEXT: } |