xref: /llvm-project/llvm/test/CodeGen/DirectX/discard_error.ll (revision bc6c0681271788ca7078fb679ac67b56944de1a6)
1; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
2
3; DXIL operation discard does not support no bool overload type
4
5; CHECK: invalid intrinsic signature
6; CHECK: call void @llvm.dx.discard(double %p)
7;
8define void @discard_double(double noundef %p) {
9entry:
10  call void @llvm.dx.discard(double %p)
11  ret void
12}
13