Use the `%clang_cc1` substitution consistently across the test suite, replacing inline `%clang -cc1` invocations, except for one Preprocessor test where this is causing breakage. This is necessary to ensure that additional parameters passed via `%clang` do not interfere with `-cc1` that must always be passed as the first command-line argument. Remove the additional substitution blocking `%clang_cc1` use in Driver tests. It has been added in 2013 and was supposed to prevent tests calling `clang -cc1` from being added to Driver. The state of the test suite proves that it did not succeed at all. Differential Revision: https://reviews.llvm.org/D134880
17 lines
595 B
HLSL
17 lines
595 B
HLSL
// RUN: %clang_cc1 -S -triple dxil-pc-shadermodel6.3-library -S -emit-llvm -xhlsl -validator-version 1.1 -o - %s | FileCheck %s
|
|
|
|
// FIXME:The following line should work once SPIR-V support for HLSL is added.
|
|
// See: https://github.com/llvm/llvm-project/issues/57877
|
|
// DISABLED: %clang_cc1 -S -triple spirv32 -S -emit-llvm -xhlsl -validator-version 1.1 -o - %s | FileCheck %s --check-prefix=NOT_DXIL
|
|
|
|
// CHECK:!dx.valver = !{![[valver:[0-9]+]]}
|
|
// CHECK:![[valver]] = !{i32 1, i32 1}
|
|
|
|
// NOT_DXIL-NOT:!dx.valver
|
|
|
|
float bar(float a, float b);
|
|
|
|
float foo(float a, float b) {
|
|
return bar(a, b);
|
|
}
|