lzcnt feature not properly identified on Intel systems
The lzcnt instruction was initially added by AMD as an x86 architecture enhancement. Later, Intel added it to its platforms; however, the logic in uts/i86pc/os/cpuid.c was not updated to check for it on the Intel side. Intel added support for the instruction using the same cpuid bit therefore it should be plumbed through.
To test this I took an Intel system that advertises support for it and an AMD system that always had support for it and looked at the output of isainfo -x before and after. In the Intel case, there was an addition of the lzcnt flag to both the i386 and amd64 isainfo -x output. On the AMD side there was no change.
Updated by Electric Monk about 1 year ago
- Status changed from New to Closed
commit 1567de9ca59165ba548c38fbf32486335b19e58a Author: Robert Mustacchi <firstname.lastname@example.org> Date: 2019-05-07T16:19:45.000Z 10920 lzcnt feature not properly identified on Intel systems Reviewed by: Garrett D'Amore <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Approved by: Richard Lowe <email@example.com>