AArch64/ARM64: enable some MC tests on ARM64
authorTim Northover <tnorthover@apple.com>
Thu, 24 Apr 2014 12:12:01 +0000 (12:12 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 24 Apr 2014 12:12:01 +0000 (12:12 +0000)
This will also (as with CodeGen) disable testing when the ARM64 backend is not
present.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207104 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/AArch64/adrp-relocation.s
test/MC/AArch64/basic-pic.s
test/MC/AArch64/elf-extern.s
test/MC/AArch64/elf-globaladdress.ll
test/MC/AArch64/elf-reloc-addsubimm.s
test/MC/AArch64/lit.local.cfg

index 3bcef34e4f5d74415afec5d6671534831b96b968..6c7fbf5b872f0c3ed800cac360fb68db8c722100 100644 (file)
@@ -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
index a10874dcca0942ed6634c08ff0b3b5a6ed9120b2..c3317f35d3bc435e9a104eed451d92b53ec01662 100644 (file)
@@ -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]
 
index dfa3fb002ed58e7610bb5018e52a0ade529fe59e..23cb4bd46c794aaca2763f9bbd20d630c8f5b2ce 100644 (file)
@@ -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.
index bc43113fee03719d5ded588997ad7ee3890955ed..7d031e6a31601ffa3bead3ad817811bc44a9f50c 100644 (file)
@@ -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
index e37991bfba1c734027a89f0e2fe11a0e6020f089..a64249e8b8f898a0f59d6c1c733f387a47085ad7 100644 (file)
@@ -1,4 +1,7 @@
 // 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
index 75dba81bc0b591a2e3b1497fdd867b18636e90c7..8378712e9cf5567ebf16a21ba5f8a24b4aaef88f 100644 (file)
@@ -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