brintos

brintos / llvm-project-archived public Read only

0
0
Text · 406 B · 45b8d40 Raw
12 lines · plain
1; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.0-library %s 2>&1 | FileCheck %s2; The sin intrinsic needs to be scalarized before op lowering3 4; CHECK: error:5; CHECK-SAME: in function sin_vector6; CHECK-SAME: Cannot create Sin operation: Invalid overload type7 8define <4 x float> @sin_vector(<4 x float> %a) {9  %x = call <4 x float> @llvm.sin.v4f32(<4 x float> %a)10  ret <4 x float> %x11}12