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
46 lines
1.7 KiB
ArmAsm
46 lines
1.7 KiB
ArmAsm
// REQUIRES: aarch64
|
|
// RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t
|
|
// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
|
|
|
|
// Test derived from a typical ODR violation where a global is declared
|
|
// extern int but defined as a half or byte sized type.
|
|
.section .text
|
|
.globl _start
|
|
.type _start, %function
|
|
// Access foo2 as if it were an aligned 32-bit int, expect an error as
|
|
// foo is not aligned
|
|
|
|
_start:
|
|
ldrb w2, [x0, #:lo12:foo1] // Ok as no shift involved
|
|
ldrh w2, [x0, #:lo12:foo1] // Error foo1 is not 2-byte aligned
|
|
ldrh w2, [x0, #:lo12:foo2] // Ok as foo2 is 2-byte aligned
|
|
ldr w2, [x0, #:lo12:foo2] // Error foo2 is not 4-byte aligned
|
|
ldr w2, [x0, #:lo12:foo4] // Ok as foo4 is 4-byte aligned
|
|
ldr x3, [x0, #:lo12:foo4] // Error foo4 is not 8-byte aligned
|
|
ldr x3, [x0, #:lo12:foo8] // Ok as foo8 is 8-byte aligned
|
|
ldr q0, [x0, #:lo12:foo8] // Error foo8 is not 16-byte aligned
|
|
ldr q0, [x0, #:lo12:foo16] // Ok as foo16 is 16-byte aligned
|
|
|
|
.section .data.bool, "a", @nobits
|
|
.balign 16
|
|
.globl foo16
|
|
.globl foo1
|
|
.globl foo2
|
|
.globl foo4
|
|
.globl foo8
|
|
foo16:
|
|
.space 1
|
|
foo1:
|
|
.space 1
|
|
foo2:
|
|
.space 2
|
|
foo4:
|
|
.space 4
|
|
foo8:
|
|
.space 8
|
|
|
|
// CHECK: error: {{.*}}:(.text+0x4): improper alignment for relocation R_AARCH64_LDST16_ABS_LO12_NC: 0x220181 is not aligned to 2 bytes
|
|
// CHECK: error: {{.*}}:(.text+0xc): improper alignment for relocation R_AARCH64_LDST32_ABS_LO12_NC: 0x220182 is not aligned to 4 bytes
|
|
// CHECK: error: {{.*}}:(.text+0x14): improper alignment for relocation R_AARCH64_LDST64_ABS_LO12_NC: 0x220184 is not aligned to 8 bytes
|
|
// CHECK: error: {{.*}}:(.text+0x1c): improper alignment for relocation R_AARCH64_LDST128_ABS_LO12_NC: 0x220188 is not aligned to 16 bytes
|