This change is part of this proposal: https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294 This is part 1 of 4 PRs. It sets the ground work for adding the intrinsics. Add DXIL Lower for `acos`, `asin`, `atan`, `cosh`, `sinh`, and `tanh` https://github.com/llvm/llvm-project/issues/70079 https://github.com/llvm/llvm-project/issues/70080 https://github.com/llvm/llvm-project/issues/70081 https://github.com/llvm/llvm-project/issues/70083 https://github.com/llvm/llvm-project/issues/70084 https://github.com/llvm/llvm-project/issues/95966
11 lines
282 B
LLVM
11 lines
282 B
LLVM
; RUN: not opt -S -dxil-op-lower %s 2>&1 | FileCheck %s
|
|
|
|
; DXIL operation cosh does not support double overload type
|
|
; CHECK: LLVM ERROR: Invalid Overload
|
|
|
|
define noundef double @cosh_double(double noundef %a) {
|
|
entry:
|
|
%1 = call double @llvm.cosh.f64(double %a)
|
|
ret double %1
|
|
}
|