llvm
e7e85e6b - [SYCL][E2E] Add test to cover std::complex<float/double> mul/div (#21622)

Commit
4 days ago
[SYCL][E2E] Add test to cover std::complex<float/double> mul/div (#21622) libdevice provides __mulsc3, __divsc3, __muldc3, __divdc3 to support complex number multiplication and division in 'no-fast-math' mode on Linux platform only. These 4 builtins are not invoked by user code but inserted by compiler when handling complex mul/div expression. This PR adds e2e test for these builtins explicitly, the testing logic is ported from compiler-rt test suite for normal CPU platform: https://github.com/llvm/llvm-project/blob/main/compiler-rt/test/builtins/Unit/divsc3_test.c https://github.com/llvm/llvm-project/blob/main/compiler-rt/test/builtins/Unit/divdc3_test.c https://github.com/llvm/llvm-project/blob/main/compiler-rt/test/builtins/Unit/mulsc3_test.c https://github.com/llvm/llvm-project/blob/main/compiler-rt/test/builtins/Unit/muldc3_test.c --------- Signed-off-by: jinge90 <ge.jin@intel.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Author
Parents
Loading