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
35 lines
1.1 KiB
Fortran
35 lines
1.1 KiB
Fortran
! Test lowering of atomic write to LLVM IR for complex types.
|
|
! This is a regression test for issue #165184.
|
|
|
|
! RUN: %flang_fc1 -emit-llvm -fopenmp -o - %s | FileCheck %s
|
|
|
|
! Test that atomic write operations with complex types emit the correct
|
|
! size parameter to __atomic_store:
|
|
! - complex(4) (8 bytes total): should call __atomic_store(i64 8, ...)
|
|
! - complex(8) (16 bytes total): should call __atomic_store(i64 16, ...)
|
|
|
|
program atomic_write_complex
|
|
implicit none
|
|
|
|
! Test complex(4) - single precision (8 bytes)
|
|
complex(4) :: c41, c42
|
|
! Test complex(8) - double precision (16 bytes)
|
|
complex(8) :: c81, c82
|
|
|
|
c42 = (1.0_4, 1.0_4)
|
|
c82 = (1.0_8, 1.0_8)
|
|
|
|
! CHECK-LABEL: define {{.*}} @_QQmain
|
|
|
|
! Single precision complex: 8 bytes
|
|
! CHECK: call void @__atomic_store(i64 8, ptr {{.*}}, ptr {{.*}}, i32 {{.*}})
|
|
!$omp atomic write
|
|
c41 = c42
|
|
|
|
! Double precision complex: 16 bytes (this was broken before the fix)
|
|
! CHECK: call void @__atomic_store(i64 16, ptr {{.*}}, ptr {{.*}}, i32 {{.*}})
|
|
!$omp atomic write
|
|
c81 = c82
|
|
|
|
end program atomic_write_complex
|