17 lines · plain
1// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -emit-llvm -xhlsl -validator-version 1.1 -o - %s | FileCheck %s2 3// FIXME:The following line should work once SPIR-V support for HLSL is added.4// See: https://github.com/llvm/llvm-project/issues/578775// DISABLED: %clang_cc1 -triple spirv32 -emit-llvm -xhlsl -validator-version 1.1 -o - %s | FileCheck %s --check-prefix=NOT_DXIL6 7// CHECK:!dx.valver = !{![[valver:[0-9]+]]}8// CHECK:![[valver]] = !{i32 1, i32 1}9 10// NOT_DXIL-NOT:!dx.valver11 12float bar(float a, float b);13 14float foo(float a, float b) {15 return bar(a, b);16}17