Files
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

79 lines
2.3 KiB
Plaintext

# REQUIRES: aarch64, x86
# RUN: split-file %s %t.dir
# RUN: llvm-mc -filetype=obj -triple=aarch64-windows %t.dir/arm64-dllmain.s -o %t.dir/arm64-dllmain.obj
# RUN: llvm-mc -filetype=obj -triple=aarch64-windows %t.dir/arm64-p4sym.s -o %t.dir/arm64-p4sym.obj
# RUN: lld-link -dll -machine:arm64 %t.dir/arm64-dllmain.obj %t.dir/arm64-p4sym.obj -out:%t.dll
# RUN: llvm-objdump -dz %t.dll | FileCheck -check-prefix=CHECK-ARM64 %s
# CHECK-ARM64: 180001000: 52800020 mov w0, #0x1
# CHECK-ARM64: 180001004: d65f03c0 ret
# CHECK-ARM64: 180001008: 00000000
# CHECK-ARM64: 18000100c: 00000000
# CHECK-ARM64: 180001010: 52800040 mov w0, #0x2
# CHECK-ARM64: 180001014: d65f03c0 ret
#--- arm64-dllmain.s
.def _DllMainCRTStartup;
.scl 2;
.type 32;
.endef
.globl _DllMainCRTStartup
.p2align 2
_DllMainCRTStartup:
mov w0, #1
ret
#--- arm64-p4sym.s
.def p4sym;
.scl 2;
.type 32;
.endef
.globl p4sym
.p2align 4
p4sym:
mov w0, #2
ret
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows %t.dir/x86_64-dllmain.s -o %t.dir/x86_64-dllmain.obj
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows %t.dir/x86_64-p4sym.s -o %t.dir/x86_64-p4sym.obj
# RUN: lld-link -dll -machine:amd64 %t.dir/x86_64-dllmain.obj %t.dir/x86_64-p4sym.obj -out:%t.dll
# RUN: llvm-objdump -dz %t.dll | FileCheck -check-prefix=CHECK-X64 %s
# CHECK-X64: 180001000: b8 01 00 00 00 movl $0x1, %eax
# CHECK-X64: 180001005: c3 retq
# CHECK-X64: 180001006: cc int3
# CHECK-X64: 180001007: cc int3
# CHECK-X64: 180001008: cc int3
# CHECK-X64: 180001009: cc int3
# CHECK-X64: 18000100a: cc int3
# CHECK-X64: 18000100b: cc int3
# CHECK-X64: 18000100c: cc int3
# CHECK-X64: 18000100d: cc int3
# CHECK-X64: 18000100e: cc int3
# CHECK-X64: 18000100f: cc int3
# CHECK-X64: 180001010: b8 02 00 00 00 movl $0x2, %eax
# CHECK-X64: 180001015: c3 retq
#--- x86_64-dllmain.s
.def _DllMainCRTStartup;
.scl 2;
.type 32;
.endef
.globl _DllMainCRTStartup
.p2align 4, 0x90
_DllMainCRTStartup:
movl $1, %eax
retq
#--- x86_64-p4sym.s
.def p4sym;
.scl 2;
.type 32;
.endef
.globl p4sym
.p2align 4, 0x90
p4sym:
movl $2, %eax
retq