brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 5572ba5 Raw
45 lines · plain
1// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=lerp %s 2>&1 | FileCheck %s -DFUNC=lerp2 3// ternary double overloads4float test_ternary_double(double p0) {5  // CHECK: warning: '[[FUNC]]' is deprecated: In 202x 64 bit API lowering for [[FUNC]] is deprecated. Explicitly cast parameters to 32 or 16 bit types.6  return FUNC(p0, p0, p0);7}8 9float2 test_ternary_double2(double2 p0) {10  // CHECK: warning: '[[FUNC]]' is deprecated: In 202x 64 bit API lowering for [[FUNC]] is deprecated. Explicitly cast parameters to 32 or 16 bit types.11  return FUNC(p0, p0, p0);12}13 14float3 test_ternary_double3(double3 p0) {15  // CHECK: warning: '[[FUNC]]' is deprecated: In 202x 64 bit API lowering for [[FUNC]] is deprecated. Explicitly cast parameters to 32 or 16 bit types.16  return FUNC(p0, p0, p0);17}18 19float4 test_ternary_double4(double4 p0) {20  // CHECK: warning: '[[FUNC]]' is deprecated: In 202x 64 bit API lowering for [[FUNC]] is deprecated. Explicitly cast parameters to 32 or 16 bit types.21  return FUNC(p0, p0, p0);22}23 24// ternary integer overloads25// only test scalar ones for brevity26float test_ternary_int(int p0) {27  // CHECK: warning: '[[FUNC]]' is deprecated: In 202x int lowering for [[FUNC]] is deprecated. Explicitly cast parameters to float types.28  return FUNC(p0, p0, p0);29}30 31float test_ternary_int(uint p0) {32  // CHECK: warning: '[[FUNC]]' is deprecated: In 202x int lowering for [[FUNC]] is deprecated. Explicitly cast parameters to float types.33  return FUNC(p0, p0, p0);34}35 36float test_ternary_int(int64_t p0) {37  // CHECK: warning: '[[FUNC]]' is deprecated: In 202x int lowering for [[FUNC]] is deprecated. Explicitly cast parameters to float types.38  return FUNC(p0, p0, p0);39}40 41float test_ternary_int(uint64_t p0) {42  // CHECK: warning: '[[FUNC]]' is deprecated: In 202x int lowering for [[FUNC]] is deprecated. Explicitly cast parameters to float types.43  return FUNC(p0, p0, p0);44}45