brintos

brintos / llvm-project-archived public Read only

0
0
Text · 694 B · d45f8cb Raw
17 lines · plain
1// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.3-library %s -fnative-half-type -fnative-int16-type -emit-llvm -disable-llvm-passes -o - | FileCheck %s2 3 4// CHECK-LABEL: builtin_rsqrt_half5// CHECK: %hlsl.rsqrt = call reassoc nnan ninf nsz arcp afn half @llvm.dx.rsqrt.f16(half %{{.*}})6// CHECK: ret half  %hlsl.rsqrt7half builtin_rsqrt_half(half p0) {8  return __builtin_hlsl_elementwise_rsqrt(p0);9}10 11// CHECK-LABEL: builtin_rsqrt_float12// CHECK: %hlsl.rsqrt = call reassoc nnan ninf nsz arcp afn float @llvm.dx.rsqrt.f32(float %{{.*}})13// CHECK: ret float  %hlsl.rsqrt14float builtin_rsqrt_float (float p0) {15  return __builtin_hlsl_elementwise_rsqrt(p0);16}17