Files
clang-p2996/clang/test/CodeGenHLSL/disable_opt.hlsl
Fangrui Song 0d501f38f3 [test] %clang_cc1 -emit-llvm: remove redundant -S
Also replace aarch64-none-linux-gnu (none can indicate an OS as well) with aarch64
2024-05-04 17:15:51 -07:00

13 lines
393 B
HLSL

// 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);
}