Arm64: Use carry instructions for 128bit arithmetic #113070
Labels
arch-arm64
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone
Consider the addition operator for Int128:
runtime/src/libraries/System.Private.CoreLib/src/System/Int128.cs
Line 667 in 367cf39
This compiles to:
Instead add with carry should be used to remove the compare:
This should be expanded for uses of SUBC and NEGC.
This could either be done by matching a standard IR pattern or if it's too big/fragile, then via intrinsics. There is an initial discussion here: #68028 (comment)
The text was updated successfully, but these errors were encountered: