Files
clang-p2996/llvm/test/CodeGen/DirectX/cos_error.ll
Farzon Lotfi 79c32eb03d [DXIL] Add lowerings for cosine and floor (#86173)
Completes #86170
Completes #86172
- `DXIL.td` - Add changes to lower the cosine and floor intrinsics to
dxilOps.
2024-03-22 07:02:47 -04:00

11 lines
296 B
LLVM

; RUN: not opt -S -dxil-op-lower %s 2>&1 | FileCheck %s
; DXIL operation cos does not support double overload type
; CHECK: LLVM ERROR: Invalid Overload Type
define noundef double @cos_double(double noundef %a) {
entry:
%elt.cos = call double @llvm.cos.f64(double %a)
ret double %elt.cos
}