[llvm] [DXIL] Model DXIL Class and Shader Model association of DXIL Ops in DXIL.td (PR #87803)

Chris B via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 10 11:20:03 PDT 2024


================
@@ -1,25 +1,23 @@
-; RUN: opt -S -dxil-op-lower < %s | FileCheck %s
+// Shader Mode 6.0
+// RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.0-library %S/Inputs/sin/half.ll 2>&1 | FileCheck %s -check-prefix=SM6_0_HALF
+// RUN: opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.0-library %S/Inputs/sin/float.ll | FileCheck %s -check-prefix=SM6_0_FLOAT
+// RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.0-library %S/inputs/sin/double.ll 2>&1 | FileCheck %s --check-prefix=SM6_0_DOUBLE
----------------
llvm-beanz wrote:

I tend to agree with Justin here that separate test files is the better approach. Especially in a case like this where not only is it different inputs it is also different outputs you're looking for. That's way easier to understand if the run lines and check lines are in the file used as the input file.

https://github.com/llvm/llvm-project/pull/87803


More information about the llvm-commits mailing list