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
45 lines
1.7 KiB
LLVM
45 lines
1.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=arm64-apple-ios -global-isel -global-isel-abort=1 | FileCheck %s --check-prefix=CHECK-NOFP16
|
|
; RUN: llc < %s -mtriple=arm64-apple-ios -mattr=+fullfp16 -global-isel -global-isel-abort=1 | FileCheck %s --check-prefix=CHECK-FP16
|
|
|
|
; Test for https://github.com/llvm/llvm-project/issues/171494
|
|
; Atomic store of bitcast half to i16 was generating incorrect code (mrs instead of fmov).
|
|
|
|
define void @atomic_store_half(ptr %addr, half %val) {
|
|
; CHECK-NOFP16-LABEL: atomic_store_half:
|
|
; CHECK-NOFP16: ; %bb.0:
|
|
; CHECK-NOFP16-NEXT: ; kill: def $h0 killed $h0 def $s0
|
|
; CHECK-NOFP16-NEXT: fmov w8, s0
|
|
; CHECK-NOFP16-NEXT: stlrh w8, [x0]
|
|
; CHECK-NOFP16-NEXT: ret
|
|
;
|
|
; CHECK-FP16-LABEL: atomic_store_half:
|
|
; CHECK-FP16: ; %bb.0:
|
|
; CHECK-FP16-NEXT: ; kill: def $h0 killed $h0 def $s0
|
|
; CHECK-FP16-NEXT: fmov w8, s0
|
|
; CHECK-FP16-NEXT: stlrh w8, [x0]
|
|
; CHECK-FP16-NEXT: ret
|
|
%ival = bitcast half %val to i16
|
|
store atomic i16 %ival, ptr %addr release, align 2
|
|
ret void
|
|
}
|
|
|
|
define void @atomic_store_bfloat(ptr %addr, bfloat %val) {
|
|
; CHECK-NOFP16-LABEL: atomic_store_bfloat:
|
|
; CHECK-NOFP16: ; %bb.0:
|
|
; CHECK-NOFP16-NEXT: ; kill: def $h0 killed $h0 def $s0
|
|
; CHECK-NOFP16-NEXT: fmov w8, s0
|
|
; CHECK-NOFP16-NEXT: stlrh w8, [x0]
|
|
; CHECK-NOFP16-NEXT: ret
|
|
;
|
|
; CHECK-FP16-LABEL: atomic_store_bfloat:
|
|
; CHECK-FP16: ; %bb.0:
|
|
; CHECK-FP16-NEXT: ; kill: def $h0 killed $h0 def $s0
|
|
; CHECK-FP16-NEXT: fmov w8, s0
|
|
; CHECK-FP16-NEXT: stlrh w8, [x0]
|
|
; CHECK-FP16-NEXT: ret
|
|
%ival = bitcast bfloat %val to i16
|
|
store atomic i16 %ival, ptr %addr release, align 2
|
|
ret void
|
|
}
|