Lang Hames 8ad75c1037 [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.
2023-04-15 18:39:12 +00:00

32 lines
656 B
ArmAsm

# REQUIRES: asserts
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t
# RUN: llvm-jitlink --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
#
# Check a COMDAT any symbol is exported as a weak symbol.
#
# CHECK: Creating graph symbols...
# CHECK: 8: Exporting COMDAT graph symbol for COFF symbol "func" in section 4
# CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000000, linkage: weak, scope: default, dead - func
.text
.def func;
.scl 2;
.type 32;
.endef
.section .text,"xr",discard,func
.globl func
.p2align 4, 0x90
func:
retq
.def main;
.scl 2;
.type 32;
.endef
.text
.globl main
.p2align 4, 0x90
main:
retq