diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-04-24 12:12:01 +0000 | 
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-04-24 12:12:01 +0000 | 
| commit | cf16ec238e469dcc83d335fddaa25a713231a2aa (patch) | |
| tree | 5dfad66f63ab626576ff7de69072c9abde14c648 | |
| parent | 9b594d1163bb1b83283219dc850f4a1954277460 (diff) | |
| download | bcm5719-llvm-cf16ec238e469dcc83d335fddaa25a713231a2aa.tar.gz bcm5719-llvm-cf16ec238e469dcc83d335fddaa25a713231a2aa.zip  | |
AArch64/ARM64: enable some MC tests on ARM64
This will also (as with CodeGen) disable testing when the ARM64 backend is not
present.
llvm-svn: 207104
| -rw-r--r-- | llvm/test/MC/AArch64/adrp-relocation.s | 1 | ||||
| -rw-r--r-- | llvm/test/MC/AArch64/basic-pic.s | 1 | ||||
| -rw-r--r-- | llvm/test/MC/AArch64/elf-extern.s | 1 | ||||
| -rw-r--r-- | llvm/test/MC/AArch64/elf-globaladdress.ll | 2 | ||||
| -rw-r--r-- | llvm/test/MC/AArch64/elf-reloc-addsubimm.s | 3 | ||||
| -rw-r--r-- | llvm/test/MC/AArch64/lit.local.cfg | 2 | 
6 files changed, 8 insertions, 2 deletions
diff --git a/llvm/test/MC/AArch64/adrp-relocation.s b/llvm/test/MC/AArch64/adrp-relocation.s index 3bcef34e4f5..6c7fbf5b872 100644 --- a/llvm/test/MC/AArch64/adrp-relocation.s +++ b/llvm/test/MC/AArch64/adrp-relocation.s @@ -1,4 +1,5 @@  // RUN: llvm-mc -triple=aarch64-linux-gnu -filetype=obj -o - %s| llvm-readobj -r - | FileCheck %s +// RUN: llvm-mc -triple=arm64-linux-gnu -filetype=obj -o - %s| llvm-readobj -r - | FileCheck %s          .text  // These should produce an ADRP/ADD pair to calculate the address of  // testfn. The important point is that LLVM shouldn't think it can deal with the diff --git a/llvm/test/MC/AArch64/basic-pic.s b/llvm/test/MC/AArch64/basic-pic.s index a10874dcca0..c3317f35d3b 100644 --- a/llvm/test/MC/AArch64/basic-pic.s +++ b/llvm/test/MC/AArch64/basic-pic.s @@ -1,4 +1,5 @@  // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o -| llvm-objdump -r - | FileCheck %s +// RUN: llvm-mc -triple=arm64-none-linux-gnu -filetype=obj %s -o -| llvm-objdump -r - | FileCheck %s  // CHECK: RELOCATION RECORDS FOR [.rela.text] diff --git a/llvm/test/MC/AArch64/elf-extern.s b/llvm/test/MC/AArch64/elf-extern.s index dfa3fb002ed..23cb4bd46c7 100644 --- a/llvm/test/MC/AArch64/elf-extern.s +++ b/llvm/test/MC/AArch64/elf-extern.s @@ -1,4 +1,5 @@  // RUN: llvm-mc < %s -triple=aarch64-none-linux-gnu -filetype=obj | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc < %s -triple=arm64-none-linux-gnu -filetype=obj | llvm-readobj -r | FileCheck %s  // External symbols are a different concept to global variables but should still  // get relocations and so on when used. diff --git a/llvm/test/MC/AArch64/elf-globaladdress.ll b/llvm/test/MC/AArch64/elf-globaladdress.ll index bc43113fee0..7d031e6a316 100644 --- a/llvm/test/MC/AArch64/elf-globaladdress.ll +++ b/llvm/test/MC/AArch64/elf-globaladdress.ll @@ -3,7 +3,7 @@  ; Also take it on a round-trip through llvm-mc to stretch assembly-parsing's legs:  ;; RUN: llc -mtriple=aarch64-none-linux-gnu %s -o - | \ -;; RUN:     llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj -o - | \ +;; RUN:     llvm-mc -triple=arm64-none-linux-gnu -filetype=obj -o - | \  ;; RUN:     llvm-readobj -h -r | FileCheck -check-prefix=OBJ %s  @var8 = global i8 0 diff --git a/llvm/test/MC/AArch64/elf-reloc-addsubimm.s b/llvm/test/MC/AArch64/elf-reloc-addsubimm.s index e37991bfba1..a64249e8b8f 100644 --- a/llvm/test/MC/AArch64/elf-reloc-addsubimm.s +++ b/llvm/test/MC/AArch64/elf-reloc-addsubimm.s @@ -1,6 +1,9 @@  // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \  // RUN:   llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-mc -triple=arm64-none-linux-gnu -filetype=obj %s -o - | \ +// RUN:   llvm-readobj -r | FileCheck -check-prefix=OBJ %s +          add x2, x3, #:lo12:some_label  // OBJ:      Relocations [ diff --git a/llvm/test/MC/AArch64/lit.local.cfg b/llvm/test/MC/AArch64/lit.local.cfg index 75dba81bc0b..8378712e9cf 100644 --- a/llvm/test/MC/AArch64/lit.local.cfg +++ b/llvm/test/MC/AArch64/lit.local.cfg @@ -1,3 +1,3 @@  targets = set(config.root.targets_to_build.split()) -if not 'AArch64' in targets: +if 'AArch64' not in targets or 'ARM64' not in targets:      config.unsupported = True
\ No newline at end of file  | 

