Skip to content

[SYCL] Add test to cover std::complex<float/double> mul/div#21622

Open
jinge90 wants to merge 24 commits intointel:syclfrom
jinge90:add_test_for_mulsc3_divsc3
Open

[SYCL] Add test to cover std::complex<float/double> mul/div#21622
jinge90 wants to merge 24 commits intointel:syclfrom
jinge90:add_test_for_mulsc3_divsc3

Conversation

@jinge90
Copy link
Contributor

@jinge90 jinge90 commented Mar 25, 2026

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

@jinge90 jinge90 requested a review from a team as a code owner March 25, 2026 08:39
@jinge90 jinge90 requested a review from sergey-semenov March 25, 2026 08:39
@jinge90 jinge90 marked this pull request as draft March 25, 2026 08:39
@jinge90 jinge90 marked this pull request as ready for review March 26, 2026 02:50
jinge90 added 2 commits March 26, 2026 11:15
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
@jinge90
Copy link
Contributor Author

jinge90 commented Mar 26, 2026

Hi, @intel/llvm-reviewers-runtime and @sergey-semenov
Could you take a look at this PR?
Thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant