summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/DirectX/sin_vector_error.ll
blob: 45b8d403390b9141252dbbbfc47890bc0b4ae2c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.0-library %s 2>&1 | FileCheck %s
; The sin intrinsic needs to be scalarized before op lowering

; CHECK: error:
; CHECK-SAME: in function sin_vector
; CHECK-SAME: Cannot create Sin operation: Invalid overload type

define <4 x float> @sin_vector(<4 x float> %a) {
  %x = call <4 x float> @llvm.sin.v4f32(<4 x float> %a)
  ret <4 x float> %x
}