brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 7e8f58c Raw
28 lines · plain
1; RUN: llc %s -mtriple=dxil-pc-shadermodel6.3-library --filetype=asm -o - | FileCheck %s2 3; CHECK: target triple = "dxilv1.3-pc-shadermodel6.3-library"4; CHECK-LABEL: cos_sin_float_test5define noundef <4 x float> @cos_sin_float_test(<4 x float> noundef %a) #0 {6    ; CHECK: [[ee0:%.*]] = extractelement <4 x float> %a, i32 07    ; CHECK: [[ie0:%.*]] = call float @dx.op.unary.f32(i32 13, float [[ee0]])8    ; CHECK: [[ee1:%.*]] = extractelement <4 x float> %a, i32 19    ; CHECK: [[ie1:%.*]] = call float @dx.op.unary.f32(i32 13, float [[ee1]])10    ; CHECK: [[ee2:%.*]] = extractelement <4 x float> %a, i32 211    ; CHECK: [[ie2:%.*]] = call float @dx.op.unary.f32(i32 13, float [[ee2]])12    ; CHECK: [[ee3:%.*]] = extractelement <4 x float> %a, i32 313    ; 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]], i32 019    ; CHECK: insertelement <4 x float> %{{.*}}, float [[ie5]], i32 120    ; CHECK: insertelement <4 x float> %{{.*}}, float [[ie6]], i32 221    ; CHECK: insertelement <4 x float> %{{.*}}, float [[ie7]], i32 322    %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) 24    ret <4 x float> %3 25} 26 27attributes #0 = { convergent norecurse nounwind "hlsl.export"}28