[clang] fb48fd1 - [Driver, test] Fix hlsl-lang-targets.hlsl after #78655
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 12 10:05:27 PST 2024
Author: Fangrui Song
Date: 2024-02-12T10:05:22-08:00
New Revision: fb48fd18c240574841378defacadff34238089bb
URL: https://github.com/llvm/llvm-project/commit/fb48fd18c240574841378defacadff34238089bb
DIFF: https://github.com/llvm/llvm-project/commit/fb48fd18c240574841378defacadff34238089bb.diff
LOG: [Driver,test] Fix hlsl-lang-targets.hlsl after #78655
Added:
Modified:
clang/test/Driver/hlsl-lang-targets.hlsl
Removed:
################################################################################
diff --git a/clang/test/Driver/hlsl-lang-targets.hlsl b/clang/test/Driver/hlsl-lang-targets.hlsl
index f2f4bba8196bc..7ce490a66df5f 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-BAD-ENV-DRV %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-BAD-ENV-DRV: error: version '{{.*}}' in target triple '{{.*}}' is invalid
// CHECK-BAD-TARGET: error: HLSL code generation is unsupported for target '{{.*}}'
[shader("pixel")]
More information about the cfe-commits
mailing list