Files
clang-p2996/llvm/test/CodeGen/DirectX/tan_error.ll
Farzon Lotfi 85ef6b7c36 [DXIL] Add tan intrinsic part 2 (#90277)
This change is an implementation of #87367's investigation on supporting
IEEE math operations as intrinsics.
Which was discussed in this RFC:
https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294

If you want an overarching view of how this will all connect see:
https://github.com/llvm/llvm-project/pull/90088

Changes:
-  `llvm/include/llvm/IR/Intrinsics.td` - Create the tan intrinsic
- `llvm/lib/Target/DirectX/DXIL.td` - Map `int_tan` (the tan intrinsic)
to the equivalent DXIL Op.
2024-05-08 00:10:08 -04:00

11 lines
282 B
LLVM

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