From e2fb8b33b2922b3916d1b2c953f4df82b8750828 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Tue, 26 Mar 2024 15:35:14 -0700 Subject: [PATCH] Remove -spirv from new HLSL Sema tests (#6467) These are semantic verification tests, the `-spir-v` option is not necessary. It also breaks our internal test passes for builds that do include SPIR-V backend. --- .../test/SemaHLSL/hlsl/semantics/semantic.vertex.position.hlsl | 2 +- .../hlsl/semantics/semantic.vertex.position.nowarn.hlsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/clang/test/SemaHLSL/hlsl/semantics/semantic.vertex.position.hlsl b/tools/clang/test/SemaHLSL/hlsl/semantics/semantic.vertex.position.hlsl index c755a6831..c8343f0e0 100644 --- a/tools/clang/test/SemaHLSL/hlsl/semantics/semantic.vertex.position.hlsl +++ b/tools/clang/test/SemaHLSL/hlsl/semantics/semantic.vertex.position.hlsl @@ -1,4 +1,4 @@ -// RUN: %dxc -T vs_6_0 -E main -spirv -verify %s +// RUN: %dxc -T vs_6_0 -E main -verify %s float4 main(float4 input : SV_Position) : POSITION { /* expected-warning{{'POSITION' is a user-defined semantic; did you mean 'SV_Position'?}} */ return input; diff --git a/tools/clang/test/SemaHLSL/hlsl/semantics/semantic.vertex.position.nowarn.hlsl b/tools/clang/test/SemaHLSL/hlsl/semantics/semantic.vertex.position.nowarn.hlsl index 899a054c3..7479e75d4 100644 --- a/tools/clang/test/SemaHLSL/hlsl/semantics/semantic.vertex.position.nowarn.hlsl +++ b/tools/clang/test/SemaHLSL/hlsl/semantics/semantic.vertex.position.nowarn.hlsl @@ -1,4 +1,4 @@ -// RUN: %dxc -T vs_6_0 -E main -spirv -Wno-dx9-deprecation -verify %s +// RUN: %dxc -T vs_6_0 -E main -Wno-dx9-deprecation -verify %s float4 main(float4 input : SV_Position) : POSITION { /* expected-no-diagnostics */ return input;