brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · eab135c Raw
26 lines · plain
1// RUN: mkdir -p %t.dir2// RUN: env PATH="" %clang_dxc -I test -Tlib_6_3 -Fo %t.dir/a.dxo  -### %s 2>&1 | FileCheck %s3 4// Make sure report warning.5// CHECK:dxv not found6 7// RUN: echo "dxv" > %t.dir/dxv && chmod 754 %t.dir/dxv && %clang_dxc --dxv-path=%t.dir %s -Tlib_6_3 -Fo %t.dir/a.dxo -### 2>&1 | FileCheck %s --check-prefix=DXV_PATH8// DXV_PATH:dxv{{(.exe)?}}" "{{.*}}.obj" "-o" "{{.*}}/a.dxo"9 10// RUN: %clang_dxc -I test -Vd -Tlib_6_3  -### %s 2>&1 | FileCheck %s --check-prefix=VD11// VD:"-cc1"{{.*}}"-triple" "dxilv1.3-unknown-shadermodel6.3-library"12// VD-NOT:dxv not found13 14// RUN: %clang_dxc -Tlib_6_3 -ccc-print-bindings --dxv-path=%t.dir -Fo %t.dxo  %s 2>&1 | FileCheck %s --check-prefix=BINDINGS15// BINDINGS: "dxilv1.3-unknown-shadermodel6.3-library" - "clang", inputs: ["[[INPUT:.+]]"], output: "[[obj:.+]].obj"16// BINDINGS-NEXT: "dxilv1.3-unknown-shadermodel6.3-library" - "hlsl::Validator", inputs: ["[[obj]].obj"], output: "{{.+}}.dxo"17 18// RUN: %clang_dxc -Tlib_6_3 -ccc-print-phases --dxv-path=%t.dir -Fo %t.dxc  %s 2>&1 | FileCheck %s --check-prefix=PHASES19 20// PHASES: 0: input, "[[INPUT:.+]]", hlsl21// PHASES-NEXT: 1: preprocessor, {0}, c++-cpp-output22// PHASES-NEXT: 2: compiler, {1}, ir23// PHASES-NEXT: 3: backend, {2}, assembler24// PHASES-NEXT: 4: assembler, {3}, object25// PHASES-NEXT: 5: binary-analyzer, {4}, dx-container26