brintos

brintos / llvm-project-archived public Read only

0
0
Text · 612 B · 0baf0db Raw
11 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// CHECK:      define hidden void @{{.*}}builtin_clip_float{{.*}}(float {{.*}} [[P0:%.*]])4// CHECK:      [[LOAD:%.*]] = load float, ptr [[P0]].addr, align 45// CHECK-NEXT: [[FCMP:%.*]] = fcmp reassoc nnan ninf nsz arcp afn olt float [[LOAD]], 0.000000e+006// CHECK-NO:   call i1 @llvm.dx.any7// CHECK-NEXT: call void @llvm.dx.discard(i1 [[FCMP]])8void builtin_clip_float (float p0) {9  __builtin_hlsl_elementwise_clip(p0);10}11