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
117 lines
5.2 KiB
C
117 lines
5.2 KiB
C
// RUN: %clang -target arm-none-gnueabi -munaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target arm-none-gnueabi -mstrict-align -munaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -munaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target armv6-apple-darwin -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target armv6-netbsd-eabi -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target armv7-unknown-linux -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target armv7-windows -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang --target=armv6 -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang --target=armv7 -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target thumbv6m-none-gnueabi -mcpu=cortex-m0 -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix CHECK-ALIGNED-ARM <%t %s
|
|
|
|
// RUN: %clang -target thumb-none-gnueabi -mcpu=cortex-m0 -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix CHECK-ALIGNED-ARM <%t %s
|
|
|
|
// RUN: %clang -target thumbv8m.base-none-gnueabi -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix CHECK-ALIGNED-ARM <%t %s
|
|
|
|
// RUN: %clang -target armv7em-apple-unknown-macho -mthumb -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix CHECK-ALIGNED-ARM <%t %s
|
|
|
|
// RUN: %clang -target armv7em-apple-darwin -mthumb -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix CHECK-ALIGNED-ARM <%t %s
|
|
|
|
// RUN: %clang --target=aarch64 -munaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-AARCH64 < %t %s
|
|
|
|
// RUN: %clang --target=aarch64 -mstrict-align -munaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-AARCH64 < %t %s
|
|
|
|
// RUN: %clang --target=aarch64 -mno-unaligned-access -munaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-AARCH64 < %t %s
|
|
|
|
// CHECK-UNALIGNED-ARM-NOT: "-target-feature" "+strict-align"
|
|
// CHECK-UNALIGNED-AARCH64-NOT: "-target-feature" "+strict-align"
|
|
|
|
|
|
// RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target arm-none-gnueabi -mstrict-align -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target arm-none-gnueabi -munaligned-access -mno-unaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target arm-none-gnueabi -munaligned-access -mstrict-align -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target arm-none-gnueabi -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target armv5-apple-darwin -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target armv5t-netbsd-eabi -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target armv6-unknown-linux -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target armv6m-apple-darwin -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang -target armv6m-netbsd-eabi -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
// RUN: %clang --target=aarch64 -mno-unaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
|
|
|
// RUN: %clang --target=aarch64 -mstrict-align -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
|
|
|
// RUN: %clang --target=aarch64 -munaligned-access -mno-unaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
|
|
|
// RUN: %clang --target=aarch64 -munaligned-access -mstrict-align -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
|
|
|
// RUN: %clang --target=aarch64 -mkernel -mno-unaligned-access -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
|
|
|
// RUN: %clang -target aarch64-unknown-openbsd -### %s 2> %t
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
|
|
|
// CHECK-ALIGNED-ARM: "-target-feature" "+strict-align" {{.*}} "-Wunaligned-access"
|
|
// CHECK-ALIGNED-AARCH64: "-target-feature" "+strict-align" {{.*}} "-Wunaligned-access"
|
|
|
|
// Make sure that v6M cores and v8M Baseline always trigger the unsupported
|
|
// aligned accesses error for all supported architecture triples.
|
|
// RUN: not %clang -c -target thumbv6m-none-gnueabi -mcpu=cortex-m0 -munaligned-access %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefix CHECK-UNALIGN-NOT-SUPPORTED %s
|
|
// RUN: not %clang -c -target thumb-none-gnueabi -mcpu=cortex-m0 -munaligned-access %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefix CHECK-UNALIGN-NOT-SUPPORTED %s
|
|
// RUN: not %clang -c -target thumbv8m.base-none-gnueabi -munaligned-access %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefix CHECK-UNALIGN-NOT-SUPPORTED %s
|
|
|
|
// CHECK-UNALIGN-NOT-SUPPORTED: error: the {{.*}} sub-architecture does not support unaligned accesses
|