blob: 04ccf570a67105ed4984256ee0ee747245e4ca14 [file]
; 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 i32> @test_wave_uproduct(
; CHECK-SCALAR-COUNT-17: call i32 @dx.op.waveActiveOp.i32(i32 119, i32 {{.*}}, i8 1, i8 1)
; CHECK-VECTOR: call <17 x i32> @llvm.dx.wave.uproduct.v17i32
define <17 x i32> @test_wave_uproduct(<17 x i32> %a) {
%result = call <17 x i32> @llvm.dx.wave.uproduct.v17i32(<17 x i32> %a)
ret <17 x i32> %result
}
declare <17 x i32> @llvm.dx.wave.uproduct.v17i32(<17 x i32>)