xref: /llvm-project/llvm/test/CodeGen/DirectX/saturate_errors.ll (revision 6a38e19c92ed09eeecb70d5f61c3b822acb4964d)
1; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
2
3; DXIL operation saturate does not support i32 overload
4; CHECK: invalid intrinsic signature
5
6define noundef i32 @test_saturate_i32(i32 noundef %p0) #0 {
7entry:
8  %hlsl.saturate = call i32 @llvm.dx.saturate.i32(i32 %p0)
9  ret i32 %hlsl.saturate
10}
11