aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenHLSL/disable_opt.hlsl
blob: bfffe76cfa9def696cdda00b3410dc618c266422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -O0 -emit-llvm -xhlsl -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -O3 -emit-llvm -xhlsl -o - %s | FileCheck %s --check-prefix=OPT

// CHECK:!"dx.disable_optimizations", i32 1}

// OPT-NOT:"dx.disable_optimizations"

float bar(float a, float b);

float foo(float a, float b) {
  return bar(a, b);
}