[clang] [NFC][HLSL][DX] Update invalid environment tests (PR #81052)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 7 15:24:44 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-driver
Author: Chris B (llvm-beanz)
<details>
<summary>Changes</summary>
This updates the HLSL invalid environment tests to adapt to #<!-- -->78655.
---
Full diff: https://github.com/llvm/llvm-project/pull/81052.diff
1 Files Affected:
- (modified) clang/test/Driver/hlsl-lang-targets.hlsl (+2-1)
``````````diff
diff --git a/clang/test/Driver/hlsl-lang-targets.hlsl b/clang/test/Driver/hlsl-lang-targets.hlsl
index f2f4bba8196bc9..85d61eed858c43 100644
--- a/clang/test/Driver/hlsl-lang-targets.hlsl
+++ b/clang/test/Driver/hlsl-lang-targets.hlsl
@@ -32,7 +32,7 @@
// Invalid shader stages
//
// RUN: not %clang -target dxil--shadermodel6.2-unknown %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-BAD-ENV %s
-// RUN: not %clang -target dxil--shadermodel6.2-invalidenvironment %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-BAD-ENV %s
+// RUN: not %clang -target dxil--shadermodel6.2-invalidenvironment %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-INVALID-ENV %s
// RUN: not %clang -target dxil--shadermodel6.2-eabi %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-BAD-ENV %s
// RUN: not %clang -target dxil--shadermodel6.2-msvc %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-BAD-ENV %s
@@ -47,6 +47,7 @@
// CHECK-BAD-OS: error: shader model '{{.*}}' in target '{{.*}}' is invalid for HLSL code generation
// CHECK-NO-ENV: error: shader stage is required as environment in target '{{.*}}' for HLSL code generation
// CHECK-BAD-ENV: error: shader stage '{{.*}}' in target '{{.*}}' is invalid for HLSL code generation
+// CHECK-INVALID-ENV: error: version 'invalidenvironment' in target triple 'dxil-unknown-shadermodel6.2-invalidenvironment' is invalid
// CHECK-BAD-TARGET: error: HLSL code generation is unsupported for target '{{.*}}'
[shader("pixel")]
``````````
</details>
https://github.com/llvm/llvm-project/pull/81052
More information about the cfe-commits
mailing list