HomeFreeBSD

tests/sys/kern/crc32: Check for SSE4.2 before using it

Description

tests/sys/kern/crc32: Check for SSE4.2 before using it

This avoids a SIGILL when running these tests on QEMU (which
defaults to a basic amd64 CPU without SSE4.2).

This commit also tests the table-based implementations in addition to
testing the hw-accelerated crc32 versions.

Reviewed By: cem, kib, markj
Differential Revision: https://reviews.freebsd.org/D28395

Details

Provenance
arichardsonAuthored on Feb 2 2021, 9:52 AM
Reviewer
cem
Differential Revision
D28395: tests/sys/kern/crc32: Check for SSE4.2 before using it
Parents
rGc69047ca7526: Revert "diff: eliminate a useless lseek"
Branches
Unknown
Tags
Unknown