aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/DirectX/discard_error.ll
blob: f863b39856e6b4eb2ef31338b84b7687fba96728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s

; DXIL operation discard does not support no bool overload type

; CHECK: invalid intrinsic signature
; CHECK: call void @llvm.dx.discard(double %p)
;
define void @discard_double(double noundef %p) {
entry:
  call void @llvm.dx.discard(double %p)
  ret void
}