[llvm] [WebAssembly] Add Support for Arc and Hyperbolic trig llvm intrinsics (PR #98755)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 13 11:19:01 PDT 2024


================
@@ -0,0 +1,296 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -disable-wasm-fallthrough-return-opt -wasm-keep-registers | FileCheck %s
+
+; Test a subset of compiler-rt/libm libcalls expected to be emitted by the wasm backend
+
+target triple = "wasm32-unknown-unknown"
+
+declare fp128 @llvm.sin.f128(fp128)
+declare fp128 @llvm.cos.f128(fp128)
+declare fp128 @llvm.tan.f128(fp128)
+declare fp128 @llvm.asin.f128(fp128)
+declare fp128 @llvm.acos.f128(fp128)
+declare fp128 @llvm.atan.f128.i32(fp128)
+declare fp128 @llvm.sinh.f128(fp128)
+declare fp128 @llvm.cosh.f128(fp128)
+declare fp128 @llvm.tanh.f128(fp128)
+
+declare double @llvm.sin.f64(double)
+declare double @llvm.cos.f64(double)
----------------
farzonl wrote:

There were existing f64 cases for cos\tan but for consistencly included them here aswell. 

https://github.com/llvm/llvm-project/pull/98755


More information about the llvm-commits mailing list