Skip to content

[AVX10.2]Optimize codegen for x86 using the new saturating conversion instructions when possible. #109080

Closed
@DeepakRajendrakumaran

Description

@DeepakRajendrakumaran

AVX10.2 introduces a set of saturating conversion instructions. These will allow us to further optimize the various floating point-> integer conversions. Specifically cases where we are currently handling edge cases with additional instructions. With these new instructions, we can accomplish this with just 1 instruction

Eg. double -> ulong

This currently generates the following 2 instructions

vfixupimmsd 
vcvttsd2usi

The new Avx10.2 instructions are the following
Image

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIavx10Related to the AVX10 architecture

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions