[JITLink][X86] Rename X86 test directory to x86-64, update test names.
Tests in test/ExecutionEngine/JITLink/X86 were for x86-64 only (never i386) so it makes sense to name the test directory x86-64, and drop x86-64 from the individual test names.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
# RUN: llvm-jitlink -noexec %S/Inputs/MachO_x86-64_was_private_extern.o
|
||||
#
|
||||
# Perform a no-exec link of MachO_x86-64_was_private_extern.o and verify that
|
||||
# it does not generate any errors despite the presence of a 'was private
|
||||
# extern' symbol (N_PEXT set, N_EXT unset).
|
||||
#
|
||||
# The test case for this is a relocatable object file rather than assembly as
|
||||
# objects must be run through ld64's 'ld -r' mode to produce them and we can't
|
||||
# assume that that is available everywhere.
|
||||
@@ -1,16 +1,17 @@
|
||||
# RUN: rm -rf %t && mkdir -p %t
|
||||
# RUN: llvm-mc -triple=x86_64-unknown-linux -relax-relocations=false -position-independent -filetype=obj -o %t/elf_common.o %s
|
||||
# RUN: llvm-jitlink -entry=load_common -noexec -check %s %t/elf_common.o
|
||||
#
|
||||
# Check that common variable GOT entry is synthesized correctly.
|
||||
|
||||
.text
|
||||
.file "elf_common.c"
|
||||
.globl load_common
|
||||
.p2align 4, 0x90
|
||||
.type load_common,@function
|
||||
|
||||
load_common:
|
||||
# Check that common variable GOT entry is synthesized correctly. In order to
|
||||
# prevent the optimizer from relaxing the edge, we use a movl instruction.
|
||||
# In order to prevent the optimizer from relaxing the edge, we use a movl
|
||||
# instruction.
|
||||
# jitlink-check: decode_operand(load_common, 4) = \
|
||||
# jitlink-check: got_addr(elf_common.o, common_data) - next_pc(load_common)
|
||||
# jitlink-check: *{8}(got_addr(elf_common.o, common_data)) = common_data
|
||||
@@ -1,10 +1,10 @@
|
||||
# RUN: rm -rf %t && mkdir -p %t
|
||||
# RUN: llvm-mc -triple=x86_64-unknown-linux -position-independent \
|
||||
# RUN: -filetype=obj -o %t/elf_sm_pic_reloc.o %s
|
||||
# RUN: -filetype=obj -o %t/elf_got_plt_opt.o %s
|
||||
# RUN: llvm-jitlink -noexec \
|
||||
# RUN: -slab-allocate 100Kb -slab-address 0xfff00000 -slab-page-size 4096 \
|
||||
# RUN: -abs extern_in_range32=0xffe00000 \
|
||||
# RUN: -check %s %t/elf_sm_pic_reloc.o
|
||||
# RUN: -check %s %t/elf_got_plt_opt.o
|
||||
#
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# RUN: llvm-jitlink -noexec -abs __ZTIi=0x1 -abs ___gxx_personality_v0=0x2 %S/Inputs/MachO_x86-64_ehframe.o
|
||||
# RUN: llvm-jitlink -noexec -abs __ZTIi=0x1 -abs ___gxx_personality_v0=0x2 \
|
||||
# RUN: %S/Inputs/MachO_ehframe.o
|
||||
#
|
||||
# Perform a no-exec link of MachO_x86-64_ehframe and verify that it does not
|
||||
# Perform a no-exec link of MachO_ehframe.o and verify that it does not
|
||||
# generate any errors despite the last FDE referring to the first CIE (rather
|
||||
# than the most recent).
|
||||
@@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t %S/Inputs/x86-64_self_relocation.s
|
||||
# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t %S/Inputs/MachO_self_relocation.s
|
||||
# RUN: llvm-jitlink -noexec -show-graphs='.*' %t 2>&1 | \
|
||||
# RUN: FileCheck -check-prefix=WITHOUT %s
|
||||
# RUN: llvm-jitlink -noexec -show-graphs='.*' -add-self-relocations %t 2>&1 | \
|
||||
@@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t %S/Inputs/x86-64_self_relocation.s
|
||||
# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t %S/Inputs/MachO_self_relocation.s
|
||||
# RUN: llvm-jitlink -show-graphs='.*' %t
|
||||
# RUN: llvm-jitlink -show-graphs='.*' -add-self-relocations %t
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# RUN: llvm-jitlink -noexec %S/Inputs/MachO_was_private_extern.o
|
||||
#
|
||||
# Perform a no-exec link of MachO_was_private_extern.o and verify that it does
|
||||
# not generate any errors despite the presence of a 'was private extern' symbol
|
||||
# (N_PEXT set, N_EXT unset).
|
||||
#
|
||||
# The test case for this is a relocatable object file rather than assembly as
|
||||
# objects must be run through ld64's 'ld -r' mode to produce them and we can't
|
||||
# assume that that is available everywhere.
|
||||
Reference in New Issue
Block a user