forked from OSchip/llvm-project
AArch64: use full triple for ELF tests
These tests rely specifically on the names of ELF relocations, let alone any other detail. There's no way they'd work if LLVM was emitting something else by default. llvm-svn: 179376
This commit is contained in:
parent
c13d2675e0
commit
caf3e95e97
|
@ -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 -arch=aarch64 -filetype=obj -o - | \
|
;; RUN: llvm-mc -triple=aarch64-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,5 +1,5 @@
|
||||||
// 64 bit little endian
|
// 64 bit little endian
|
||||||
// RUN: llvm-mc -filetype=obj -arch=aarch64 -triple aarch64-none-linux-gnu %s -o - | llvm-objdump -d
|
// RUN: llvm-mc -filetype=obj -triple aarch64-none-linux-gnu %s -o - | llvm-objdump -d
|
||||||
|
|
||||||
// We just want to see if llvm-objdump works at all.
|
// We just want to see if llvm-objdump works at all.
|
||||||
// CHECK: .text
|
// CHECK: .text
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// RUN: llvm-mc -arch=aarch64 -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-readobj -r | FileCheck -check-prefix=OBJ %s
|
||||||
|
|
||||||
add x2, x3, #:lo12:some_label
|
add x2, x3, #:lo12:some_label
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// RUN: llvm-mc -arch=aarch64 -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-readobj -r | FileCheck -check-prefix=OBJ %s
|
||||||
|
|
||||||
b.eq somewhere
|
b.eq somewhere
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// RUN: llvm-mc -arch=aarch64 -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-readobj -r | FileCheck -check-prefix=OBJ %s
|
||||||
|
|
||||||
ldr x0, some_label
|
ldr x0, some_label
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// RUN: llvm-mc -arch=aarch64 -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-readobj -r | FileCheck -check-prefix=OBJ %s
|
||||||
|
|
||||||
ldrb w0, [sp, #:lo12:some_label]
|
ldrb w0, [sp, #:lo12:some_label]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// RUN: llvm-mc -arch=aarch64 -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-readobj -r | FileCheck -check-prefix=OBJ %s
|
||||||
|
|
||||||
movz x0, #:abs_g0:some_label
|
movz x0, #:abs_g0:some_label
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// RUN: llvm-mc -arch=aarch64 -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-readobj -r | FileCheck -check-prefix=OBJ %s
|
||||||
|
|
||||||
adr x2, some_label
|
adr x2, some_label
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// RUN: llvm-mc -arch=aarch64 -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-readobj -r | FileCheck -check-prefix=OBJ %s
|
||||||
|
|
||||||
tbz x6, #45, somewhere
|
tbz x6, #45, somewhere
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// RUN: llvm-mc -arch=aarch64 -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-readobj -r | FileCheck -check-prefix=OBJ %s
|
||||||
|
|
||||||
b somewhere
|
b somewhere
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// RUN: llvm-mc -arch=aarch64 -show-encoding < %s | FileCheck %s
|
// RUN: llvm-mc -triple=aarch64-none-linux-gnu -show-encoding < %s | FileCheck %s
|
||||||
// RUN: llvm-mc -arch=aarch64 -filetype=obj < %s -o - | \
|
// RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj < %s -o - | \
|
||||||
// RUN: llvm-readobj -r -t | FileCheck --check-prefix=CHECK-ELF %s
|
// RUN: llvm-readobj -r -t | FileCheck --check-prefix=CHECK-ELF %s
|
||||||
|
|
||||||
// TLS local-dynamic forms
|
// TLS local-dynamic forms
|
||||||
|
|
Loading…
Reference in New Issue