Back to Open source

[CPU][ARM64] Preserve i32 arithmetic and comparison precision

Issue[Bug]: [CPU][aarch64] i32 eltwise operations silently lose precision above 2^24 #39337

On ARM64, several i32 elementwise operations run through float32 and silently round integers above 2^24. For example, adding 16777217 and 16777216 can return 33554432 instead of 33554433, and comparisons can return incorrect booleans.

View issue on GitHub
Our PR[CPU][ARM64] Preserve i32 arithmetic and comparison precision #39602Open

Added native i32 paths for ARM64 arithmetic operations and all six comparisons, preserving integer precision above 2^24.

Enabled supported i32 operations in ARM64 Snippets, allowed Floor to use its integer identity path, and preserved rounding when Convert crosses between integer and floating-point arithmetic. Integer Divide stays on the reference path.

The PR reports passing focused precision tests and broader elementwise, comparison, Snippets, and LogicalNot tests. PRelu, Select, Relu, Mod, FloorMod, and general reference-fallback hardening remain outside its scope.

View PR on GitHub