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
68 lines
2.1 KiB
LLVM
68 lines
2.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-sse2,-sse | FileCheck %s --check-prefix=NOSSE
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=SSE
|
|
|
|
@gf = global { float, float } zeroinitializer, align 8
|
|
|
|
define void @f(<2 x float> noundef nofpclass(nan inf) %e.coerce) {
|
|
; NOSSE-LABEL: f:
|
|
; NOSSE: # %bb.0: # %entry
|
|
; NOSSE-NEXT: flds {{[0-9]+}}(%rsp)
|
|
; NOSSE-NEXT: flds {{[0-9]+}}(%rsp)
|
|
; NOSSE-NEXT: movq gf@GOTPCREL(%rip), %rax
|
|
; NOSSE-NEXT: fstps 4(%rax)
|
|
; NOSSE-NEXT: fstps (%rax)
|
|
; NOSSE-NEXT: retq
|
|
;
|
|
; SSE-LABEL: f:
|
|
; SSE: # %bb.0: # %entry
|
|
; SSE-NEXT: movq gf@GOTPCREL(%rip), %rax
|
|
; SSE-NEXT: movlps %xmm0, (%rax)
|
|
; SSE-NEXT: retq
|
|
entry:
|
|
store <2 x float> %e.coerce, ptr @gf, align 8
|
|
ret void
|
|
}
|
|
|
|
define i32 @load_metadata(ptr %0) nounwind {
|
|
; NOSSE-LABEL: load_metadata:
|
|
; NOSSE: # %bb.0:
|
|
; NOSSE-NEXT: movl (%rdi), %eax
|
|
; NOSSE-NEXT: retq
|
|
;
|
|
; SSE-LABEL: load_metadata:
|
|
; SSE: # %bb.0:
|
|
; SSE-NEXT: movl (%rdi), %eax
|
|
; SSE-NEXT: retq
|
|
%f = load float, ptr %0, align 4, !nofpclass !{i32 3}
|
|
%i = bitcast float %f to i32
|
|
ret i32 %i
|
|
}
|
|
|
|
define i32 @load_metadata_fmaximumnum(ptr %0, ptr %1) nounwind {
|
|
; NOSSE-LABEL: load_metadata_fmaximumnum:
|
|
; NOSSE: # %bb.0:
|
|
; NOSSE-NEXT: flds (%rdi)
|
|
; NOSSE-NEXT: flds (%rsi)
|
|
; NOSSE-NEXT: fxch %st(1)
|
|
; NOSSE-NEXT: fucomi %st(1), %st
|
|
; NOSSE-NEXT: fxch %st(1)
|
|
; NOSSE-NEXT: fcmovnbe %st(1), %st
|
|
; NOSSE-NEXT: fstp %st(1)
|
|
; NOSSE-NEXT: fstps -{{[0-9]+}}(%rsp)
|
|
; NOSSE-NEXT: movl -{{[0-9]+}}(%rsp), %eax
|
|
; NOSSE-NEXT: retq
|
|
;
|
|
; SSE-LABEL: load_metadata_fmaximumnum:
|
|
; SSE: # %bb.0:
|
|
; SSE-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
|
; SSE-NEXT: maxss (%rsi), %xmm0
|
|
; SSE-NEXT: movd %xmm0, %eax
|
|
; SSE-NEXT: retq
|
|
%f0 = load float, ptr %0, align 4, !nofpclass !{i32 99} ; 99 == (fcNan | fcZero)
|
|
%f1 = load float, ptr %1, align 4, !nofpclass !{i32 99} ; 99 == (fcNan | fcZero)
|
|
%min = call float @llvm.maximumnum.f32(float %f0, float %f1);
|
|
%i = bitcast float %min to i32
|
|
ret i32 %i
|
|
}
|