blob: b7f9964a6663138f3a12da8d8e4ed90e0003f6f7 [file] [edit]
; RUN: llc -mtriple=dxil-pc-shadermodel6.8-library -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-SCALAR
; RUN: llc -mtriple=dxil-pc-shadermodel6.9-library -stop-before=dxil-op-lower -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-VECTOR
; CHECK-LABEL: define <17 x float> @test_ddx_coarse(
; CHECK-SCALAR-COUNT-17: call float @dx.op.unary.f32(i32 83, float {{.*}})
; CHECK-VECTOR: call <17 x float> @llvm.dx.ddx.coarse.v17f32
define <17 x float> @test_ddx_coarse(<17 x float> %a) {
%result = call <17 x float> @llvm.dx.ddx.coarse.v17f32(<17 x float> %a)
ret <17 x float> %result
}
declare <17 x float> @llvm.dx.ddx.coarse.v17f32(<17 x float>)