Skip to content

[RISC-V] Simple math intrinsics #113689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Apr 3, 2025
Merged

Conversation

tomeksowi
Copy link
Contributor

@tomeksowi tomeksowi commented Mar 19, 2025

Intrinsify some math calls

Part of #84834, cc @dotnet/samsung

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 19, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 19, 2025
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@am11 am11 added the arch-riscv Related to the RISC-V architecture label Mar 19, 2025
@risc-vv
Copy link

risc-vv commented Mar 19, 2025

RISC-V Release-FX-VF2: 0 / 258 (0.00%)
=======================
      passed: 0
      failed: 0
     skipped: 0
      killed: 258
------------------------
  TOTAL libs: 258
 TOTAL tests: 258
   REAL time: 42s 356ms
=======================

Release-FX-VF2.md, Release-FX-VF2.xml, testfx_output.tar.gz

Build information and commands

GIT: 06c490970135dd39e727468885c6ab27841720d7
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-CLR-VF2: 9468 / 9544 (99.20%)
=======================
      passed: 9468
      failed: 59
     skipped: 106
      killed: 17
------------------------
  TOTAL libs: 9650
 TOTAL tests: 9650
   REAL time: 2h 4min 51s 698ms
=======================

Release-CLR-VF2.md, Release-CLR-VF2.xml, testclr_output.tar.gz

Build information and commands

GIT: 06c490970135dd39e727468885c6ab27841720d7
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-CLR-QEMU: 9468 / 9544 (99.20%)
=======================
      passed: 9468
      failed: 59
     skipped: 106
      killed: 17
------------------------
  TOTAL libs: 9650
 TOTAL tests: 9650
   REAL time: 2h 46min 10s 864ms
=======================

Release-CLR-QEMU.md, Release-CLR-QEMU.xml, testclr_output.tar.gz

Build information and commands

GIT: 06c490970135dd39e727468885c6ab27841720d7
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-FX-QEMU: 0 / 258 (0.00%)
=======================
      passed: 0
      failed: 0
     skipped: 0
      killed: 258
------------------------
  TOTAL libs: 258
 TOTAL tests: 258
   REAL time: 42s 831ms
=======================

Release-FX-QEMU.md, Release-FX-QEMU.xml, testfx_output.tar.gz

Build information and commands

GIT: 06c490970135dd39e727468885c6ab27841720d7
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

@risc-vv
Copy link

risc-vv commented Mar 19, 2025

RISC-V Release-FX-VF2: 0 / 258 (0.00%)
=======================
      passed: 0
      failed: 0
     skipped: 0
      killed: 258
------------------------
  TOTAL libs: 258
 TOTAL tests: 258
   REAL time: 42s 910ms
=======================

Release-FX-VF2.md, Release-FX-VF2.xml, testfx_output.tar.gz

Build information and commands

GIT: a4aa5bf18a49d39781b6d36ebaf1259b4e93727f
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

@risc-vv
Copy link

risc-vv commented Mar 19, 2025

RISC-V Release-FX-VF2: 0 / 258 (0.00%)
=======================
      passed: 0
      failed: 0
     skipped: 0
      killed: 258
------------------------
  TOTAL libs: 258
 TOTAL tests: 258
   REAL time: 42s 402ms
=======================

Release-FX-VF2.md, Release-FX-VF2.xml, testfx_output.tar.gz

Build information and commands

GIT: 77996b25c7b669ff31964ab6445e0fb97355dc07
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-CLR-VF2: 9468 / 9544 (99.20%)
=======================
      passed: 9468
      failed: 59
     skipped: 106
      killed: 17
------------------------
  TOTAL libs: 9650
 TOTAL tests: 9650
   REAL time: 2h 6min 56s 13ms
=======================

Release-CLR-VF2.md, Release-CLR-VF2.xml, testclr_output.tar.gz

Build information and commands

GIT: 77996b25c7b669ff31964ab6445e0fb97355dc07
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-CLR-QEMU: 9468 / 9544 (99.20%)
=======================
      passed: 9468
      failed: 59
     skipped: 106
      killed: 17
------------------------
  TOTAL libs: 9650
 TOTAL tests: 9650
   REAL time: 2h 45min 52s 608ms
=======================

Release-CLR-QEMU.md, Release-CLR-QEMU.xml, testclr_output.tar.gz

Build information and commands

GIT: 77996b25c7b669ff31964ab6445e0fb97355dc07
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-FX-QEMU: 0 / 258 (0.00%)
=======================
      passed: 0
      failed: 0
     skipped: 0
      killed: 258
------------------------
  TOTAL libs: 258
 TOTAL tests: 258
   REAL time: 42s 880ms
=======================

Release-FX-QEMU.md, Release-FX-QEMU.xml, testfx_output.tar.gz

Build information and commands

GIT: 77996b25c7b669ff31964ab6445e0fb97355dc07
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

@risc-vv
Copy link

risc-vv commented Mar 27, 2025

RISC-V Release-CLR-VF2: 9527 / 9547 (99.79%)
=======================
      passed: 9527
      failed: 3
     skipped: 106
      killed: 17
------------------------
  TOTAL libs: 9653
 TOTAL tests: 9653
   REAL time: 2h 11min 27s 760ms
=======================

Release-CLR-VF2.md, Release-CLR-VF2.xml, testclr_output.tar.gz

Build information and commands

GIT: 4549663a97a50fb234a0db03ac8b3a07427d26dc
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-FX-VF2: 636390 / 661304 (96.23%)
=======================
      passed: 636390
      failed: 1131
     skipped: 1483
      killed: 23783
------------------------
  TOTAL libs: 258
 TOTAL tests: 662787
   REAL time: 2h 45min 46s 668ms
=======================

Release-FX-VF2.md, Release-FX-VF2.xml, testfx_output.tar.gz

Build information and commands

GIT: 4549663a97a50fb234a0db03ac8b3a07427d26dc
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-CLR-QEMU: 9527 / 9547 (99.79%)
=======================
      passed: 9527
      failed: 3
     skipped: 106
      killed: 17
------------------------
  TOTAL libs: 9653
 TOTAL tests: 9653
   REAL time: 2h 47min 57s 691ms
=======================

Release-CLR-QEMU.md, Release-CLR-QEMU.xml, testclr_output.tar.gz

Build information and commands

GIT: 4549663a97a50fb234a0db03ac8b3a07427d26dc
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-FX-QEMU: 660310 / 688777 (95.87%)
=======================
      passed: 660310
      failed: 1315
     skipped: 1459
      killed: 27152
------------------------
  TOTAL libs: 258
 TOTAL tests: 690236
   REAL time: 2h 29min 37s 998ms
=======================

Release-FX-QEMU.md, Release-FX-QEMU.xml, testfx_output.tar.gz

Build information and commands

GIT: 4549663a97a50fb234a0db03ac8b3a07427d26dc
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

Copy link
Member

@am11 am11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Perhaps a tracking issue like #68028 / #113070 would be good for multi-ops math intrinsics progress.

@tomeksowi
Copy link
Contributor Author

Perhaps a tracking issue like #68028 / #113070 would be good for multi-ops math intrinsics progress.

It may come handy later on to track non-obvious ones. Now let's see how many I can tick off in first push (WiP).

@tomeksowi
Copy link
Contributor Author

Since this hasn't been reviewed yet, pushing bit intrinsics here to remove dependency from #114150

@risc-vv
Copy link

risc-vv commented Apr 2, 2025

70d8a7f is being scheduled for building and testing

GIT: 70d8a7f702d0747fc4adb2324ef54c4be4d542a1
REPO: dotnet/runtime
BRANCH: main

@risc-vv
Copy link

risc-vv commented Apr 2, 2025

60d82fc is being scheduled for building and testing

GIT: 60d82fcb8ce68bb176f68b305db698d4da6c4b01
REPO: dotnet/runtime
BRANCH: main

Copy link
Contributor

@BruceForstall BruceForstall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are changes in common code that are leading to asm diffs in non-RISCV platforms:

https://dev.azure.com/dnceng-public/public/_build/results?buildId=1002549&view=ms.vss-build-web.run-extensions-tab

Can you PR those changes separately, so the RISC-V changes don't show diffs in our superpmi-diffs pipeline?

@risc-vv
Copy link

risc-vv commented Apr 3, 2025

RISC-V Release-CLR-VF2: 9528 / 9548 (99.79%)
=======================
      passed: 9528
      failed: 3
     skipped: 106
      killed: 17
------------------------
  TOTAL libs: 9654
 TOTAL tests: 9654
   REAL time: 2h 10min 30s 492ms
=======================

Release-CLR-VF2.md, Release-CLR-VF2.xml, testclr_output.tar.gz

Build information and commands

GIT: 49f42d93a819b8c2cc75a0f6089d1b16e8e345de
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-FX-QEMU: 683035 / 711921 (95.94%)
=======================
      passed: 683035
      failed: 1345
     skipped: 1463
      killed: 27541
------------------------
  TOTAL libs: 259
 TOTAL tests: 713384
   REAL time: 2h 28min 20s 718ms
=======================

Release-FX-QEMU.md, Release-FX-QEMU.xml, testfx_output.tar.gz

Build information and commands

GIT: 49f42d93a819b8c2cc75a0f6089d1b16e8e345de
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

RISC-V Release-FX-VF2: 398528 / 433297 (91.98%)
=======================
      passed: 398528
      failed: 1167
     skipped: 1421
      killed: 33602
------------------------
  TOTAL libs: 259
 TOTAL tests: 434718
   REAL time: 2h 54min 20s 713ms
=======================

Release-FX-VF2.md, Release-FX-VF2.xml, testfx_output.tar.gz

Build information and commands

GIT: 49f42d93a819b8c2cc75a0f6089d1b16e8e345de
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

@tomeksowi tomeksowi changed the title [RISC-V] Simple intrinsics [RISC-V] Simple math intrinsics Apr 3, 2025
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
@risc-vv
Copy link

risc-vv commented Apr 3, 2025

RISC-V Release-CLR-QEMU: 9528 / 9548 (99.79%)
=======================
      passed: 9528
      failed: 3
     skipped: 106
      killed: 17
------------------------
  TOTAL libs: 9654
 TOTAL tests: 9654
   REAL time: 2h 47min 22s 501ms
=======================

Release-CLR-QEMU.md, Release-CLR-QEMU.xml, testclr_output.tar.gz

Build information and commands

GIT: f81b251b6d5223e3aa467058c11c3fbacec8a9bf
CI: a8426a46d8575dfcb3b5fec0d7d0b7a7c118d690
REPO: dotnet/runtime
BRANCH: main
CONFIG: Release
LIB_CONFIG: Release

@BruceForstall
Copy link
Contributor

/ba-g unrelated failures

@BruceForstall BruceForstall merged commit 513c52b into dotnet:main Apr 3, 2025
160 of 164 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-riscv Related to the RISC-V architecture area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants