diff options
| author | Koakuma <koachan@protonmail.com> | 2024-07-08 19:19:54 +0700 |
|---|---|---|
| committer | Koakuma <koachan@protonmail.com> | 2024-07-08 19:19:54 +0700 |
| commit | 5c4fdc2fd5898ebd9e89999a4f4b8aa289ca637f (patch) | |
| tree | f3b92a07f3dfc6e70f36d1000605f36a3c15af46 /llvm/test/CodeGen/DirectX/sinh.ll | |
| parent | dbda8e2f2cd8764e0badd983915d62a2c3377f4d (diff) | |
| parent | e9b8cd0c806db00f0981fb36717077c941426302 (diff) | |
[𝘀𝗽𝗿] changes introduced through rebaseusers/koachan/spr/main.sparcias-enable-parseforallfeatures-in-matchoperandparserimpl
Created using spr 1.3.5
[skip ci]
Diffstat (limited to 'llvm/test/CodeGen/DirectX/sinh.ll')
| -rw-r--r-- | llvm/test/CodeGen/DirectX/sinh.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/DirectX/sinh.ll b/llvm/test/CodeGen/DirectX/sinh.ll new file mode 100644 index 000000000000..76d189836f39 --- /dev/null +++ b/llvm/test/CodeGen/DirectX/sinh.ll @@ -0,0 +1,20 @@ +; RUN: opt -S -dxil-op-lower < %s | FileCheck %s + +; Make sure dxil operation function calls for sinh are generated for float and half. + +define noundef float @tan_float(float noundef %a) { +entry: +; CHECK:call float @dx.op.unary.f32(i32 19, float %{{.*}}) + %elt.sinh = call float @llvm.sinh.f32(float %a) + ret float %elt.sinh +} + +define noundef half @tan_half(half noundef %a) { +entry: +; CHECK:call half @dx.op.unary.f16(i32 19, half %{{.*}}) + %elt.sinh = call half @llvm.sinh.f16(half %a) + ret half %elt.sinh +} + +declare half @llvm.sinh.f16(half) +declare float @llvm.sinh.f32(float) |
