Files
TheRock/compiler/amd-llvm/llvm/test/MC/AArch64/arm64-directive_loh.s
T
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

98 lines
2.4 KiB
ArmAsm

# RUN: not llvm-mc -triple arm64-apple-darwin < %s 2> %t | FileCheck %s
# RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
# RUN: not llvm-mc -triple aarch64-linux-gnu < %s 2>&1 | FileCheck --check-prefix=UNKNOWN %s
# RUN: not llvm-mc -triple aarch64-win32-gnu < %s 2>&1 | FileCheck --check-prefix=UNKNOWN %s
.globl _fct1
_fct1:
L1:
L2:
L3:
L4:
ret lr;
# Known LOHs with:
# - Regular syntax.
# - Alternative syntax.
# CHECK: .loh AdrpAdrp L1, L2
# CHECK: .loh AdrpAdrp L1, L2
# UNKNOWN: error: unknown directive
# UNKNOWN-NEXT: .loh AdrpAdrp L1, L2
.loh AdrpAdrp L1, L2
.loh 1 L1, L2
# CHECK: .loh AdrpLdr L1, L2
# CHECK: .loh AdrpLdr L1, L2
.loh AdrpLdr L1, L2
.loh 2 L1, L2
# CHECK: .loh AdrpAddLdr L1, L2, L3
# CHECK: .loh AdrpAddLdr L1, L2, L3
.loh AdrpAddLdr L1, L2, L3
.loh 3 L1, L2, L3
# CHECK: .loh AdrpLdrGotLdr L1, L2, L3
# CHECK: .loh AdrpLdrGotLdr L1, L2, L3
.loh AdrpLdrGotLdr L1, L2, L3
.loh 4 L1, L2, L3
# CHECK: .loh AdrpAddStr L1, L2, L3
# CHECK: .loh AdrpAddStr L1, L2, L3
.loh AdrpAddStr L1, L2, L3
.loh 5 L1, L2, L3
# CHECK: .loh AdrpLdrGotStr L1, L2, L3
# CHECK: .loh AdrpLdrGotStr L1, L2, L3
.loh AdrpLdrGotStr L1, L2, L3
.loh 6 L1, L2, L3
# CHECK: .loh AdrpAdd L1, L2
# CHECK: .loh AdrpAdd L1, L2
.loh AdrpAdd L1, L2
.loh 7 L1, L2
# CHECK: .loh AdrpLdrGot L1, L2
# CHECK: .loh AdrpLdrGot L1, L2
.loh AdrpLdrGot L1, L2
.loh 8 L1, L2
# End Known LOHs.
### Errors Check ####
# Unknown textual identifier.
# CHECK-ERRORS: error: invalid identifier in directive
# CHECK-ERRORS-NEXT: .loh Unknown
# CHECK-ERRORS-NEXT: ^
.loh Unknown
# Unknown numeric identifier.
# CHECK-ERRORS: error: invalid numeric identifier in directive
# CHECK-ERRORS-NEXT: .loh 153, L1
# CHECK-ERRORS-NEXT: ^
.loh 153, L1
# Too much arguments.
# CHECK-ERRORS: error: expected newline
# CHECK-ERRORS-NEXT: .loh AdrpAdrp L1, L2, L3
# CHECK-ERRORS-NEXT: ^
.loh AdrpAdrp L1, L2, L3
# Too much arguments with alternative syntax.
# CHECK-ERRORS: error: expected newline
# CHECK-ERRORS-NEXT: .loh 1 L1, L2, L3
# CHECK-ERRORS-NEXT: ^
.loh 1 L1, L2, L3
# Too few arguments.
# CHECK-ERRORS: error: expected comma
# CHECK-ERRORS-NEXT: .loh AdrpAdrp L1
# CHECK-ERRORS-NEXT: ^
.loh AdrpAdrp L1
# Too few arguments with alternative syntax.
# CHECK-ERRORS: error: expected comma
# CHECK-ERRORS-NEXT: .loh 1 L1
# CHECK-ERRORS-NEXT: ^
.loh 1 L1