mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
AArch64/ARM64: enable some MC tests on ARM64
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
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
// RUN: llvm-mc -triple=aarch64-linux-gnu -filetype=obj -o - %s| llvm-readobj -r - | FileCheck %s
|
// 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
|
.text
|
||||||
// These should produce an ADRP/ADD pair to calculate the address of
|
// 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
|
// testfn. The important point is that LLVM shouldn't think it can deal with the
|
||||||
|
@@ -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=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]
|
// CHECK: RELOCATION RECORDS FOR [.rela.text]
|
||||||
|
|
||||||
|
@@ -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=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
|
// External symbols are a different concept to global variables but should still
|
||||||
// get relocations and so on when used.
|
// get relocations and so on when used.
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
; Also take it on a round-trip through llvm-mc to stretch assembly-parsing's legs:
|
; 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: 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
|
;; RUN: llvm-readobj -h -r | FileCheck -check-prefix=OBJ %s
|
||||||
|
|
||||||
@var8 = global i8 0
|
@var8 = global i8 0
|
||||||
|
@@ -1,4 +1,7 @@
|
|||||||
// RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \
|
// 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
|
// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s
|
||||||
|
|
||||||
add x2, x3, #:lo12:some_label
|
add x2, x3, #:lo12:some_label
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
targets = set(config.root.targets_to_build.split())
|
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
|
config.unsupported = True
|
Reference in New Issue
Block a user