diff --git a/docs/origin-trial-changes.md b/docs/origin-trial-changes.md index f8612ad3d9..d5d69f115f 100644 --- a/docs/origin-trial-changes.md +++ b/docs/origin-trial-changes.md @@ -6,6 +6,10 @@ * Taking the address of a vector component is no longer allowed. +### Deprecated Features + +* The `isNan()`, `isInf()`, `isFinite()` and `isNormal()` builtins has been deprecated and will be removed in M101. [tint:1312](https://crbug.com/tint/1312) + ### New Features * The `dot()` builtin now supports integer vector types. diff --git a/src/intrinsic_table.inl b/src/intrinsic_table.inl index 73a0966343..ea72274f84 100644 --- a/src/intrinsic_table.inl +++ b/src/intrinsic_table.inl @@ -6838,7 +6838,7 @@ constexpr OverloadInfo kOverloads[] = { /* parameters */ &kParameters[531], /* return matcher indices */ &kMatcherIndices[10], /* supported_stages */ PipelineStageSet(PipelineStage::kVertex, PipelineStage::kFragment, PipelineStage::kCompute), - /* is_deprecated */ false, + /* is_deprecated */ true, }, { /* [172] */ @@ -6850,7 +6850,7 @@ constexpr OverloadInfo kOverloads[] = { /* parameters */ &kParameters[530], /* return matcher indices */ &kMatcherIndices[24], /* supported_stages */ PipelineStageSet(PipelineStage::kVertex, PipelineStage::kFragment, PipelineStage::kCompute), - /* is_deprecated */ false, + /* is_deprecated */ true, }, { /* [173] */ @@ -6862,7 +6862,7 @@ constexpr OverloadInfo kOverloads[] = { /* parameters */ &kParameters[529], /* return matcher indices */ &kMatcherIndices[10], /* supported_stages */ PipelineStageSet(PipelineStage::kVertex, PipelineStage::kFragment, PipelineStage::kCompute), - /* is_deprecated */ false, + /* is_deprecated */ true, }, { /* [174] */ @@ -6874,7 +6874,7 @@ constexpr OverloadInfo kOverloads[] = { /* parameters */ &kParameters[528], /* return matcher indices */ &kMatcherIndices[24], /* supported_stages */ PipelineStageSet(PipelineStage::kVertex, PipelineStage::kFragment, PipelineStage::kCompute), - /* is_deprecated */ false, + /* is_deprecated */ true, }, { /* [175] */ @@ -6886,7 +6886,7 @@ constexpr OverloadInfo kOverloads[] = { /* parameters */ &kParameters[527], /* return matcher indices */ &kMatcherIndices[10], /* supported_stages */ PipelineStageSet(PipelineStage::kVertex, PipelineStage::kFragment, PipelineStage::kCompute), - /* is_deprecated */ false, + /* is_deprecated */ true, }, { /* [176] */ @@ -6898,7 +6898,7 @@ constexpr OverloadInfo kOverloads[] = { /* parameters */ &kParameters[526], /* return matcher indices */ &kMatcherIndices[24], /* supported_stages */ PipelineStageSet(PipelineStage::kVertex, PipelineStage::kFragment, PipelineStage::kCompute), - /* is_deprecated */ false, + /* is_deprecated */ true, }, { /* [177] */ @@ -6910,7 +6910,7 @@ constexpr OverloadInfo kOverloads[] = { /* parameters */ &kParameters[525], /* return matcher indices */ &kMatcherIndices[10], /* supported_stages */ PipelineStageSet(PipelineStage::kVertex, PipelineStage::kFragment, PipelineStage::kCompute), - /* is_deprecated */ false, + /* is_deprecated */ true, }, { /* [178] */ @@ -6922,7 +6922,7 @@ constexpr OverloadInfo kOverloads[] = { /* parameters */ &kParameters[524], /* return matcher indices */ &kMatcherIndices[24], /* supported_stages */ PipelineStageSet(PipelineStage::kVertex, PipelineStage::kFragment, PipelineStage::kCompute), - /* is_deprecated */ false, + /* is_deprecated */ true, }, { /* [179] */ diff --git a/src/intrinsics.def b/src/intrinsics.def index 95ca1011e2..0d436fe482 100644 --- a/src/intrinsics.def +++ b/src/intrinsics.def @@ -327,14 +327,14 @@ fn frexp(vec) -> __frexp_result_vec [[deprecated]] fn ignore(T) fn inverseSqrt(f32) -> f32 fn inverseSqrt(vec) -> vec -fn isFinite(f32) -> bool -fn isFinite(vec) -> vec -fn isInf(f32) -> bool -fn isInf(vec) -> vec -fn isNan(f32) -> bool -fn isNan(vec) -> vec -fn isNormal(f32) -> bool -fn isNormal(vec) -> vec +[[deprecated]] fn isFinite(f32) -> bool +[[deprecated]] fn isFinite(vec) -> vec +[[deprecated]] fn isInf(f32) -> bool +[[deprecated]] fn isInf(vec) -> vec +[[deprecated]] fn isNan(f32) -> bool +[[deprecated]] fn isNan(vec) -> vec +[[deprecated]] fn isNormal(f32) -> bool +[[deprecated]] fn isNormal(vec) -> vec fn ldexp(f32, i32) -> f32 fn ldexp(vec, vec) -> vec fn length(f32) -> f32 diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.hlsl b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.hlsl index 6e714e9176..26da20792e 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isFinite(vec2()); + ^^^^^^^^ + void isFinite_34d32b() { bool2 res = isfinite(float2(0.0f, 0.0f)); } diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.msl b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.msl index e1ab4d118b..34352c0f05 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.msl +++ b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isFinite(vec2()); + ^^^^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.spvasm b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.spvasm index ba601335bb..831fa2d29e 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isFinite(vec2()); + ^^^^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.wgsl b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.wgsl index f4495a59ed..e4cfe3fef6 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isFinite(vec2()); + ^^^^^^^^ + fn isFinite_34d32b() { var res : vec2 = isFinite(vec2()); } diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.hlsl b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.hlsl index 21726783dc..9e215be6b3 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isFinite(1.0); + ^^^^^^^^ + void isFinite_426f9f() { bool res = isfinite(1.0f); } diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.msl b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.msl index 86bfad4e46..39432e0e09 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.msl +++ b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isFinite(1.0); + ^^^^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.spvasm b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.spvasm index 6c06d83302..5b555627f6 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isFinite(1.0); + ^^^^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.wgsl b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.wgsl index 224cd8cdb7..a0d931c1bf 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isFinite(1.0); + ^^^^^^^^ + fn isFinite_426f9f() { var res : bool = isFinite(1.0); } diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.hlsl b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.hlsl index cf8469fc2b..098b3e7156 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isFinite(vec3()); + ^^^^^^^^ + void isFinite_8a23ad() { bool3 res = isfinite(float3(0.0f, 0.0f, 0.0f)); } diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.msl b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.msl index aea5696468..5b9e079c9d 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.msl +++ b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isFinite(vec3()); + ^^^^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.spvasm b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.spvasm index bc09ceeebe..d496b6e9c8 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isFinite(vec3()); + ^^^^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.wgsl b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.wgsl index cb2bc6f70f..807cfde88a 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isFinite(vec3()); + ^^^^^^^^ + fn isFinite_8a23ad() { var res : vec3 = isFinite(vec3()); } diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.hlsl b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.hlsl index 98228ec8f8..cb51c62d81 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isFinite(vec4()); + ^^^^^^^^ + void isFinite_f31987() { bool4 res = isfinite(float4(0.0f, 0.0f, 0.0f, 0.0f)); } diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.msl b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.msl index f1710418d9..5e6c50490c 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.msl +++ b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isFinite(vec4()); + ^^^^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.spvasm b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.spvasm index 3d8b0d3944..ee68c59f46 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isFinite(vec4()); + ^^^^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.wgsl b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.wgsl index e5a1a9d48a..a1361e18e6 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isFinite(vec4()); + ^^^^^^^^ + fn isFinite_f31987() { var res : vec4 = isFinite(vec4()); } diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.hlsl b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.hlsl index a3f366955a..cb815e179c 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isInf(vec3()); + ^^^^^ + void isInf_666f2a() { bool3 res = isinf(float3(0.0f, 0.0f, 0.0f)); } diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.msl b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.msl index 18a8dc138b..fa37ad708a 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.msl +++ b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isInf(vec3()); + ^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.spvasm b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.spvasm index 6fd40e1eaa..42db2c18e2 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isInf(vec3()); + ^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.wgsl b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.wgsl index b41d17c32f..e5076f5fb6 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isInf(vec3()); + ^^^^^ + fn isInf_666f2a() { var res : vec3 = isInf(vec3()); } diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.hlsl b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.hlsl index 59f1127a81..710b925fdf 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isInf(1.0); + ^^^^^ + void isInf_7bd98f() { bool res = isinf(1.0f); } diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.msl b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.msl index a253ae21d9..c2a807b974 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.msl +++ b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isInf(1.0); + ^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.spvasm b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.spvasm index 62070aa4f0..b04b2b117a 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isInf(1.0); + ^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.wgsl b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.wgsl index f815ec67f6..281dc74a0b 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isInf(1.0); + ^^^^^ + fn isInf_7bd98f() { var res : bool = isInf(1.0); } diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.hlsl b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.hlsl index 44c99178ca..f04d9c0764 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isInf(vec4()); + ^^^^^ + void isInf_7e81b5() { bool4 res = isinf(float4(0.0f, 0.0f, 0.0f, 0.0f)); } diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.msl b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.msl index 197b078ad6..de416fb481 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.msl +++ b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isInf(vec4()); + ^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.spvasm b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.spvasm index ffc62c237d..c8a1781a9a 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isInf(vec4()); + ^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.wgsl b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.wgsl index 1a88ab08f5..24b76afb4e 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isInf(vec4()); + ^^^^^ + fn isInf_7e81b5() { var res : vec4 = isInf(vec4()); } diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.hlsl b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.hlsl index 156d4707e6..bb064136dc 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isInf(vec2()); + ^^^^^ + void isInf_a46d6f() { bool2 res = isinf(float2(0.0f, 0.0f)); } diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.msl b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.msl index 47772df6b4..f4c90324a6 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.msl +++ b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isInf(vec2()); + ^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.spvasm b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.spvasm index 5aa43d35cc..52b4ee8177 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isInf(vec2()); + ^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.wgsl b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.wgsl index 5df51d9c18..26cac945aa 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isInf(vec2()); + ^^^^^ + fn isInf_a46d6f() { var res : vec2 = isInf(vec2()); } diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.hlsl b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.hlsl index 5eed97e91e..55394cc79d 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isNan(vec3()); + ^^^^^ + void isNan_1280ab() { bool3 res = isnan(float3(0.0f, 0.0f, 0.0f)); } diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.msl b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.msl index 84ad032610..7a8c6dd6fe 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.msl +++ b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isNan(vec3()); + ^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.spvasm b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.spvasm index 268f5de365..91bdbc9bc2 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isNan(vec3()); + ^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.wgsl b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.wgsl index 3ef45d2432..c4fd0591bf 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isNan(vec3()); + ^^^^^ + fn isNan_1280ab() { var res : vec3 = isNan(vec3()); } diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.hlsl b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.hlsl index f25f0c632f..18a17d58b4 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isNan(vec4()); + ^^^^^ + void isNan_4d280d() { bool4 res = isnan(float4(0.0f, 0.0f, 0.0f, 0.0f)); } diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.msl b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.msl index 47e387bd78..e8c2d9cc09 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.msl +++ b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isNan(vec4()); + ^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.spvasm b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.spvasm index 074a58b20f..ee5a96e38d 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isNan(vec4()); + ^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.wgsl b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.wgsl index c5e8bacf13..097488c2c5 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isNan(vec4()); + ^^^^^ + fn isNan_4d280d() { var res : vec4 = isNan(vec4()); } diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.hlsl b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.hlsl index 016c3b362d..c83f79dfe6 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isNan(vec2()); + ^^^^^ + void isNan_67ecd3() { bool2 res = isnan(float2(0.0f, 0.0f)); } diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.msl b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.msl index 03f0a4e33d..901c4cabba 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.msl +++ b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isNan(vec2()); + ^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.spvasm b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.spvasm index ae148ecf87..575cb561c5 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isNan(vec2()); + ^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.wgsl b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.wgsl index 1d6ccbb26a..49b0c8adc4 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isNan(vec2()); + ^^^^^ + fn isNan_67ecd3() { var res : vec2 = isNan(vec2()); } diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.hlsl b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.hlsl index e4b762ee39..99d53a5646 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isNan(1.0); + ^^^^^ + void isNan_e4978e() { bool res = isnan(1.0f); } diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.msl b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.msl index ddbe121632..89f76403e6 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.msl +++ b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isNan(1.0); + ^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.spvasm b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.spvasm index c3140e2acf..08f50a764b 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isNan(1.0); + ^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.wgsl b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.wgsl index 1062a26ac1..12d2aa0b04 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isNan(1.0); + ^^^^^ + fn isNan_e4978e() { var res : bool = isNan(1.0); } diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.hlsl b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.hlsl index c88fb51e89..978aed2862 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isNormal(vec4()); + ^^^^^^^^ + bool4 tint_isNormal(float4 param_0) { uint4 exponent = asuint(param_0) & 0x7f80000; uint4 clamped = clamp(exponent, 0x0080000, 0x7f00000); diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.msl b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.msl index 309085f4d6..aa872917b6 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.msl +++ b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isNormal(vec4()); + ^^^^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.spvasm b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.spvasm index c782b6cecf..b901c91ff9 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isNormal(vec4()); + ^^^^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.wgsl b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.wgsl index 1660cdf6d6..d9ba4288da 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec4 = isNormal(vec4()); + ^^^^^^^^ + fn isNormal_863dcd() { var res : vec4 = isNormal(vec4()); } diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.hlsl b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.hlsl index 3faca74fca..226bf93541 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isNormal(vec2()); + ^^^^^^^^ + bool2 tint_isNormal(float2 param_0) { uint2 exponent = asuint(param_0) & 0x7f80000; uint2 clamped = clamp(exponent, 0x0080000, 0x7f00000); diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.msl b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.msl index f2a2931761..d51f774347 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.msl +++ b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isNormal(vec2()); + ^^^^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.spvasm b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.spvasm index 865cf7b9e3..92ba069aee 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isNormal(vec2()); + ^^^^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.wgsl b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.wgsl index 8657cd385c..b85bc1f5ad 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec2 = isNormal(vec2()); + ^^^^^^^^ + fn isNormal_b00ab1() { var res : vec2 = isNormal(vec2()); } diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.hlsl b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.hlsl index 94681fafc2..eeb5d556bc 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isNormal(vec3()); + ^^^^^^^^ + bool3 tint_isNormal(float3 param_0) { uint3 exponent = asuint(param_0) & 0x7f80000; uint3 clamped = clamp(exponent, 0x0080000, 0x7f00000); diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.msl b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.msl index a2c3952005..3717571153 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.msl +++ b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isNormal(vec3()); + ^^^^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.spvasm b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.spvasm index 158b6bb16a..b1a08060bf 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isNormal(vec3()); + ^^^^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.wgsl b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.wgsl index ca38d5201b..4b36826717 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated intrinsic + var res: vec3 = isNormal(vec3()); + ^^^^^^^^ + fn isNormal_c286b7() { var res : vec3 = isNormal(vec3()); } diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.hlsl b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.hlsl index e4dffbc964..5ef69b6389 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.hlsl +++ b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.hlsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isNormal(1.0); + ^^^^^^^^ + bool tint_isNormal(float param_0) { uint exponent = asuint(param_0) & 0x7f80000; uint clamped = clamp(exponent, 0x0080000, 0x7f00000); diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.msl b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.msl index 529b23a58b..148fa0a733 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.msl +++ b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.msl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isNormal(1.0); + ^^^^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.spvasm b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.spvasm index a849dfe10f..98da25d944 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.spvasm +++ b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.spvasm @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isNormal(1.0); + ^^^^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.wgsl b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.wgsl index f6f9a17a7b..00613664fe 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.wgsl +++ b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.wgsl @@ -1,3 +1,7 @@ +intrinsics/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated intrinsic + var res: bool = isNormal(1.0); + ^^^^^^^^ + fn isNormal_c6e880() { var res : bool = isNormal(1.0); } diff --git a/test/intrinsics/repeated_use.wgsl.expected.hlsl b/test/intrinsics/repeated_use.wgsl.expected.hlsl index c89b9fb7b9..588662486f 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.hlsl +++ b/test/intrinsics/repeated_use.wgsl.expected.hlsl @@ -1,3 +1,51 @@ +intrinsics/repeated_use.wgsl:5:9 warning: use of deprecated intrinsic + _ = isNormal(vec4()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:6:9 warning: use of deprecated intrinsic + _ = isNormal(vec4(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:7:9 warning: use of deprecated intrinsic + _ = isNormal(vec4(1., 2., 3., 4.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:9:9 warning: use of deprecated intrinsic + _ = isNormal(vec3()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:10:9 warning: use of deprecated intrinsic + _ = isNormal(vec3(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:11:9 warning: use of deprecated intrinsic + _ = isNormal(vec3(1., 2., 3.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:13:9 warning: use of deprecated intrinsic + _ = isNormal(vec2()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:14:9 warning: use of deprecated intrinsic + _ = isNormal(vec2(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:15:9 warning: use of deprecated intrinsic + _ = isNormal(vec2(1., 2.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:17:9 warning: use of deprecated intrinsic + _ = isNormal(1.); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:18:9 warning: use of deprecated intrinsic + _ = isNormal(2.); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:19:9 warning: use of deprecated intrinsic + _ = isNormal(3.); + ^^^^^^^^ + bool4 tint_isNormal(float4 param_0) { uint4 exponent = asuint(param_0) & 0x7f80000; uint4 clamped = clamp(exponent, 0x0080000, 0x7f00000); diff --git a/test/intrinsics/repeated_use.wgsl.expected.msl b/test/intrinsics/repeated_use.wgsl.expected.msl index 3b233ce83f..848c224482 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.msl +++ b/test/intrinsics/repeated_use.wgsl.expected.msl @@ -1,3 +1,51 @@ +intrinsics/repeated_use.wgsl:5:9 warning: use of deprecated intrinsic + _ = isNormal(vec4()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:6:9 warning: use of deprecated intrinsic + _ = isNormal(vec4(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:7:9 warning: use of deprecated intrinsic + _ = isNormal(vec4(1., 2., 3., 4.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:9:9 warning: use of deprecated intrinsic + _ = isNormal(vec3()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:10:9 warning: use of deprecated intrinsic + _ = isNormal(vec3(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:11:9 warning: use of deprecated intrinsic + _ = isNormal(vec3(1., 2., 3.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:13:9 warning: use of deprecated intrinsic + _ = isNormal(vec2()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:14:9 warning: use of deprecated intrinsic + _ = isNormal(vec2(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:15:9 warning: use of deprecated intrinsic + _ = isNormal(vec2(1., 2.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:17:9 warning: use of deprecated intrinsic + _ = isNormal(1.); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:18:9 warning: use of deprecated intrinsic + _ = isNormal(2.); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:19:9 warning: use of deprecated intrinsic + _ = isNormal(3.); + ^^^^^^^^ + #include using namespace metal; diff --git a/test/intrinsics/repeated_use.wgsl.expected.spvasm b/test/intrinsics/repeated_use.wgsl.expected.spvasm index e3eed027be..3e3beb030a 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.spvasm +++ b/test/intrinsics/repeated_use.wgsl.expected.spvasm @@ -1,3 +1,51 @@ +intrinsics/repeated_use.wgsl:5:9 warning: use of deprecated intrinsic + _ = isNormal(vec4()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:6:9 warning: use of deprecated intrinsic + _ = isNormal(vec4(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:7:9 warning: use of deprecated intrinsic + _ = isNormal(vec4(1., 2., 3., 4.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:9:9 warning: use of deprecated intrinsic + _ = isNormal(vec3()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:10:9 warning: use of deprecated intrinsic + _ = isNormal(vec3(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:11:9 warning: use of deprecated intrinsic + _ = isNormal(vec3(1., 2., 3.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:13:9 warning: use of deprecated intrinsic + _ = isNormal(vec2()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:14:9 warning: use of deprecated intrinsic + _ = isNormal(vec2(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:15:9 warning: use of deprecated intrinsic + _ = isNormal(vec2(1., 2.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:17:9 warning: use of deprecated intrinsic + _ = isNormal(1.); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:18:9 warning: use of deprecated intrinsic + _ = isNormal(2.); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:19:9 warning: use of deprecated intrinsic + _ = isNormal(3.); + ^^^^^^^^ + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 diff --git a/test/intrinsics/repeated_use.wgsl.expected.wgsl b/test/intrinsics/repeated_use.wgsl.expected.wgsl index 7cfb031840..a654f4b59d 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.wgsl +++ b/test/intrinsics/repeated_use.wgsl.expected.wgsl @@ -1,3 +1,51 @@ +intrinsics/repeated_use.wgsl:5:9 warning: use of deprecated intrinsic + _ = isNormal(vec4()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:6:9 warning: use of deprecated intrinsic + _ = isNormal(vec4(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:7:9 warning: use of deprecated intrinsic + _ = isNormal(vec4(1., 2., 3., 4.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:9:9 warning: use of deprecated intrinsic + _ = isNormal(vec3()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:10:9 warning: use of deprecated intrinsic + _ = isNormal(vec3(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:11:9 warning: use of deprecated intrinsic + _ = isNormal(vec3(1., 2., 3.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:13:9 warning: use of deprecated intrinsic + _ = isNormal(vec2()); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:14:9 warning: use of deprecated intrinsic + _ = isNormal(vec2(1.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:15:9 warning: use of deprecated intrinsic + _ = isNormal(vec2(1., 2.)); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:17:9 warning: use of deprecated intrinsic + _ = isNormal(1.); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:18:9 warning: use of deprecated intrinsic + _ = isNormal(2.); + ^^^^^^^^ + +intrinsics/repeated_use.wgsl:19:9 warning: use of deprecated intrinsic + _ = isNormal(3.); + ^^^^^^^^ + [[stage(compute), workgroup_size(1)]] fn main() { _ = isNormal(vec4());