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
42 lines
1.7 KiB
LLVM
42 lines
1.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
|
|
; RUN: llc -mtriple=arm64-unknown-unknown < %s -o -| FileCheck %s
|
|
|
|
; This test covers a case where extract_vector_elt is selected when DUP is
|
|
; generated. Where it tries to generate a ZextOrTrunc node with floating point
|
|
; type resulting in a crash.
|
|
; See https://reviews.llvm.org/D128144#4280024 for context
|
|
define double @dot_product(double %a) {
|
|
; CHECK-LABEL: dot_product:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: fmov d1, #1.00000000
|
|
; CHECK-NEXT: fadd d0, d0, d1
|
|
; CHECK-NEXT: fadd d0, d0, d1
|
|
; CHECK-NEXT: movi d1, #0000000000000000
|
|
; CHECK-NEXT: fadd d0, d0, d1
|
|
; CHECK-NEXT: fsqrt d0, d0
|
|
; CHECK-NEXT: fmul d2, d0, d1
|
|
; CHECK-NEXT: fcmp d0, #0.0
|
|
; CHECK-NEXT: fcsel d0, d1, d2, gt
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%fadd = call double @llvm.vector.reduce.fadd.v3f64(double %a, <3 x double> <double 1.000000e+00, double 1.000000e+00, double 0.000000e+00>)
|
|
%sqrt = call double @llvm.sqrt.f64(double %fadd)
|
|
%insert = insertelement <3 x double> zeroinitializer, double %sqrt, i64 0
|
|
%shuffle = shufflevector <3 x double> %insert, <3 x double> zeroinitializer, <3 x i32> zeroinitializer
|
|
%mul = fmul <3 x double> %shuffle, <double 1.000000e+00, double 1.000000e+00, double 0.000000e+00>
|
|
%shuffle.1 = extractelement <3 x double> %mul, i64 0
|
|
%shuffle.2 = extractelement <3 x double> %mul, i64 1
|
|
%cmp = fcmp ogt double %shuffle.2, 0.000000e+00
|
|
br i1 %cmp, label %exit, label %bb.1
|
|
|
|
bb.1:
|
|
%mul.2 = fmul double %shuffle.1, 0.000000e+00
|
|
ret double %mul.2
|
|
|
|
exit:
|
|
ret double 0.0
|
|
}
|
|
|
|
declare double @llvm.sqrt.f64(double)
|
|
declare double @llvm.vector.reduce.fadd.v3f64(double, <3 x double>)
|