1- // RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.6-library %s -fnative-half -type -emit-llvm-only -disable-llvm-passes -verify
1+ // RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.6-library %s -fnative-int16 -type -emit-llvm-only -disable-llvm-passes -verify
22
33float builtin_f16tof32_too_few_arg () {
44 return __builtin_hlsl_elementwise_f16tof32 ();
@@ -22,12 +22,12 @@ float builtin_f16tof32_bool4(bool4 p0) {
2222 // expected-error@-1 {{1st argument must be a scalar or vector of unsigned integer types (was 'bool4' (aka 'vector<bool, 4>')}}
2323}
2424
25- float builtin_f16tof32_int16_t (int16_t p0) {
25+ float builtin_f16tof32_short (short p0) {
2626 return __builtin_hlsl_elementwise_f16tof32 (p0);
27- // expected-error@-1 {{1st argument must be a scalar or vector of unsigned integer types (was 'int16_t' (aka ' short') )}}
27+ // expected-error@-1 {{1st argument must be a scalar or vector of unsigned integer types (was 'short')}}
2828}
2929
30- float builtin_f16tof32_int16_t (unsigned short p0) {
30+ float builtin_f16tof32_unsigned_short (unsigned short p0) {
3131 return __builtin_hlsl_elementwise_f16tof32 (p0);
3232 // expected-error@-1 {{incorrect number of bits in integer (expected 32 bits, have 16)}}
3333}
@@ -84,13 +84,13 @@ float f16tof32_bool(bool p0) {
8484
8585float f16tof32_bool3 (bool3 p0) {
8686 return f16tof32 (p0);
87- // expected-error@-1 {{1st argument must be a scalar or vector of unsigned integer types (was 'bool3' (aka 'vector<bool, 3>')}}
87+ // expected-error@-1 {{1st argument must be a scalar or vector of unsigned integer types (was 'bool3' (aka 'vector<bool, 3>')) }}
8888}
8989
9090
91- float f16tof32_int16_t (int16_t p0) {
91+ float f16tof32_int16_t (short p0) {
9292 return f16tof32 (p0);
93- // expected-error@-1 {{1st argument must be a scalar or vector of unsigned integer types (was 'int16_t' (aka ' short') )}}
93+ // expected-error@-1 {{1st argument must be a scalar or vector of unsigned integer types (was 'short')}}
9494}
9595
9696float f16tof32_int16_t (unsigned short p0) {
0 commit comments