Completes #86170 Completes #86172 - `DXIL.td` - Add changes to lower the cosine and floor intrinsics to dxilOps.
11 lines
296 B
LLVM
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
|
|
}
|