1 ; RUN: llc %s -mtriple=dxil-pc-shadermodel6.3-library --filetype=asm -o - | FileCheck %s
3 ; CHECK: target triple = "dxilv1.3-pc-shadermodel6.3-library"
4 ; CHECK-LABEL: cos_sin_float_test
5 define noundef <4 x float> @cos_sin_float_test(<4 x float> noundef %a) #0 {
6 ; CHECK: [[ee0:%.*]] = extractelement <4 x float> %a, i64 0
7 ; CHECK: [[ie0:%.*]] = call float @dx.op.unary.f32(i32 13, float [[ee0]])
8 ; CHECK: [[ee1:%.*]] = extractelement <4 x float> %a, i64 1
9 ; CHECK: [[ie1:%.*]] = call float @dx.op.unary.f32(i32 13, float [[ee1]])
10 ; CHECK: [[ee2:%.*]] = extractelement <4 x float> %a, i64 2
11 ; CHECK: [[ie2:%.*]] = call float @dx.op.unary.f32(i32 13, float [[ee2]])
12 ; CHECK: [[ee3:%.*]] = extractelement <4 x float> %a, i64 3
13 ; CHECK: [[ie3:%.*]] = call float @dx.op.unary.f32(i32 13, float [[ee3]])
14 ; CHECK: [[ie4:%.*]] = call float @dx.op.unary.f32(i32 12, float [[ie0]])
15 ; CHECK: [[ie5:%.*]] = call float @dx.op.unary.f32(i32 12, float [[ie1]])
16 ; CHECK: [[ie6:%.*]] = call float @dx.op.unary.f32(i32 12, float [[ie2]])
17 ; CHECK: [[ie7:%.*]] = call float @dx.op.unary.f32(i32 12, float [[ie3]])
18 ; CHECK: insertelement <4 x float> poison, float [[ie4]], i64 0
19 ; CHECK: insertelement <4 x float> %{{.*}}, float [[ie5]], i64 1
20 ; CHECK: insertelement <4 x float> %{{.*}}, float [[ie6]], i64 2
21 ; CHECK: insertelement <4 x float> %{{.*}}, float [[ie7]], i64 3
22 %2 = tail call <4 x float> @llvm.sin.v4f32(<4 x float> %a)
23 %3 = tail call <4 x float> @llvm.cos.v4f32(<4 x float> %2)
27 attributes #0 = { convergent norecurse nounwind "hlsl.export"}