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 over 3 years ago
- Status changed from New to Closed
commit 1567de9ca59165ba548c38fbf32486335b19e58a Author: Robert Mustacchi <email@example.com> Date: 2019-05-07T16:19:45.000Z 10920 lzcnt feature not properly identified on Intel systems Reviewed by: Garrett D'Amore <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>