Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

55 lines
2.7 KiB
LLVM

; RUN: opt -S -scalarizer -dxil-op-lower < %s | FileCheck %s
target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64"
target triple = "dxil-pc-shadermodel6.7-library"
; CHECK-LABEL: define double @fma_double(
; CHECK: call double @dx.op.tertiary.f64(i32 47, double %{{.*}}, double %{{.*}}, double %{{.*}})
define double @fma_double(double %a, double %b, double %c) {
%r = call double @llvm.fma.f64(double %a, double %b, double %c)
ret double %r
}
; CHECK-LABEL: define <2 x double> @fma_v2f64(
; CHECK: extractelement <2 x double> %a, i64 0
; CHECK: extractelement <2 x double> %b, i64 0
; CHECK: extractelement <2 x double> %c, i64 0
; CHECK: call double @dx.op.tertiary.f64(i32 47, double %{{.*}}, double %{{.*}}, double %{{.*}})
; CHECK: extractelement <2 x double> %a, i64 1
; CHECK: extractelement <2 x double> %b, i64 1
; CHECK: extractelement <2 x double> %c, i64 1
; CHECK: call double @dx.op.tertiary.f64(i32 47, double %{{.*}}, double %{{.*}}, double %{{.*}})
; CHECK: insertelement <2 x double> poison, double %{{.*}}, i64 0
; CHECK: insertelement <2 x double> %{{.*}}, double %{{.*}}, i64 1
define <2 x double> @fma_v2f64(<2 x double> %a, <2 x double> %b,
<2 x double> %c) {
%r = call <2 x double> @llvm.fma.v2f64(<2 x double> %a, <2 x double> %b,
<2 x double> %c)
ret <2 x double> %r
}
; CHECK-LABEL: define <16 x double> @fma_v16f64(
; CHECK: extractelement <16 x double> %a, i64 0
; CHECK: extractelement <16 x double> %b, i64 0
; CHECK: extractelement <16 x double> %c, i64 0
; CHECK: call double @dx.op.tertiary.f64(i32 47, double %{{.*}}, double %{{.*}}, double %{{.*}})
; CHECK: extractelement <16 x double> %a, i64 15
; CHECK: extractelement <16 x double> %b, i64 15
; CHECK: extractelement <16 x double> %c, i64 15
; CHECK: call double @dx.op.tertiary.f64(i32 47, double %{{.*}}, double %{{.*}}, double %{{.*}})
; CHECK: insertelement <16 x double> poison, double %{{.*}}, i64 0
; CHECK: insertelement <16 x double> %{{.*}}, double %{{.*}}, i64 15
define <16 x double> @fma_v16f64(<16 x double> %a, <16 x double> %b,
<16 x double> %c) {
%r = call <16 x double> @llvm.fma.v16f64(<16 x double> %a, <16 x double> %b,
<16 x double> %c)
ret <16 x double> %r
}
declare double @llvm.fma.f64(double, double, double)
declare <2 x double> @llvm.fma.v2f64(<2 x double>, <2 x double>, <2 x double>)
declare <16 x double> @llvm.fma.v16f64(<16 x double>, <16 x double>, <16 x double>)
; CHECK: declare double @dx.op.tertiary.f64(i32, double, double, double) #[[#ATTR0:]]
; CHECK: attributes #[[#ATTR0]] = { nounwind memory(none) }